check_by_ssh invalid option -- 'w'
Posted: Wed Dec 01, 2021 5:44 am
From the nagios user on the nagios xi console check_by_ssh complains about:
invalid option -- 'w'
or
unrecognized option '--warning'
system built from nagiosxi ova file
current version of nagios xi is 5.7.2
If I remove '-w' and '-c' options command runs fine.
Usage statement does not include -w and -c but the webUI and cli help for check_by_ssh include the description of the options.
Is there something simple I am missing?
without -w/--warning
invalid option -- 'w'
or
unrecognized option '--warning'
system built from nagiosxi ova file
current version of nagios xi is 5.7.2
If I remove '-w' and '-c' options command runs fine.
Usage statement does not include -w and -c but the webUI and cli help for check_by_ssh include the description of the options.
Is there something simple I am missing?
Code: Select all
/usr/local/nagios/libexec/check_by_ssh -q -l remoteuser -i .ssh/id_rsa.remoteuser -H remotehost -w 1.0 -c 5.0 -C 'uptime|cut -f4 -d\ ' -w 180
/usr/local/nagios/libexec/check_by_ssh: invalid option -- 'w'
Code: Select all
/usr/local/nagios/libexec/check_by_ssh -q -l remoteuser -i .ssh/id_rsa.remoteuser -H remotehost -w 1.0 -c 5.0 -C 'uptime|cut -f4 -d\ '
6