Page 1 of 1

pull status data periodically and issue commands to nagios

Posted: Tue Jul 10, 2012 7:29 am
by rajith
Hi all,
i have been working with nagios core for few weeks and i need to get status data (preferred in XML format) for another tool. i have came across few ways of doing that

1. Using Nagios XML engine and pulling status.dat and communication (but it seems to be not efficient pulling a such a large file and nxe seems to be outdated, as i noticed it is lack of documentation also)
2. Using nagios to write perfdata.log and pushing those data by executing a command given to nagios command.cfg.

above ways are seem to be not sufficient for my requirement.

the suggested tool is we are going to use is basically for provide status data and perfomance data in timely manner
(like Nagiosgraph http://nagiosgraph.sourceforge.net/ ).

so i need to
1. pull the status data from nagios core
2. and give commands to nagios core (like rescheduling service checks).

so can you suggest away for add this layer between nagios core and my 3rd party tool.

thanks in advance.
Rajith

Re: pull status data periodically and issue commands to nagi

Posted: Tue Jul 10, 2012 9:32 am
by mguthrie
I would look at mk_livestatus. This seems to be the tool of choice for larger operations.

http://mathias-kettner.de/checkmk_livestatus.html

Re: pull status data periodically and issue commands to nagi

Posted: Wed Jul 11, 2012 1:10 am
by rajith
Thanks M.
It seems this would do what i want.