Discussion:
[Nagios-users] obsess_over_service in services.cfg
Jay Nakamura
2005-07-05 17:28:36 UTC
Permalink
What does the obsess_over_service option in service configuration do?

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.

This still results in all services sent to the main server.

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.

Is this suppose to work like I want to?

I didn't find any comment in the documentation for obsess_over_service
in services.cfg

Any help will be appreciated.

Just FYI, I am running nagios v1.2 from nagios-1.2-2.1.fc3.rf.rpm
Bill Akins
2005-07-05 18:02:45 UTC
Permalink
http://nagios.sourceforge.net/docs/2_0/configmain.html#obsess_over_services
What does the obsess_over_service option in service configuration do?

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.

This still results in all services sent to the main server.

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.

Is this suppose to work like I want to?

I didn't find any comment in the documentation for obsess_over_service
in services.cfg

Any help will be appreciated.

Just FYI, I am running nagios v1.2 from nagios-1.2-2.1.fc3.rf.rpm


-------------------------------------------------------
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-***@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
Marc Powell
2005-07-05 18:06:38 UTC
Permalink
-----Original Message-----
Sent: Tuesday, July 05, 2005 2:30 PM
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
Jay Nakamura
2005-07-05 18:21:25 UTC
Permalink
Post by Marc Powell
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.
Oh yes... I read that two days ago and I spaced it. I got it working!
Thanks for the sanity check! :)

Loading...