Page 2 of 2

Re: NSCA ocsp command not executing

Posted: Mon Apr 23, 2012 9:22 am
by mitchsmith
Hi,

The Permissions are

-rwxr-xr-x 1 nagios nagios 453 Apr 20 11:39 submit_service_check

I can run this manually as the nagios user:

Code: Select all

[nagios@nagioshost eventhandlers]$  /usr/local/nagios/libexec/eventhandlers/submit_service_check  "helloCWPtest" "test" 1 "TESTING MITCHELL \| Hello"
1 data packet(s) sent to host successfully.

Re: NSCA ocsp command not executing

Posted: Mon Apr 23, 2012 9:41 am
by scottwilkerson
This looks correct,
Does the command depend on any environment variables or anything.

Re: NSCA ocsp command not executing

Posted: Mon Apr 23, 2012 9:50 am
by mitchsmith
Hi,

there are no environmental variables used for this command, I have even removed the $USER2$ nagios rescource variable and used a full path to the command.

I think there has to be something preventing this being executed via nagios. This command / config works in other distributed enviroments within our business (Using Nagios Core) its only this location using XI where this issue occurs.

I am currently working back through all templates used to ensure that oscp has not been disabled, as a second check however I cant see this being the issue as it works in other environments.

Regards,

Mitchell

Re: NSCA ocsp command not executing

Posted: Mon Apr 23, 2012 10:20 am
by mitchsmith
Can you give me a detailed defintion of the:

on off skip and null definitions used in nagios.

Am I correct in assuming that once template 1 sets the value Template 2 cannot overwrite it?

Re: NSCA ocsp command not executing

Posted: Mon Apr 23, 2012 12:03 pm
by mitchsmith
I have checked all my configurations. And even created a test service that implements no templates.

The Obsess over service command is never fired (I have wrapped this with a perl script that I use to debug checks which logs no activity for this command)

I also tried switching the ocsp command to use a notify-by-email (Edited to email a set address) that is proven to work in this environment. The ocsp command is never executed.

Re: NSCA ocsp command not executing

Posted: Mon Apr 23, 2012 12:20 pm
by mitchsmith
Resolved:

It appears that although the nagios.cfg file had been updated, for some reason the Obsess_over_service parameter was not being read by nagios.

Process Info was showing obsess over service as disabled... once I clicked enable in the GUI it appeared to correct the issue. Not sure if this is a bug in xi reading the core config file?

Re: NSCA ocsp command not executing

Posted: Mon Apr 23, 2012 12:54 pm
by scottwilkerson
Weird, seems to me like the nagios didn't restart all the way...

Glad it is resolved.