check_by_ssh bug in 1.4.13: patch 2268675 required
Posted: Tue Sep 06, 2011 10:09 am
Linux Distribution and version: CentOS 2.6.18-238.19.1.el5 #
32 or 64bit: 64
VMware Image or Manual Install of XI: manual
no other modifications
I'm implementing ssh proxy based monitoring of windows machines, and it works great until I try to monitor performance counters or services with special characters in them. After some research, I discovered the check_by_ssh plugin in 1.4.13 has a bug with escaped characters.
I don't want to break my nagiosxi distribution.
Is it ok to install the nagios-plugins 1.4.15, or will that be overwritten as updates to nagiosxi come out?
command: $USER1$/check_by_ssh -H $ARG7$ -C '/usr/lib/nagios/plugins/check_nt -H $HOSTADDRESS$ -s $USER19$ -p 12489 -v $ARG2$ $ARG3$ $ARG4$'
ARG3 = -l "\\\\Paging File\(_Total\)% Usage","Paging File usage is %.2f %%" -w 70:89 -c 90
https://sourceforge.net/tracker/?func=d ... p_id=29880
Example:
> /bin/sh -c "echo '"'$PATH'"'"
$PATH
> /bin/sh -c 'echo "a b"'
a b
>
Unpatched:
> check_by_ssh -H localhost -C "echo '"'$PATH'"'"
/usr/local/bin:/usr/bin/:/bin
> check_by_ssh -H localhost -C 'echo "a b"'
Could not open pipe: /usr/bin/ssh localhost 'echo "a b"'
>
Patched:
> check_by_ssh -H localhost -C "echo '"'$PATH'"'"
$PATH
> check_by_ssh -H localhost -C 'echo "a b"'
a b
>
32 or 64bit: 64
VMware Image or Manual Install of XI: manual
no other modifications
I'm implementing ssh proxy based monitoring of windows machines, and it works great until I try to monitor performance counters or services with special characters in them. After some research, I discovered the check_by_ssh plugin in 1.4.13 has a bug with escaped characters.
I don't want to break my nagiosxi distribution.
Is it ok to install the nagios-plugins 1.4.15, or will that be overwritten as updates to nagiosxi come out?
command: $USER1$/check_by_ssh -H $ARG7$ -C '/usr/lib/nagios/plugins/check_nt -H $HOSTADDRESS$ -s $USER19$ -p 12489 -v $ARG2$ $ARG3$ $ARG4$'
ARG3 = -l "\\\\Paging File\(_Total\)% Usage","Paging File usage is %.2f %%" -w 70:89 -c 90
https://sourceforge.net/tracker/?func=d ... p_id=29880
Example:
> /bin/sh -c "echo '"'$PATH'"'"
$PATH
> /bin/sh -c 'echo "a b"'
a b
>
Unpatched:
> check_by_ssh -H localhost -C "echo '"'$PATH'"'"
/usr/local/bin:/usr/bin/:/bin
> check_by_ssh -H localhost -C 'echo "a b"'
Could not open pipe: /usr/bin/ssh localhost 'echo "a b"'
>
Patched:
> check_by_ssh -H localhost -C "echo '"'$PATH'"'"
$PATH
> check_by_ssh -H localhost -C 'echo "a b"'
a b
>