obsess_over_service in services.cfg

Marc Powell marc at ena.com
Tue Jul 5 22:05:30 CEST 2005



> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of Jay Nakamura
> Sent: Tuesday, July 05, 2005 2:30 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] obsess_over_service in services.cfg
> 
> 
> What does the obsess_over_service option in service configuration do?

I don't know what happened to it in the 1.x doccos, but from 2.x (which
is still the same) --

This directive determines whether or not checks for the service will be
"obsessed" over using the ocsp_command.


> 
> I want to be able to send service check result to another server but
> only for select few services.
> 
> I have tried setting
> 
> obsess_over_services = 1
> 
> in main config, then
> 
> define service {
> 	<snip>
> 	obsess_over_service 0
> 	</snip>
> }
> 
> in services.cfg for all the services that I don't want sent to main
> server.

That should do what you want.
 
> This still results in all services sent to the main server.

Did you previously have it set to 1 for all services?
 
> If I do the reverse and set
> 
> obsess_over_services = 0
> 
> in main config, then set obsess_over_service in service.cfg to 1 for
> those I want to send but 0 for ones I don't want to send, nothing gets
> sent.

Expected.

> Is this suppose to work like I want to? 

Yes.

> I didn't find any comment in the documentation for obsess_over_service
> in services.cfg
> 
> Any help will be appreciated.

It sounds like you may have retain_state_information enabled. If you do,
and previously had obsess_over_service set to 1 then the values in the
retention file will take precedence over the values in the config. See
the retention notes at
http://nagios.sourceforge.net/docs/1_0/xodtemplate.html if that scenario
fits. 

--
Marc


-------------------------------------------------------
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_idt77&alloc_id492&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