oscp_command never runs

Ludwig Pummer Ludwig.Pummer at Copart.Com
Wed Sep 7 19:19:18 CEST 2005


> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net 
> [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf 
> Of Marc Powell
> Sent: Wednesday, September 07, 2005 9:27 AM
> To: nagios-users at lists.sourceforge.net
> Subject: RE: [Nagios-users] oscp_command never runs
> 
> 
> 
> > -----Original Message-----
> > From: nagios-users-admin at lists.sourceforge.net 
> [mailto:nagios-users- 
> > admin at lists.sourceforge.net] On Behalf Of Ludwig Pummer
> > Sent: Tuesday, September 06, 2005 5:30 PM
> > To: nagios-users at lists.sourceforge.net
> > Subject: [Nagios-users] oscp_command never runs

...

> > my misccommands.cfg has:
> > define command{
> >         command_name    submit_check_result_smart
> >         command_line
> > /usr/local/nagios/libexec/eventhandlers/submit_check_result_smart
> > $HOSTNAME$ '$SERVICEDESC$' $SERVICESTATE$ '$OUTPUT$'` }

...

> > Anyone have any ideas why the ocsp_command is not being executed?
> 
> Not really. Everything looks correct as detailed above. My 
> next step would be to simplify the submit_check_result_smart 
> command to at least give a direction to look --
> 
> define command{
>         command_name    submit_check_result_smart
>         command_line    /bin/echo "I ran for '$SERVICEDESC$' on
> $HOSTNAME$"  > /tmp/ocsp
> }
> 
> Make sure that nagios really is restarting as well. Nagios 
> doesn't normally log OSCP execution but you may be able to 
> see those by recompiling with a higher debug level. There 
> haven't been any problems with the OCSP code for as long as I 
> can remember so you probably don't need to do that.
> 
> --
> Marc

Your suggested command worked fine, so I went back to figuring out why
mine didn't. Configuring with --enable-DEBUG0 --enable-DEBUG1
--enable-DEBUG2 --enable-DEBUG3 --enable-DEBUG4 made for a much noisier
Nagios, but at least I was able to debug. FYI, the CGI directory won't
compile if you have those debugging messages turned on.

I eventually tracked it down to an extra backtick (`) in my command_line
above. When I ran the debug nagios in non-daemon mode, sh displayed
"Syntax error: EOF in backquote substitution" when my ocsp_command was
run.

Thanks for your help.


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
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