I am using 3.4.0 and have a check_printer.pl which worked fine on 3.2.3 - its used to check the toner levels etc. When I run a manual command of ./check_printer.pl -H (host ip) -C (community) paper 2 for example I get a response that tray 2 is okay.....but when I add this to my configuration and look at the web interface I just get a response of 'null'.
I cannot see anything in the logs to indicate a problem and the problem is only with this one perl script...anyone have any thoughts?
WebPage returns 'null' but manual check works
-
capeschools
- Posts: 10
- Joined: Tue May 15, 2012 2:05 pm
Re: WebPage returns 'null' but manual check works
There's a known bug in 3.4.0 related to double quotes in check commands. Try upgrading to 3.4.1 and see if the issue resolves itself.
http://www.nagios.org
http://www.nagios.org
-
capeschools
- Posts: 10
- Joined: Tue May 15, 2012 2:05 pm
Re: WebPage returns 'null' but manual check works
I saw that note...but I do not have any double quotes in the check command as far as I can see?
Re: WebPage returns 'null' but manual check works
Honestly, you should still upgrade to 3.4.1 before troubleshooting further. I doubt anybody is willing to support version 3.4.0. The patch which caused the quoting bug was larger and changed more code than just quoting. The entire patch was reverted and thus may have fixed other unknown issues.
-
capeschools
- Posts: 10
- Joined: Tue May 15, 2012 2:05 pm
Re: WebPage returns 'null' but manual check works
Okay - well I'll wait until the 1-click install is available then....I know enough about linux but openSuse places the files for Nagios in a different location to other installations (as in in /etc/nagios) so not confident I could build the install correctly.
-
capeschools
- Posts: 10
- Joined: Tue May 15, 2012 2:05 pm
Re: WebPage returns 'null' but manual check works
Solved it - permission issue on the check_printer.pl command - I'll update to 3.4.1 when I can but the check is now working....thanks!
Re: WebPage returns 'null' but manual check works
Glad everything worked out!