Hi Scott,
Thanks for all your help. I've ended up going down a different route for the monitoring of non critical hosts (check_dummy).
You can close this thread now.
Search found 17 matches
- Thu Feb 07, 2019 10:50 am
- Forum: Open Source Nagios Projects
- Topic: Event Handler Script not working.
- Replies: 33
- Views: 7439
- Wed Feb 06, 2019 9:12 am
- Forum: Open Source Nagios Projects
- Topic: Event Handler Script not working.
- Replies: 33
- Views: 7439
Re: Event Handler Script not working.
Even with the file in a different directory I'm getting the same error. So I've tried not using a script and instead putting the cmd into the Command.cfg as below. If I enter the command_line directly into the console it works fine. define command{ command_name auto_acknowledge command_line /bin/pri...
- Tue Feb 05, 2019 1:29 pm
- Forum: Open Source Nagios Projects
- Topic: Event Handler Script not working.
- Replies: 33
- Views: 7439
Re: Event Handler Script not working.
This is so bizarre, the error is like the file /usr/local/nagios/libexec/auto-acknowledge.sh doesn't exist. Out of curiosity, can you change the command to the following and restart nagios and see if you get the same error testing this define command{ command_name auto-acknowledge command_line $USE...
- Tue Feb 05, 2019 11:57 am
- Forum: Open Source Nagios Projects
- Topic: Event Handler Script not working.
- Replies: 33
- Views: 7439
Re: Event Handler Script not working.
Hi Scott, Apologies for the delayed response, I have been out of office for a few days. Even with the quotes i'm still getting a "No such file or directory" error. [1549385220] HOST EVENT HANDLER: TEST_PRINTER;DOWN;SOFT;3;auto-acknowledge [1549385220] wproc: HOST EVENTHANDLER job 2518 from...
- Thu Jan 31, 2019 11:01 am
- Forum: Open Source Nagios Projects
- Topic: Event Handler Script not working.
- Replies: 33
- Views: 7439
Re: Event Handler Script not working.
Certainly, [root@SU-GBCP-VTDS150 ~]# cat /usr/local/nagios/libexec/auto-acknowledge.sh #!/bin/sh # # Event handler script for acknowledging non critical hosts. # # # What state is the Host in? case "$1" in UP) ;; UNREACHABLE) ;; DOWN) case "$2" in SOFT) case "$3" in 1) ...
- Thu Jan 31, 2019 10:29 am
- Forum: Open Source Nagios Projects
- Topic: Event Handler Script not working.
- Replies: 33
- Views: 7439
Re: Event Handler Script not working.
no worries, here's the results of that command. [root@Nagios ~]# ls -dl /usr/local/nagios/libexec/ drwxrwxr-x. 2 nagios nagios 4096 Jan 28 14:42 /usr/local/nagios/libexec/ [root@Nagios ~]# ls -dl /usr/local/nagios/ drwxrwxr-x. 10 root root 4096 Jan 3 14:21 /usr/local/nagios/ [root@Nagios ~]# ls -dl ...
- Thu Jan 31, 2019 4:12 am
- Forum: Open Source Nagios Projects
- Topic: Event Handler Script not working.
- Replies: 33
- Views: 7439
Re: Event Handler Script not working.
Yeah, as far as I can see all files seem to be in their right location. [root@Nagios ~]# ls -l /usr/local/nagios/libexec/auto-acknowledge.sh -rwxr-xr-x. 1 nagios nagios 693 Jan 28 14:42 /usr/local/nagios/libexec/auto-acknowledge.sh [root@Nagios ~]# ls -d /usr/local/nagios/libexec/ /usr/local/nagios/...
- Wed Jan 30, 2019 10:35 am
- Forum: Open Source Nagios Projects
- Topic: Event Handler Script not working.
- Replies: 33
- Views: 7439
Re: Event Handler Script not working.
Certainly, please find it below. ############################################################################## # # NAGIOS.CFG - Sample Main Config File for Nagios 4.1.1 # # Read the documentation for more information on this configuration # file. I've provided some comments here, but things may not...
- Wed Jan 30, 2019 9:59 am
- Forum: Open Source Nagios Projects
- Topic: Event Handler Script not working.
- Replies: 33
- Views: 7439
Re: Event Handler Script not working.
I'm not sure, I inherited the install from a user who has now left. I don't think so as it hasn't come up with anything I've done.scottwilkerson wrote:By chance is your Nagios installation using mod_gearman?
Is there a way for me to check?
- Wed Jan 30, 2019 8:08 am
- Forum: Open Source Nagios Projects
- Topic: Event Handler Script not working.
- Replies: 33
- Views: 7439
Re: Event Handler Script not working.
Heres the results of that command
[root@NagiosServer ~]# ls -l /usr/local/nagios/libexec/auto-acknowledge.sh
-rwxr-xr-x. 1 nagios nagios 693 Jan 28 14:42 /usr/local/nagios/libexec/auto-acknowledge.sh