What algorithms used to pull data from Nagios to mobile?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
elvinchia
Posts: 25
Joined: Fri Jul 23, 2010 12:01 am

What algorithms used to pull data from Nagios to mobile?

Post 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.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

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

Post 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.
elvinchia
Posts: 25
Joined: Fri Jul 23, 2010 12:01 am

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

Post by elvinchia »

Ok. Thanks
elvinchia
Posts: 25
Joined: Fri Jul 23, 2010 12:01 am

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

Post 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?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

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

Post 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).
Locked