Can nagios export the configuration that it currently holds?

Jim Avery jim at jimavery.me.uk
Wed Jan 5 13:39:59 CET 2011


On 5 January 2011 10:22, Mister IT Guru <misteritguru at gmx.com> wrote:
> I've wondered if nagios can export the configuration it currently has in
> one big file? I'm assuming that it reads in all these configuration
> files, it should be able to spit out that same data in some sort of
> structured form?
>
> It's just that I feel that nagios, (and not just nagios mind you, a lot
> of open source software that read in formatted text based config files),
> is such a mature project, that surly, there should be a way to export
> the configuration to a txt file at least, so that I can see what nagios
> 'sees'
>
> It would also be pretty cool if nagios could export the config without
> hardcoded variables, so people can paste what nagios sees to the list
> for example, and have people help with thier config with out fear of
> exposing unique info like IP addresses, host name and such, that are in
> out text based configs - I'm always worried when posting my configs for
> a lot of apps, apache. bacula, nagios etc. So it would be nice if it did
> exist :)

You'll find the Nagios config in one big file in
/usr/local/nagios/var/objects.cache

hth,

Jim

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
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