dump of nagios configuration

Andreas Ericsson ae at op5.se
Wed Aug 4 23:41:37 CEST 2004


Chaos Golubitsky wrote:
> Hi guys,
> 
> I poked through the Nagios manual in some detail, and i don't believe
> i was able to find an answer to this.  I am trying to debug a
> somewhat complex configuration, and am finding that it would be
> very useful to be able to get a dump of what Nagios thinks all of
> its configuration variables are.  That is, ideally, i could start
> Nagios, and it would read its config, and output:
> 
>   service:
>      name=my-service
>      normal_check_interval=30
>      retry_check_interval=3
>      ...
> 
> (for each service, and for all configuration variables, both those
> which were declared and those which had taken their default values),
> and it would do the same thing for hosts, check commands, etc.
> 
> Does anyone have any suggestions about how to get Nagios to output
> its configuration variables to this level of detail?
> 

Upgrade to Nagios 2.0 and have a look at /usr/local/nagios/var/objects.cache
It should be exactly what you're looking for.

> Thanks in advance.
> 
> -Chaos
> 

No worries, Mr. Entropy. ;-)

-- 
Sourcerer / Andreas Ericsson
OP5 AB


-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
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