External command error: Malformed command

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.
paolo974
Posts: 8
Joined: Tue Jan 23, 2018 1:24 am

Re: External command error: Malformed command

Post by paolo974 »

Core version: Nagios Core 4.0.8

I think the problem is not related to Nagios but to the machine, even if I not able to know what is the root cause.

As the problem is solved by using the following code for event handler script, we can consider that as solved

Code: Select all

#!/bin/sh
/bin/echo "[$(date +%s)] PROCESS_SERVICE_CHECK_RESULT;$1;$2;$3;$4" >> /app/monitor/MASTER1/var/rw/nagios.cmd
# end of code
Thanks a lot for your help and support
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: External command error: Malformed command

Post by dwhitfield »

Any other questions before we lock this up?
paolo974
Posts: 8
Joined: Tue Jan 23, 2018 1:24 am

Re: External command error: Malformed command

Post by paolo974 »

No, and thanks again for your help :)
Locked