including a file from in the services.cfg file
Jason Martin
jhmartin at toger.us
Wed Mar 17 16:17:10 CET 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
There isn't an include directive per se; but you can use the "cfg_dir"
directive in nagios.cfg to define a direction in which all files should be
used as object-files. services do not have to go in just a file called
services.cfg, so you can have your perl script write to the directory
specified by cfg_dir and it'll get read in whenever Nagios launches.
- -Jason Martin
On Wed, 17 Mar 2004, Patrick Amirian wrote:
> HI,
> I would like to know if there is a way for me to
> Include a .txt file in my services.cfg file?
>
> I have a perl script that dynamically generates services to watch in a
> txt file and I just want the services.cfg file to include this file in
> itself so that I can monitor my systems that are constantly changing.
>
> So how do I include a txt file from within a .cfg file?
>
> Thanks.
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> 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
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.3.5 (GNU/Linux)
Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/
iD8DBQFAWGwDl2ODWuqVSBMRAuURAJ9yaZzYGTrX+sm7XHHGTVzVbvhwowCfXUZy
ijzlwH7yeZDIj7lTu+dQHNY=
=7wsy
-----END PGP SIGNATURE-----
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
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