Page 1 of 1

What algorithms used to pull data from Nagios to mobile?

Posted: Fri Apr 01, 2011 9:57 am
by elvinchia
Anyone knows the algorithms or methods used to pull the data from Nagios server to be view in Mobile interface like Nagroid ? I am going to create a mobile application in Android to view the data from Nagios.

Re: What algorithms used to pull data from Nagios to mobile?

Posted: Fri Apr 01, 2011 11:02 am
by mguthrie
All of the key data for Nagios can be found in the following 3 files:

objects.cache -> This is compilation of all object configuration data in Nagios
status.dat -> This is all of the current status data for all monitored objects
cgi.cfg -> This is the permissions file for the cgi's.

This simplest way to start something like this would be to parse the files, cache the data every 30-90 seconds, and then have it accessible via XML, or JSON, or whatever format you need.

Re: What algorithms used to pull data from Nagios to mobile?

Posted: Sat Apr 02, 2011 2:20 am
by elvinchia
Ok. Thanks

Re: What algorithms used to pull data from Nagios to mobile?

Posted: Sat Apr 09, 2011 12:33 am
by elvinchia
How to make a connection between the nagios server to the mobile application like Nagroid? Is is socket programming involved? What I mean here is how the Nagios sync with Nagroid?

Re: What algorithms used to pull data from Nagios to mobile?

Posted: Sat Apr 09, 2011 10:18 pm
by mguthrie
That's kind of the money-making question. We haven't done an official mobile app at this point, so I would suggest taking a look at some of the existing community apps out there and see what they did. (exchange.nagios.org).