Im monitoring the activity of a webService using the check_http command.
I created a new command on configure -> Core Config Manager -> Commands using this sentence:
Code: Select all
$USER1$/check_http -H $HOSTADDRESS$ -p $ARG1$ -k $ARG2$ -T application/xml -u $ARG3$ -P $ARG4$I added the Host, ARG's and finally the service objects as I normally would (templates, check and alert setting
s, etc).
After that when going to home theres a warning on Service Detail option, the status detail:
Code: Select all
(No output on stdout) stderr: /bin/sh: -c: line 0: syntax error near unexpected token `newline'Code: Select all
(No output on stdout) stderr: /bin/sh: -c: line 0: syntax error near unexpected token `newline'
/bin/sh: -c: line 0: `/usr/local/nagios/libexec/check_http -H 192.168.0.99 -p 8283 -k SOAPAction:enviarDocumento -T application/xml -u /services/ESB_LOG -P <ping>PruebaConectividad</ping>'