External commands
-
David.adder
- Posts: 74
- Joined: Thu Jan 17, 2013 8:44 am
- Location: Spain
External commands
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:
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.
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:
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
Can you open your nagios.cfg file and verify that you do have external commands enabled?:
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
vi /usr/local/nagios/etc/nagios.cfgAlso 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
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.
# 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
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
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
Your IO Wait time is EXTREMELY high. This could cause a delay getting the appropriate information in the DB.
Try running
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
Try running
Code: Select all
service ndo2db stop
killall -9 ndo2db
service ndo2db starthttp://assets.nagios.com/downloads/nagi ... p#boosting
-
David.adder
- Posts: 74
- Joined: Thu Jan 17, 2013 8:44 am
- Location: Spain
Re: External commands
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?
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
Yes it is normal, I just added that command to make sure there wasn't "extra" processes running.
-
David.adder
- Posts: 74
- Joined: Thu Jan 17, 2013 8:44 am
- Location: Spain
Re: External commands
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
Well lets see, what sort of hardware is your Nagios server running on top of? Processor, Disk, Memory?