Search found 4 matches

by wilcoNL
Thu Feb 17, 2011 7:42 am
Forum: Open Source Nagios Projects
Topic: check_http result not as expected
Replies: 5
Views: 2930

Re: check_http result not as expected

Hello, Found the problem. The file submit_check_result_via_nsca submited the statuscodes as CRITICAL instead of the value of CRITICAL which is 2. So I added some code to the batch file and VOILA :shock: I ended up with this code: #!/bin/sh # SUBMIT_CHECK_RESULT_VIA_NSCA # Written by Ethan Galstad (e...
by wilcoNL
Thu Feb 17, 2011 4:52 am
Forum: Open Source Nagios Projects
Topic: check_http result not as expected
Replies: 5
Views: 2930

Re: check_http result not as expected

Hello, found new stuff in debugging file: Running command '/appl/nagios/libexec/eventhandlers/submit_check_result_via_nsca NLHOLNAGIOS01 'SYSTEM: MultiMedia' CRITICAL 'HTTP CRITICAL: HTTP/1.0 200 OK - string Keesje not found on http://string bladibla.nl.....- 263 bytes in 0.018 second response time'...
by wilcoNL
Thu Feb 17, 2011 4:15 am
Forum: Open Source Nagios Projects
Topic: check_http result not as expected
Replies: 5
Views: 2930

Re: check_http result not as expected

Hello, We installed the standard NSCA commands as described in the documentation. All other services return normal statusvalues. It is a distributed environment at our customers. I thought Nagios took care of the send_nsca statements (as far as I know), I never changed them. define command{ command_...
by wilcoNL
Wed Feb 16, 2011 11:01 am
Forum: Open Source Nagios Projects
Topic: check_http result not as expected
Replies: 5
Views: 2930

check_http result not as expected

Hello, I have a slight problem with the check_http result with my nagios. I try to check a certain page with the check_http command. When I try it on the command line it gives me back the correct result. Also within a batch program echo $? gives 0 if ok and 2 if critical. All well here. But when I u...