Page 1 of 1
WebPage returns 'null' but manual check works
Posted: Thu May 17, 2012 8:19 am
by capeschools
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?
Re: WebPage returns 'null' but manual check works
Posted: Thu May 17, 2012 9:24 am
by mguthrie
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
Re: WebPage returns 'null' but manual check works
Posted: Thu May 17, 2012 9:33 am
by capeschools
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
Posted: Fri May 18, 2012 10:00 am
by agriffin
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.
Re: WebPage returns 'null' but manual check works
Posted: Fri May 18, 2012 10:51 am
by capeschools
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.
Re: WebPage returns 'null' but manual check works
Posted: Fri May 18, 2012 10:56 am
by capeschools
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
Posted: Fri May 18, 2012 11:06 am
by agriffin
Glad everything worked out!