Nagios XI cotact with a command script is not firing off
Posted: Wed Aug 12, 2015 7:48 pm
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.
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.