NSCA ocsp command not executing

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
mitchsmith
Posts: 33
Joined: Mon Apr 04, 2011 7:26 am

Re: NSCA ocsp command not executing

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NSCA ocsp command not executing

Post by scottwilkerson »

This looks correct,
Does the command depend on any environment variables or anything.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
mitchsmith
Posts: 33
Joined: Mon Apr 04, 2011 7:26 am

Re: NSCA ocsp command not executing

Post 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
mitchsmith
Posts: 33
Joined: Mon Apr 04, 2011 7:26 am

Re: NSCA ocsp command not executing

Post 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?
mitchsmith
Posts: 33
Joined: Mon Apr 04, 2011 7:26 am

Re: NSCA ocsp command not executing

Post 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.
mitchsmith
Posts: 33
Joined: Mon Apr 04, 2011 7:26 am

Re: NSCA ocsp command not executing

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NSCA ocsp command not executing

Post by scottwilkerson »

Weird, seems to me like the nagios didn't restart all the way...

Glad it is resolved.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked