Page 1 of 1

host defined in static directory not showing up

Posted: Wed Apr 06, 2011 3:47 pm
by lyle
I suppose it's something dumb, but I add some cfg files to the static directory, defining hosts and services, and they're not showing up in the XI interface.

I run "/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg" without errors.

Then I've tried:
"service nagios restart"
"killall -9 nagios"
"/etc/init.d/nagios reload" (I was desperate)

Nothing works.
The config files are all owned by apache:nagios with protections of 775

Any ideas? Thanks...Lyle

Re: host defined in static directory not showing up

Posted: Wed Apr 06, 2011 3:58 pm
by tonyyarusso
First thought - are they listed as being read when you do nagios -v?

Re: host defined in static directory not showing up

Posted: Wed Apr 06, 2011 4:03 pm
by lyle
Well they did show up. Maybe I was panicking 8-)

What's the proper way to reload nagios after changing configs in the static directory?

Thanks...Lyle

Re: host defined in static directory not showing up

Posted: Wed Apr 06, 2011 4:16 pm
by tonyyarusso
Ah, good. 'service nagios restart' is the proper method (after verifying them).