On Wed, May 16, 2012 at 9:14 AM, Yu Watanabe <yu.watan...@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@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
>
------------------------------------------------------------------------------
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@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

Reply via email to