Page 1 of 1

enabling hosts/service ckeck in Nagios admin gui not working

Posted: Mon Nov 26, 2018 12:36 pm
by benhank
now this is odd. I distinctly remember resolving this issue here before but I can find it, ...
When I try to enable active host and service checks in the Ngaiosxi gui (ver 5.5.7) as I tail var log commandsubsys.log i get this:

Code: Select all

COMMAND DATA: a:1:{s:3:"cmd";i:35;}
CORE CMD: START_EXECUTING_SVC_CHECKS
COMMAND DATA: a:1:{s:3:"cmd";i:88;}
CORE CMD: START_EXECUTING_HOST_CHECKS
PHP Warning:  Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/components/nagiosim/nagiosim.inc.php on line 491

PROCESSED 2 COMMANDS
but nothing changes OR the checks enable for a few minutes then they are disabled again :
Capture.PNG
and I swear that the fix last time was to delete that nagiossim component.... But anyhoo I appreciate the help in advance!

Re: enabling hosts/service ckeck in Nagios admin gui not wor

Posted: Mon Nov 26, 2018 1:41 pm
by scottwilkerson
You certainly can and should delete the component

Code: Select all

rm -rf /usr/local/nagiosxi/html/includes/components/nagiosim
But this shouldn't actually impact the results you are seeing

Lets run the following:

Code: Select all

service nagios stop
killall -9 nagios
service ndo2db stop
rm -f /usr/local/nagios/var/rw/nagios.cmd /usr/local/nagios/var/ndo.*
service ndo2db start
service nagios start

Re: enabling hosts/service ckeck in Nagios admin gui not wor

Posted: Mon Nov 26, 2018 2:48 pm
by benhank
Hey Im sorry about this post. I knew in the back of my mind that this was the solution, I just could not find the post.
BUT!
Worked like a charm!
Im all set!

Re: enabling hosts/service ckeck in Nagios admin gui not wor

Posted: Mon Nov 26, 2018 4:27 pm
by scottwilkerson
benhank wrote:Hey Im sorry about this post. I knew in the back of my mind that this was the solution, I just could not find the post.
BUT!
Worked like a charm!
Im all set!
great! Glad it is resolved