Page 1 of 1

Load all configs in a directory

Posted: Mon Sep 21, 2015 5:27 am
by amprantino
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

Re: Load all configs in a directory

Posted: Mon Sep 21, 2015 8:05 am
by alex.mullen
Hi,

You should change cfg_file to cfg_dir

cfg_dir=/etc/nagios/objects/hostextinfo/

Re: Load all configs in a directory

Posted: Mon Sep 21, 2015 8:08 am
by alex.mullen
Hi,

You should change cfg_file to cfg_dir

cfg_dir=/etc/nagios/objects/hostextinfo/

Re: Load all configs in a directory

Posted: Mon Sep 21, 2015 9:32 am
by hsmith
@amprantino, did that solve your issue or is there something we can do to further help with this?

Thanks @alex.mullen!

Re: Load all configs in a directory

Posted: Wed Sep 23, 2015 2:14 am
by amprantino
Everything OK!!

Thank you