Page 1 of 3

External commands

Posted: Wed Jan 23, 2013 3:33 pm
by David.adder
Hi,

In last dates, we are getting many problems with the checks of services and hosts. When we note this, we can see this alert in the Monitoring Engine Status:
Captura.JPG
We have to restart the process state because qhen the external commands became to disable (in red) Nagios doesn't check any service/host, including the "Schedule an immediate check" tool

Version: Nagios XI 2012R1.4

Does anybody know why is happening this in our Nagios? And who could we fix this? I would appreciate any help with this.

Thanks in advance.

Re: External commands

Posted: Wed Jan 23, 2013 5:22 pm
by slansing
Can you open your nagios.cfg file and verify that you do have external commands enabled?:

Code: Select all

vi /usr/local/nagios/etc/nagios.cfg
Make sure that the line: check_external_commands=1 is in fact set to 1

Also it is possible your ndo2db was down, run the following command and let me know if it started properly, or if it completely restarted indicating it was previously running. Then check the web UI:

Code: Select all

service ndo2db restart

Re: External commands

Posted: Thu Jan 24, 2013 2:50 am
by David.adder
Hi slasing,

# UNMODIFIED
accept_passive_host_checks=1
accept_passive_service_checks=1
additional_freshness_latency=15
auto_reschedule_checks=0
auto_rescheduling_interval=30
auto_rescheduling_window=180
bare_update_check=0
cached_host_check_horizon=15
cached_service_check_horizon=15
check_external_commands=1
check_for_orphaned_hosts=1
check_for_orphaned_services=1
check_for_updates=1

You can see that we have enabled external commands.

I've restart ndo2db and it was already running:

service ndo2db restart
Stopping ndo2db: .done.
Starting ndo2db: done.

Re: External commands

Posted: Thu Jan 24, 2013 10:37 am
by slansing
Can you provide a screen shot of your System Status? To do this, click on one of the green check marks at the top right of the web UI.

Re: External commands

Posted: Thu Jan 24, 2013 10:42 am
by David.adder
Captura.JPG

Re: External commands

Posted: Thu Jan 24, 2013 11:45 am
by scottwilkerson
Your IO Wait time is EXTREMELY high. This could cause a delay getting the appropriate information in the DB.

Try running

Code: Select all

service ndo2db stop
killall -9 ndo2db
service ndo2db start
Finally, you may want to look at installing a RAM disk to help with the IO Wait
http://assets.nagios.com/downloads/nagi ... p#boosting

Re: External commands

Posted: Thu Jan 24, 2013 11:50 am
by David.adder
Hi Scott,

I tried that:

[root@--- ~]# service ndo2db stop
Stopping ndo2db: .done.
[root@--- ~]# killall -9 ndo2db
ndo2db: no process killed
[root@--- ~]# service ndo2db start
Starting ndo2db: done.


It did not kill any process. I'm gonna check that documentation.

Is it normal that no process has been killed?

Re: External commands

Posted: Thu Jan 24, 2013 12:01 pm
by scottwilkerson
Yes it is normal, I just added that command to make sure there wasn't "extra" processes running.

Re: External commands

Posted: Thu Jan 24, 2013 12:04 pm
by David.adder
So, is the best option to install a RAM disk? Or could we check anything else before doing that?

Re: External commands

Posted: Thu Jan 24, 2013 12:10 pm
by slansing
Well lets see, what sort of hardware is your Nagios server running on top of? Processor, Disk, Memory?