Nagios XI cotact with a command script is not firing off

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
gogginl
Posts: 5
Joined: Mon Apr 07, 2014 8:41 am

Nagios XI cotact with a command script is not firing off

Post by gogginl »

I have a Major issue with Nagios. I am running the latest version of Nagios licensed new system just built on RedHat linux license version 6.5.

The issue is that the basic host check with a contact (runs a command that has a script on the nagios server) does not run my script when device goes down or up.

1. I setup only 1 host using the wizard to only to a host check ping. Nothing else is running on this new nagios server
2. I setup a contact which is using a defined nagios command
The command I put in the $USER1$ directory on nagios server with all rights.
This is a basic bash shell command
This is a basic command that simply runs a date time output to a log file.
3. I have a basic bash sh script running just to echo output to the in the $USER1$ share with full rights.

Now, When we disconnect the network cable from the monitored host, we get a Nagios down event which we see in the host dashboard.
However, The script is not kicking off.

Well let say the script is not kicking off all the time. It actuall has run sever times but never when we expect and sometime we wait forever but nothing.

We have no idea what is happening with this weird behavior

We need help fast

Is this a bug, if not what else is needed to resolve this issue.

I have the same script running on my other nagios system (not the latest version but close) and the scripting runs perfect.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagios XI cotact with a command script is not firing off

Post by Box293 »

Try setting the debug level on and then restart Nagios.

Code: Select all

sed -i 's/.*debug_level=.*/debug_level=-1/g' /usr/local/nagios/etc/nagios.cfg
service nagios restart
Tail the debug log

Code: Select all

tail -f /usr/local/nagios/var/nagios.debug
Now go and perform a test and see what is happening.

When you are finished this turns debugging off:

Code: Select all

sed -i 's/.*debug_level=.*/debug_level=0/g' /usr/local/nagios/etc/nagios.cfg
service nagios restart
Does this help?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked