Nagios command-line tools
Steve Kieu
msh.computing at gmail.com
Mon Apr 7 22:03:01 CEST 2008
I remember that I have done it querying mysql db and using ndo for nagios.
On Mon, Apr 7, 2008 at 11:25 AM, Kelly Jones <kelly.terry.jones at gmail.com>
wrote:
> Nagios has a great web interface. I sometimes want the information
> from that interface in command-line format for other scripts.
>
> Does nagios have command-line tools that will:
>
> % Return all the children/descendants of machine X.
>
> % Return all services being tested on machine X.
>
> % Return all services in servicegroup X.
>
> etc...?
>
> I realize /var/spool/nagios/objects.cache has all this info (and
> status.dat even has the current status), and my current hack is to
> parse that file, but is there an easier/better way to get this info?
>
> --
> We're just a Bunch Of Regular Guys, a collective group that's trying
> to understand and assimilate technology. We feel that resistance to
> new ideas and technology is unwise and ultimately futile.
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Register now and save $200. Hurry, offer ends at 11:59 p.m.,
> Monday, April 7! Use priority code J8TLD2.
>
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> 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
>
--
Steve Kieu
Mob: (+64) 021 250 6437
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080408/dac18a37/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Register now and save $200. Hurry, offer ends at 11:59 p.m.,
Monday, April 7! Use priority code J8TLD2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
-------------- next part --------------
_______________________________________________
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