Re: [Nagios-devel] ochp problem

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] ochp problem

Post by Guest »

I found the problem and am posting a patch to CVS momentarily... give
the CVS code a try when you get a chance to make sure it fixed the problem.

Olivier JAN wrote:
> Hello list,
>
> I've already posted something about that which is not solved at the
> moment. This is now on nagios 3.0b4.
> Below is two excerpts of my debug file. In first part, this is how a
> ochp is handled by nagios. We can see it finish with a null in the
> command. In second part is the same for ocsp and it finish with a macro
> correctly loaded.
>
> Can someone explain what can be wrong with my ochp processing. The macro
> seems to be well processed but the final output is not transmitted to
> the commmand.
>
> Thanks
>
> obsessive compulsive host processor command line
>
> [1191227014.189078] [2320.2] [pid=27028] Input:
> $USER2$/submit_check_result $HOSTNAME$ $HOSTSTATEID$ '$HOSTOUTPUT$'
> [1191227014.189091] [2320.2] [pid=27028] Output:
> $USER2$/submit_check_result $HOSTNAME$ $HOSTSTATEID$ '$HOSTOUTPUT$'
> [1191227014.189103] [016.2] [pid=27028] Raw obsessive compulsive host
> processor command line: $USER2$/submit_check_result $HOSTNAME$
> $HOSTSTATEID$ '$HOSTOUTPUT$'
> [1191227014.189116] [001.0] [pid=27028] process_macros()
> [1191227014.189128] [2048.1] [pid=27028] **** BEGIN MACRO PROCESSING
> ***********
> [1191227014.189141] [2048.1] [pid=27028] Processing:
> '$USER2$/submit_check_result $HOSTNAME$ $HOSTSTATEID$ '$HOSTOUTPUT$''
> [1191227014.189153] [2048.2] [pid=27028] Processing part: ''
> [1191227014.189166] [2048.2] [pid=27028] Not currently in macro.
> Running output (0): ''
> [1191227014.189178] [2048.2] [pid=27028] Processing part: 'USER2'
> [1191227014.189195] [2048.2] [pid=27028] Cleaned macro. Running
> output (39): '/usr/local/nagios/libexec/eventhandlers'
> [1191227014.189208] [2048.2] [pid=27028] Just finished macro. Running
> output (39): '/usr/local/nagios/libexec/eventhandlers'
> [1191227014.189220] [2048.2] [pid=27028] Processing part:
> '/submit_check_result '
> [1191227014.189234] [2048.2] [pid=27028] Not currently in macro.
> Running output (60):
> '/usr/local/nagios/libexec/eventhandlers/submit_check_result '
> [1191227014.189247] [2048.2] [pid=27028] Processing part: 'HOSTNAME'
> [1191227014.189260] [2048.2] [pid=27028] Cleaned macro. Running
> output (68):
> '/usr/local/nagios/libexec/eventhandlers/submit_check_result U3RIPC85'
> [1191227014.189273] [2048.2] [pid=27028] Just finished macro. Running
> output (68):
> '/usr/local/nagios/libexec/eventhandlers/submit_check_result U3RIPC85'
> [1191227014.189286] [2048.2] [pid=27028] Processing part: ' '
> [1191227014.189327] [2048.2] [pid=27028] Not currently in macro.
> Running output (69):
> '/usr/local/nagios/libexec/eventhandlers/submit_check_result U3RIPC85 '
> [1191227014.189341] [2048.2] [pid=27028] Processing part: 'HOSTSTATEID'
> [1191227014.189355] [2048.2] [pid=27028] Cleaned macro. Running
> output (70):
> '/usr/local/nagios/libexec/eventhandlers/submit_check_result U3RIPC85 1'
> [1191227014.189368] [2048.2] [pid=27028] Just finished macro. Running
> output (70):
> '/usr/local/nagios/libexec/eventhandlers/submit_check_result U3RIPC85 1'
> [1191227014.189381] [2048.2] [pid=27028] Processing part: ' ''
> [1191227014.189394] [2048.2] [pid=27028] Not currently in macro.
> Running output (72):
> '/usr/local/nagios/libexec/eventhandlers/submit_check_result U3RIPC85 1 ''
> [1191227014.189407] [2048.2] [pid=27028] Processing part: 'HOSTOUTPUT'
> [1191227014.189422] [2048.2] [pid=27028] Cleaned macro. Running
> output (148):
> '/usr/local/nagios/libexec/eventhandlers/submit_check_result U3RIPC85 1
> 'CRITICAL - 10.176.77.85: Host unreachable @ 10.176.77.57. rta nan, lost
> 100%'
> [1191227014.189435] [2048.2] [pid=27028] Just finished macro. Running
> output (148):
> '/usr/local/nagios/libexec/eventhandlers/submit_check_result U3RIPC85 1
> 'CRITICAL - 10.176.77.85: Host unreachable @ 10.176.77.57. rta nan, lost
> 100%'
> [1191227014.189448] [2048.2] [pid=27028] Processing part: '''
> [1191227014.189462] [2048.2] [pid=

...[email truncated]...


This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked