using include statements
Steven Lynch
steven.lynch at network-box.com.au
Fri Apr 25 09:03:54 CEST 2003
On Friday, April 25, 2003, at 03:44 PM, 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
Or better still
cfg_dir=/etc/nagios/mailservers
cfg_dir=/etc/nagios/webservers
Steven
--
Steven Lynch [Chief Technical Officer]
mailto: steven.lynch at network-box.com.au
Network Box Australia Pty Ltd Phone: +61-3-98945555
Suite 9 / 1020 Doncaster Road, Fax: +61-3-98945666
Doncaster East, Vic, Australia, 3109 Web: www.network-box.com.au
-------------------------------------------------------
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