Search found 3 matches
- Tue Apr 15, 2014 3:48 am
- Forum: Open Source Nagios Projects
- Topic: Plugin ok from CLI, not ok when executed by nagios
- Replies: 4
- Views: 1858
Re: Plugin ok from CLI, not ok when executed by nagios
Hi, I found the problem, it was the fact that in checkipsload.sh, was a relative path defined instead of full path #!/bin/bash /usr/bin/expect -f expectips | sed -E 's/\r//g' | grep "Inspection Load" | tr -d '\n' | awk '{print $4}' After i change the script will full path, everithing was o...
- Tue Apr 15, 2014 1:48 am
- Forum: Open Source Nagios Projects
- Topic: Plugin ok from CLI, not ok when executed by nagios
- Replies: 4
- Views: 1858
Re: Plugin ok from CLI, not ok when executed by nagios
Strange, you are right, if i run it outside the libexec it shows me the same output as the one showed by nagios. So what could be the difference between running the plugin fon libexec folder and outside the folder? nagios@monitor:/tmp$ ls -ld /usr/local/nagios/libexec/ drwxrwxr-x 3 nagios nagios 409...
- Mon Apr 14, 2014 11:10 am
- Forum: Open Source Nagios Projects
- Topic: Plugin ok from CLI, not ok when executed by nagios
- Replies: 4
- Views: 1858
Plugin ok from CLI, not ok when executed by nagios
Hi, I have the following problem. If I run a plugin from cli as nagios, it is working as expected: nagios@monitor:/usr/local/nagios/libexec$ ./check_generic -e "/bin/sh /usr/local/nagios/libexec/checkipsload.sh" -w ">5" -c ">70" -n "IPS Inspection Load" IPS In...