Schedule a forced immediate check not working

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Schedule a forced immediate check not working

Post 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
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Schedule a forced immediate check not working

Post 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?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked