Hello all,
is it possible to load all cfg files under a directory?
The obvious addition in nagios.cfg is not working:
cfg_file=/etc/nagios/objects/hostextinfo/*.cfg
Any workaround?
Thank you
Load all configs in a directory
-
amprantino
- Posts: 140
- Joined: Thu Apr 18, 2013 8:25 am
- Location: libexec
-
alex.mullen
- Posts: 2
- Joined: Fri Sep 18, 2015 10:58 am
Re: Load all configs in a directory
Hi,
You should change cfg_file to cfg_dir
cfg_dir=/etc/nagios/objects/hostextinfo/
You should change cfg_file to cfg_dir
cfg_dir=/etc/nagios/objects/hostextinfo/
-
alex.mullen
- Posts: 2
- Joined: Fri Sep 18, 2015 10:58 am
Re: Load all configs in a directory
Hi,
You should change cfg_file to cfg_dir
cfg_dir=/etc/nagios/objects/hostextinfo/
You should change cfg_file to cfg_dir
cfg_dir=/etc/nagios/objects/hostextinfo/
Re: Load all configs in a directory
@amprantino, did that solve your issue or is there something we can do to further help with this?
Thanks @alex.mullen!
Thanks @alex.mullen!
Former Nagios Employee.
me.
me.
-
amprantino
- Posts: 140
- Joined: Thu Apr 18, 2013 8:25 am
- Location: libexec
Re: Load all configs in a directory
Everything OK!!
Thank you
Thank you