Closed hihachi closed 11 years ago
If you run /usr/lib/nagios/plugins/check_nginx.pl -H localhost -w 10000,100,200 -c 20000,200,300
with the nagios user on remote server what is the output?
Thanks for the Idea running it as nagios .)
Can't locate utils.pm in @INC (@INC contains: /usr/local/nagios/libexec /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at /usr/lib/nagios/plugins/check_nginx_status.pl line 19.
So you should try to find util.pm with find / -name util.pm
, to see if you have it.
Then which version of the check do you use? Lastest git version use use lib $FindBin::Bin;
on http://github.com/regilero/check_nginx_status/blob/master/check_nginx_status.pl#L19 . Before that we had use lib "/usr/local/nagios/libexec";
This is maybe a reason, or not.
AAh..somehow my version does not included the FindBin, but the old one. Do not know where i got that one. Now everything works fine! :)
Hi there,
running the Script directly on the Shell of the Remote-Server i want to check, everything works fine. After adding the nrpe-command, which can be used on the shell, and calling it from the monitoring-server with check_nrpe i just get the output:
NRPE: Unable to read output
My Command looks like this: /etc/nagios/nrpe.cfg command[check_nginx2]=/usr/lib/nagios/plugins/check_nginx.pl -H localhost -w 10000,100,200 -c 20000,200,300
and the nrpe-command:
/usr/lib/nagios/check_nrpe -H servername -c check_nginx2
Any ideas?
Thanks in advance