using include statements
Christian Löw
christian.loew at steyr-ssf.com
Fri Apr 25 07:44:02 CEST 2003
On Thu, Apr 24, 2003 at 08:11:33PM -0700, Jonathan Nichols wrote:
> Evening, all!
> I'm currently monitoring 56 services on 16 hosts. My
> /etc/nagios/services.cfg file is getting reeeeeally long. Would it be at
> all possible to tell it to include other files? IE
>
> /etc/nagios/services.cfg:
> include ../mailservers/mail1.cfg
> include ../webservers/www1.cfg
> include ../webservers/www2.cfg
> include ../routers/cisco-72b.cfg
>
> Would that work? I honestly have not tried it yet because a)It's almost
> Friday and b)freeze on making crazy changes to systems. :-)
try:
cfg_file=/etc/nagios/mailservers/mail1.cfg
cfg_file=/etc/nagios/webservers/www1.cfg
.....
in nagios.cfg
chris
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
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