using include statements
Fredrik Wänglund
fredrik.wanglund at datavis.se
Fri Apr 25 09:43:57 CEST 2003
Or
cfg_dir=/usr/local/nagios/etc/webservers
Then Nagios will read all .cfg files in that dir.
The problem with includes is that its easy to have one file included
more than once
and Nagios is very concerned about objects that have already been defined.
Christian Löw wrote:
>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
>
>
-------------------------------------------------------
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