Stuff & Nonsense

No more updates for jNag

So, yeah I’ve sort of lost interest in jNag unfortunately.  It was a fun little project while it lasted but I’ve not updated it for a couple of months and to be honest I have no real interest in updating it any more.

Mostly this is down to a complete lack of time on my part, I recently accepted a promotion at work so I’m horrendously busy now.  Also, I’ve run out of fun things to do with it…the features that need adding aren’t particularly interesting and I don’t really fancy plugging away at boring stuff in my spare time.

I’ll be removing the paid android app from the appstore ASAP and moving the iPhone app to a free version sometime this week.  After that I probably won’t be making any more updates unless a) I get bored or b) someone offers me bucket loads of cash to update the code.

Just to clarify: the free versions of the app will continue to be available.

Sorry for any inconvenience, hope you got / continue to get some use from the released code.

16 thoughts on “No more updates for jNag

  1. Well i understand that fully. Thanks for your great work so far!
    One question, will that free version (server, Android,iPhone) be licensed under the GPL so someone could create a fork out of it?

    Thanks again.

    1. Hi,

      I didn’t get a job as a result of posting it here, however jNag itself (as a little thing to take around and demo to prospective employers) was a good little ‘portfolio’ addition.

      I start my new job on the 13th of February 🙂

  2. I was wondering if there is a forum of users for this software? I most of the product working great.. I love the look. I can not get any of the commands to work. Anyone running with the software these days? 🙂

    1. I did have a forum on the previous incarnation of this site, unfortunately it got spammed to a ridiculous extent and I didn’t have the time to maintain it.

      If there’s enough demand I could look into providing a forum again, however I’ve no real idea how many people are using jNag or interested in further help / development

      1. Fair enough I can certainly understand that. Do you have any flags built in to debug jNag or any other function? for some reason the command output for cmd.cgi shows up in the http debug logs as

        POST /nagios/cgi-bin/cmd.cgi

        I think it should be something similar to this though….
        /nagios/cgi-bin/cmd.cgi?cmd_typ=34&host=server01&service=Uptime

        If you don’t have any extra cycles to spare, I understand good luck with your job 🙂

        Thanks,
        Jim

        1. The URL you’re expecting to see has the parameters as a ‘GET’ type request, with a POST which I’m doing the same parameters should be in the body of the request. It’s possible that something’s changed in the version of Nagios you’re using…are you seeing any errors in the nagios logs?

          The best way to debug this is probably to run the web client in firefox and use the firebug extension to see everything that’s going to / from the server… you can check what’s being sent in the POST request this way.

          Unfortunately I really don’t have any spare time at the moment, but when I do I might dig out the jNag code and have a looksee.

          Cheers!

  3. Hello,

    I have one question about jNag, i hope you find time to answer me. I just don’t seem to get it working. I installed the server component to my nagios server and when i run webclient or iPhone app, it says “Error. Parsing JSON request failed.” It surely is a misconfiguration problem in options.cfg since in Apache error log i see an error:

    “PHP Warning: fsockopen() [function.fsockopen]: unable to connect to unix:/var/www/html/nagios/var/rw/live:0 (php_network_getaddresses: getaddrinfo failed: Name or service not known) in /var/www/html/nagios/share/jNag/server/returndata.php on line 85, referer: https://myserver/nagios/jNag/webclient/index.html

    What is the correct syntax for livestatus socket in options.cfg? my config is like this:

    “//path to your livestatus socket
    data_address = unix:/var/www/html/nagios/var/rw/live”

    1. Hi Mitch, the location of your livestatus socket is configuration dependant… it depends where you selected for the socket to be created when you installed livestatus so I can’t really help you with that unfortunately, sorry :/

  4. First off I want to say thanks for creating this awesome front end.

    I am having a problem getting authentication to work on jnag. If I set authenticate to false in the options it works fine but when set to true I find these errors in apache log: Undefined index: PHP_AUTH_USER so I know the username and pass is not getting sent to returndata.php. I can manually input the username and pass in returndata.php to get it to work but it doesn’t seem like the webclient is pushing the username and pass. Is there something that I am missing?

    1. Um… that’s one I haven’t heard before. I can’t remember without looking at the code, but as far as I remember there shouldn’t be anything else you need to do.

      Might be worth loading the web client in firefox and using firebug to see what’s being pushed to the server.

      1. I had a whole heap of troubles with this too. It was in relation to PHP not understanding how to parse header info to CGI.

        In the end to get around I hard coded the Nagios configuration into the jNag.js file, removed any reference to PHP_* as a variable.

        Loads and runs very well. Shame it’s not under active development anymore.

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.