[Nagiosplug-help] check_by_ssh question
Olivier 'Babar' Raginel
nagios at babar.us
Fri Jun 22 22:57:10 CEST 2007
On Fri, Jun 22, 2007 at 01:50:32PM -0700, Robert Cole wrote:
> nagios at ms1 ~ $ ssh tui001 -i ~/.ssh/id_dsa -C
> "/usr/nagios/plugins/check_log -F /var/log/youmail/login.log -O
> /home/nagios/192.168.200.150.var.log.login.server.seek -q "No
> ManagedConnections available within configured blocking timeout""
> Unknown argument: ManagedConnections
> Usage: check_log -F logfile -O oldlog -q query
> Usage: check_log --help
> Usage: check_log --version
> Any ideas?
Command interpretation.
Your command is enclosd within "" so you have to escape them within the
ssh:
$ ssh tui001 -i ~/.ssh/id_dsa -C
"/usr/nagios/plugins/check_log -F /var/log/youmail/login.log -O
/home/nagios/192.168.200.150.var.log.login.server.seek -q \"No
ManagedConnections available within configured blocking timeout\""
Or use simple quotes around the -C for ssh.
--
Babar.
More information about the Help
mailing list