Re: [Nagios-users] programmatic access to nagios state
Hi, You can also use NDOUtils or Merlin to store your hosts and services' state and configuration in a database. Marc-André On 11/01/2011 03:18 PM, Daniel Wittenberg wrote: We use the livestatus event broker for that purpose, there is also a JSON web services frontend for livestatus as well. Dan -Original Message- From: Richard Clark [mailto:n...@fohnet.co.uk] Sent: Tuesday, November 01, 2011 3:44 AM To: Nagios Users List Subject: Re: [Nagios-users] programmatic access to nagios state On 1 Nov 2011, at 04:25, Aamer Akhteraakh...@gmail.com wrote: Hello, 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? -- Aamer Akhter / aakh...@gmail.com There's the Nagios::Status perl modules. Apart from that, Icinga now has a basic JSON API for querying service status etc. -- Richard Clark rich...@fohnet.co.uk -- RSAreg; Conference 2012 Save#36;700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Nagios-users mailing list Nagios-users@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 -- RSAreg; Conference 2012 Save#36;700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Nagios-users mailing list Nagios-users@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 -- RSA#174; Conference 2012 Save $700 by Nov 18 Register now#33; http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] programmatic access to nagios state
On 1 Nov 2011, at 04:25, Aamer Akhter aakh...@gmail.com wrote: Hello, 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? -- Aamer Akhter / aakh...@gmail.com There's the Nagios::Status perl modules. Apart from that, Icinga now has a basic JSON API for querying service status etc. -- Richard Clark rich...@fohnet.co.uk -- RSAreg; Conference 2012 Save #36;700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] programmatic access to nagios state
We use the livestatus event broker for that purpose, there is also a JSON web services frontend for livestatus as well. Dan -Original Message- From: Richard Clark [mailto:n...@fohnet.co.uk] Sent: Tuesday, November 01, 2011 3:44 AM To: Nagios Users List Subject: Re: [Nagios-users] programmatic access to nagios state On 1 Nov 2011, at 04:25, Aamer Akhter aakh...@gmail.com wrote: Hello, 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? -- Aamer Akhter / aakh...@gmail.com There's the Nagios::Status perl modules. Apart from that, Icinga now has a basic JSON API for querying service status etc. -- Richard Clark rich...@fohnet.co.uk -- RSAreg; Conference 2012 Save #36;700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Nagios-users mailing list Nagios-users@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 -- RSAreg; Conference 2012 Save #36;700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] programmatic access to nagios state
On Tue, Nov 1, 2011 at 6:10 AM, Aamer Akhter aakh...@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. Henti -- RSAreg; Conference 2012 Save #36;700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] programmatic access to nagios state
Am 01.11.2011 um 06:33 schrieb Henti Smith: On Tue, Nov 1, 2011 at 6:10 AM, Aamer Akhter aakh...@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 -- RSAreg; Conference 2012 Save #36;700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Nagios-users mailing list Nagios-users@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