host critical even through ping check is off?

Andreas Ericsson ae at op5.se
Fri Oct 28 15:22:31 CEST 2005


John Christian wrote:
> Hi nagios gurus,
> 
> Q: How do I erase or reset all traces of a host from Nagios' memory so I can
> re-add the host from scratch?
> 

Stop Nagios.
Remove the host from the configuration.
Run the following line (assumes GNU sed >= 4.0.9 and Nagios installed in 
/usr/local/nagios).

sed -i '/[; ]exact_hostname;/d' /usr/local/nagios/var/*.log 
/usr/local/nagios/archives/*

Re-add host.
Start Nagios.

> Q: What's the max number of hosts I should have on a single "host_name" line
> inside a "define service" section of a services.cfg file?
> 

As many as you like.

> DETAILS:
> 
> Nagsio 2.0b4 on Solaris 9 with apache 2.0.54 has been running great for a
> while. After adding some more hosts to be monitored, the nagios web content has
> become flaky.
> 
> For example: I added hosts to nagios that were on my DMZ (which are not
> pingable). By mistake, I left a check_command in their host definition of
> check-host-alive which trys to ping the host. Of course, the host initially
> showed up as red/critical even though the services were okay. I removed the
> check_command for these DMZ hosts (so they were like my other non-pingable
> hosts) and they went back to green -for a little bit.
> 
> Now, it seems these new DMZ hosts keep switching between green/ok and
> red/critical for no reason. The monitored services are green/ok all of the
> time. When these hosts go red/critical by mistake, they all do so at the same
> time. The other non-pingable hosts (which we've been monitoring for a while)
> continue to show green/ok as usual.
> 

It seems you have several Nagios instances running. Google for a 
solution. You should get at least 200 hits from the archives.

> Also, when I access the "service detail" page, I used to get a complete list of
> all hosts and all services monitored. Now, this page will sometimes omit some
> of the new hosts. If I refresh, sometimes they'll show up. If I "Show host" by
> name, they may or may not show up.
> 

See comment above.

> I've cleared my browser's cache. I've restarted nagios multiple times. I've
> waited 24 hours to see if it will clean itself up. But the problem persists.
> 

See comment above.

> Thanks for any suggestions or hints on other things I can check!

killall nagios; sleep 10; killall -9 nagios

Re-start nagios.
It usually does the trick.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
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