Separate config files

Mike Koponick mkoponick at redhawk.info
Fri Aug 4 16:40:47 CEST 2006


I have used the cfg_dir. My Nagios config looks like:

cfg_dir=/usr/local/nagios/etc/hostgroups

In the directory, I have multiple hostgroup files.

Mike

-----Original Message-----
From: nagios-users-bounces at lists.sourceforge.net
[mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Marc
Powell
Sent: Friday, August 04, 2006 6:28 AM
To: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] Separate config files



> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Nazar Kulynych
> Sent: Friday, August 04, 2006 8:24 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Separate config files
> 
> Is it possible to separate hostgroups into different files.
> For example, I would like to have production hosts in one config file
> and development hosts in another.

Yes, certainly. Create a new file, move your desired hostgroup
definitions to it, include it as a cfg_file in nagios.cfg and restart
nagios.

---
Marc

------------------------------------------------------------------------
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
V
_______________________________________________
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

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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