I got an Android phone in the last year, and started looking in earnest for a Nagios client for it. With a Nagios client, you can read what the current status is of your systems in Nagios.
There are several available; the two most often mentioned are NagRoid and NagMonDroid. However, neither one of these worked for me, and there are indeed others that were good.
All of the clients use the same basic method to get data from Nagios: scrape the data from a web page. The biggest problem comes when that web page is not available – or is incorrect. Most of these applications request a URL, but sometimes are unclear as to what URL they want exactly. Add to that the fact that Nagios changed its URL structure slightly between versions and it gets even more complicated.
To discover what was happening, I used tcpdump to watch the accesses to the web server from the Nagios clients, as well as watching the Apache logs. By doing this, I was able to discern what URLs were being loaded.
Here are some of the URL paths being looked for by the various clients:
- /cgi-bin/tac.cgi
- /cgi-bin/status.cgi
- /cgi-bin/nagios3/statuswml.cgi?style=uprobs
- /cgi-bin/nagios3/status.cgi?style=detail
- /cgi-bin/nagios3/status.cgi?&servicestatustypes=29&serviceprops=262144
Further complicating matters in my case was the fact that any unrecognized URL was massaged (via mod_rewrite) into serving the main Nagios page via SSL.
However, by using mod_rewrite it was possible to rewrite the old /cgi-bin paths to a newer /cgi-bin/nagios3 path, and things started working.
In the case of the statuswml.cgi file, Google Chrome wanted to download the resulting file instead of actually using it somehow.
The main choices for Nagios clients on Android are these:
- NagRoid
- NagMonDroid
- aNag
- jNag (and jNag ad supported)
- TiNag (and TiNag Light)
I have gone with aNag – it has a nice interface, good use of notification, and worked without trouble once the URL was fixed up. Several of the others never did work right – or they gave no indication that they were working right. In the case of jNag, it also requires a modified Nagios server and the installation of mkLivestatus. aNag was the one that was easiest to work with and get working.
aNag does use a mostly text-based format to show data, but it has the ability to manipulate services as well as one-button access to the web interface directly.
Happy to see that aNag is usefull 🙂
Regards,
Damien
I removed aNag (along with a number of other things) because I have a nasty tendency to load everything under the sun into my computers (or is it a smartphone?). I was running out of memory and CPU time.
aNag was the only one that I missed and reloaded. The interface is better than the actual Nagios interface, and very easy to use in the mobile environment.
Thank you!
You should give TiNag another try, it improved lots in the last month.
aNag surprised me recently by directly supporting PNP4Nagios graphs in the application; does TiNag do this?
You can take a look at NotifyMe https://notifyme.dagami.org/en/index.html
It works on android phones or tablets and uses GCM (formerly C2DM) Google system.
Any feedback would be appreciated