Page 1 of 1

PROCESS_SERVICE_CHECK_RESULT

Posted: Thu Mar 01, 2018 4:33 am
by saleemthupsee
Hello,

this command is running in a loop when i check the /usr/local/nagios/var/nagios.log. IS there a way to stop this ?


[1519896564] External command error: Command failed
[1519896564] Error: External command failed -> PROCESS_SERVICE_CHECK_RESULT;IMEDIA_EPG;%httvnagiosservicePOST0
[1519896564] External command error: Command failed
[1519896564] Error: External command failed -> PROCESS_SERVICE_CHECK_RESULT;IMEDIA_EPG;%httvnagiosservicePOST0
[1519896564] External command error: Command failed
[1519896564] External command error: Command failed
[1519896564] Error: External command failed -> PROCESS_SERVICE_CHECK_RESULT;IMEDIA_EPG;%httvnagiosservice0
[1519896564] External command error: Command failed

regards,
Saleem
PAris
France.

Re: PROCESS_SERVICE_CHECK_RESULT

Posted: Thu Mar 01, 2018 2:35 pm
by kyang
Is this a current host/service?

What command is the host IMEDIA_EPG under service httvnagiosservicePOST0 doing?

Can you post the check_command and more details?

Re: PROCESS_SERVICE_CHECK_RESULT

Posted: Fri Mar 02, 2018 3:35 am
by saleemthupsee
IMEDIA_EPG is a HOST, %httvnagiosservice was supposed to be a variable in nagioslogserver to to replaced with the current service. However this did not happen and the command went through rough as it is. (As you may know the % breaks the command process_check_result). Therefore i was looking for a way to cancel wrongful commands that go through process_check_results.

I am also attempting to prevent these commands from going through. After several reboot from the nagiologserver that sent this original command that issue has stopped. I fear that this might happen and wanted to know how to cancel it out or kill the command.

regards;
Saleem
Paris
France

Re: PROCESS_SERVICE_CHECK_RESULT

Posted: Fri Mar 02, 2018 10:34 am
by scottwilkerson
I believe this is an error in your script on the Nagios Log Server machine. It is calling an invalid command

Once you fix the error, or remove the Alert triggering the the script, these logs will stop

Re: PROCESS_SERVICE_CHECK_RESULT

Posted: Fri Mar 09, 2018 9:14 am
by saleemthupsee
Thanks Scott,

I have added on top of that a parsing that removes the "%" character using filter/gsub/replace.

Saleem
Paris.
France.
PS: My contract ends here for this Project with Parabole Réunion.
Thanks all for all the support.

Re: PROCESS_SERVICE_CHECK_RESULT

Posted: Fri Mar 09, 2018 10:04 am
by scottwilkerson
Ok, then, closing thread