Nagios jNap plugin.
We’re running PHP 5.2.13-1, and when trying to connect to the server we get the following error.
[Thu Feb 03 10:50:46 2011] [error] [client 18.104.22.168] PHP Warning: Invalid argument supplied for foreach() in /usr/share/nagios/jNag/server/returndata.php on line 87, referer: http://vpn.ignite360.com/nagios/jNag/client/
[Thu Feb 03 10:50:46 2011] [error] [client 22.214.171.124] PHP Warning: Invalid argument supplied for foreach() in /usr/share/nagios/jNag/server/returndata.php on line 103, referer: http://vpn.ignite360.com/nagios/jNag/client/
I do however get a TON of hosts when i do
echo “GET hosts” | unixcat /path/to/my/live
that warning is due to sloppy coding on my part, it’s completely normal to see that error in your server logs even when jNag is working correctly (it’s because I don’t check to see if I got data returned before iterating through it).
However, if you’re seeing that message on the webpages then you need to turn off displaying of errors in PHP.ini (until I refactor the code!)
i have a htc diesire and install jnag.
jnag ask for an data source.
After enter http://192.168.100.21/icinga/cgi-bin in the field an enter name and password, the screen returns with blank fields with no error message.
What ist the right convention for the data source field.
Thanks for you program and your support
First off you need to install the jNag server component on your nagios server. Once that’s done, the ‘data source’ is the location of ‘returndata.php’ which is provided with the server component.
Hope that helps.
Unable to get this app to connect. No documentation, no clue what it want’s for a url. I guessed at the CGI-bin directory, and the main najios home directory but none of that worked.
I use https and it seems you don’t support https so I changed to http and at least got an error message that my server was redirecting to https. Before that, no messages other than can’t connect.
Where is the documentation for this? How does one make it work, or even get started?
I use jNag with livestatus, and i have some questions…
First, when i put authuser at true, i don’t have host informations (with login and password). If i put authuser at false (without login and password), i have the informations…
//Use AuthUsername in livestatus requests?
authuser = true
I have also error in my logs like this :
[Tue Feb 04 09:48:39 2014] [error] [client 192.168..] PHP Notice: Undefined index: PHP_AUTH_USER in /var/www/html/j/server/returndata.php on line 27, referer: http://192.168.2.97/j/client-web/index.html
[Tue Feb 04 09:48:39 2014] [error] [client 192.168..] PHP Notice: Undefined index: PHP_AUTH_PW in /var/www/html/j/server/returndata.php on line 28, referer: http://192.168.2.97/j/client-web/index.html
I have create host group, and access for host group in Centreon, and i would like, with the same specific login and password, access to the specific information with jNag…
Thanks you so much for your help
Have a nice day
From where I download your Tallpaul_CategoryShipping plugin. The download link which you provided is not working.
try here: http://www.tall-paul.co.uk/download/category-shipping-module/
Your email address will not be published. Required fields are marked *
This site uses Akismet to reduce spam. Learn how your comment data is processed.