How to keep host/service in config but disable?

prosolutions at gmx.net prosolutions at gmx.net
Wed Jul 27 18:07:03 CEST 2005


Yes but this isn't exactly what I want.  When I set
active_checks_enabled 0 and notifications_enabled  0  I still see the
host appear in the web interface (for example
status.cgi?hostgroup=all&style=overview) with a green status cell saying "UP"
and a green services cell saying "1 OK".  

This seems misleading if in fact the host is truly disabled.  I think the boxes should be greyed out and say "N/A" and not give the impression that the host is OK.  Or else they host should not even appear in the web interface if it is truly "disabled".  Currently, the only way I know to stop it appearing from the interface is to comment it completely out of hosts.cfg, services.cfg, escalations.cfg (if it is in there), and hostgroups.cfg, which is a tedious/laborious process.



So wrote Scott Sugar on Wednesday, 27 July 2005:
> Date: Wed, 27 Jul 2005 00:07:52 -0400
> From: Scott Sugar <ssugar at proserveit.com>
> To: prosolutions at gmx.net, nagios-users at lists.sourceforge.net
> Subject: RE: [Nagios-users] How to keep host/service in config but disable?
> 
> set the active_checks_enabled to 0 in services.cfg for each service you want disabled... and set checks_enabled to 0 in hosts.cfg...  
> look at
> http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#service
> for all the options a service can have in services.cfg
> and
> http://nagios.sourceforge.net/docs/2_0/xodtemplate.html
> for all the options a host can have in hosts.cfg
> 
> ________________________________
> 
> From: nagios-users-admin at lists.sourceforge.net on behalf of prosolutions at gmx.net
> Sent: Tue 7/26/2005 6:16 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] How to keep host/service in config but disable?
> 
> 
> 
> 
> 
> Is there a simple way to disable a host/service check and remove it from the
> monitoring pool without having to completely comment it out from services.cfg,
> hosts.cfg, hostgroups.cfg, etc.?
> 
> I noticed that I can use "register 0" in hosts.cfg and services.cfg but
> I still must remove stuff from hostgroups.cfg....
> 
> 
> 
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&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
> 
> 



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&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