What algorithms used to pull data from Nagios to mobile?
What algorithms used to pull data from Nagios to mobile?
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?
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.
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?
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?
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).