programmatic access to nagios state
Joerg Linge
pitchfork at ederdrom.de
Tue Nov 1 06:45:26 CET 2011
Am 01.11.2011 um 06:33 schrieb Henti Smith:
> On Tue, Nov 1, 2011 at 6:10 AM, Aamer Akhter <aakhter at gmail.com> wrote:
>> Hello,
>
> Hi,
>
>> Is there a way to programmatically access the state of specific
>> services that nagios is monitoring? I can see how one could do that
>> via the web interface but that would mean parsing the html. Is there a
>> more straightforward API/interface?
>
>
> Nagios writes the current state in a file called status.dat
>
> This file can be parsed to find the status of the host/service you want.
a smarter way is to use livestatus
http://mathias-kettner.de/checkmk_livestatus.html
Joerg
------------------------------------------------------------------------------
RSA® Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list