WebPage returns 'null' but manual check works

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
capeschools
Posts: 10
Joined: Tue May 15, 2012 2:05 pm

WebPage returns 'null' but manual check works

Post 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?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: WebPage returns 'null' but manual check works

Post 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
capeschools
Posts: 10
Joined: Tue May 15, 2012 2:05 pm

Re: WebPage returns 'null' but manual check works

Post by capeschools »

I saw that note...but I do not have any double quotes in the check command as far as I can see?
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: WebPage returns 'null' but manual check works

Post 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.
capeschools
Posts: 10
Joined: Tue May 15, 2012 2:05 pm

Re: WebPage returns 'null' but manual check works

Post 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.
capeschools
Posts: 10
Joined: Tue May 15, 2012 2:05 pm

Re: WebPage returns 'null' but manual check works

Post 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!
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: WebPage returns 'null' but manual check works

Post by agriffin »

Glad everything worked out!
Locked