Page 3 of 3

Re: Schedule a forced immediate check not working

Posted: Thu Apr 09, 2015 6:25 pm
by rajasegar
tgriep wrote:Can you run the following in a shell when you Schedule an immediate check with the user account you are having problems with and post the output back here?

Code: Select all

tail -f /usr/local/nagiosxi/var/cmdsubsys.log
There is currently no errors when executing.
I tried 2 services.
First one started almost immediately but took very long to finish the command

Second try, took ages even to start logging and took equally long to finish.
However there was hardly any logs. Please see logs below.

Code: Select all

[nagios@nagiosprodxi1 ~]$ tail -f /usr/local/nagiosxi/var/cmdsubsys.log
................
PROCESSED 0 COMMANDS
ATA=a:4:{s:9:"host_name";s:13:"BHQMBCESXI004";s:12:"service_name";s:13:"VMH CPU Usage";s:3:"cmd";i:54;s:10:"start_time";i:1428621622;}
COMMAND DATA: a:4:{s:9:"host_name";s:13:"BHQMBCESXI004";s:12:"service_name";s:13:"VMH CPU Usage";s:3:"cmd";i:54;s:10:"start_time";i:1428621622;}
CMDARR:
Array
(
    [host_name] => BHQMBCESXI004
    [service_name] => VMH CPU Usage
    [cmd] => 54
    [start_time] => 1428621622
)
CORE CMD: SCHEDULE_FORCED_SVC_CHECK;BHQMBCESXI004;VMH CPU Usage;1428621622
SUBMITTING A NAGIOSCORE COMMAND...
.................................tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated

PROCESSED 1 COMMANDS
SSED 1 COMMANDS
tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated
..........................................................tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated
..
PROCESSED 0 COMMANDS

Re: Schedule a forced immediate check not working

Posted: Fri Apr 10, 2015 10:57 am
by abrist
I wonder if this is related to the messages queue backup you are experiencing. It definitely seems like the command is processed, but it sound like there is a big delay between the command logging in cmdsubsys.log and and it actually getting processed by core. Does that seem like a good description of the current issue?