External commands

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
David.adder
Posts: 74
Joined: Thu Jan 17, 2013 8:44 am
Location: Spain

External commands

Post 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.
You do not have the required permissions to view the files attached to this post.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: External commands

Post 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
David.adder
Posts: 74
Joined: Thu Jan 17, 2013 8:44 am
Location: Spain

Re: External commands

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: External commands

Post 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.
David.adder
Posts: 74
Joined: Thu Jan 17, 2013 8:44 am
Location: Spain

Re: External commands

Post by David.adder »

Captura.JPG
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: External commands

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
David.adder
Posts: 74
Joined: Thu Jan 17, 2013 8:44 am
Location: Spain

Re: External commands

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: External commands

Post by scottwilkerson »

Yes it is normal, I just added that command to make sure there wasn't "extra" processes running.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
David.adder
Posts: 74
Joined: Thu Jan 17, 2013 8:44 am
Location: Spain

Re: External commands

Post by David.adder »

So, is the best option to install a RAM disk? Or could we check anything else before doing that?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: External commands

Post by slansing »

Well lets see, what sort of hardware is your Nagios server running on top of? Processor, Disk, Memory?
Locked