Querying nagios object information through command line

RichTea mail at catsnest.co.uk
Wed May 16 11:47:13 CEST 2012


On Wed, May 16, 2012 at 9:14 AM, Yu Watanabe <yu.watanabe at jp.fujitsu.com>wrote:

> Hi all!
>
> Is there a script or a module that can be called through a command line
> and can retrieve nagios object definition , host , service?
>
> I am thinking of calling from php program.
>
> I found that config.cgi has an ability of fetching the object definition
> but it seems that it returns html info.
>
> It would be helpful if someone can share their thoughts.
>
>  I only know of "Nagios::Config" It is in CPAN.

We were using some awk for parsing the config too but I can not find that
right now, i do not remember it being "too" complicated though.

Ritchie,
--
<-- http://23.me.uk/2 -->
<--Time flies like an arrow; fruit flies like a banana.  -->



>
> Thanks,
> Yu
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20120516/9e1a7a09/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
-------------- 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