nagios 3.0b3 ochp problem

Olivier JAN ojan at expertise-online.net
Thu Sep 27 11:33:54 CEST 2007


Hi list,

Im' setting up a distributed monitoring with nagios 3.0b3. All is working
well with oscp. Each time i check a service, central server is notified of
the check result with the oscp command i defined.

The problem is that i can't have this working for ochp and the settings are
quite the same as oscp. Here they are :

in nagios.cfg
obsess_over_hosts=1 
ochp_command=submit_host_check_result

in template generic-host
obsess_over_host 1

a command is defined
# 'submit_host_check_result' command definition
define command{
        command_name    submit_host_check_result
        command_line    $USER2$/submit_check_result $HOSTNAME$
$HOSTSTATEID$ '$HOSTOUTPUT$'
        }

and finally the submit_check_result script

printfcmd="/usr/bin/printf"

NscaBin="/usr/local/nagios/libexec/send_nsca"
NscaCfg="/usr/local/nagios/etc/send_nsca.cfg"
NagiosHost="10.176.77.60"

# Fire the data off to the NSCA daemon using the send_nsca script
$printfcmd "%s\t%s\t%s\n" "$1" "$2" "$3"  | $NscaBin $NagiosHost -c
$NscaCfg

All paths and rights have been carefully checked and seems ok. Calling the
script with paramaters manually works

./submit_check_result U3RIPC85 0 'OK'

The passive host check result is received on the central and this is
reflected in web interface.
EXTERNAL COMMAND: PROCESS_HOST_CHECK_RESULT;U3RIPC85;0;OK

But this doesn't work when i force a reschedule of the host or on normal
check, central doesn't get notified.
I tried to activate nagios debug but can't see anything with it.

So guys, is there's anything i forget ? Where can i trace what's going on
when i force a host check. See if ochp is called or not... Or is it just a
bug ? Any advice or solution anyone ?


Nice day for all


Olivier Jan
-------------------------------------------------------------------------------------------------------------------------------------------------------
Contact me if you're interested to take part in nagios-fr.org, the
"soonreadytobelaunch" french nagios community. You should at least read and
write french ;-)
-------------------------------------------------------------------------------------------------------------------------------------------------------








-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20070927/ec781ea5/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


More information about the Developers mailing list