Stuff & Nonsense

Contact Me

[CONTACT_FORM_TO_EMAIL]

8 thoughts on “Contact Me

  1. 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 97.79.129.210] 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 97.79.129.210] 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

    1. Hi Adam,

      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!)

    1. 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.

  2. 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?

  3. Dear Paul,
    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…
    options.cfg :
    //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
    _______________________________________

Leave a Reply

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.