[Nagiosplug-help] check_by_ssh question

Robert Cole robert.cole at support4linux.com
Fri Jun 22 20:50:32 UTC 2007


This is probably more an issue with ssh than anything but I'm using 
1.4.9 of the plugins and trying to check a log for a specific line of 
text and this is what I get:

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

but if I ssh to the host and run the command in quotes I get this:

nagios at ms1 ~ $ ssh tui001
Last login: Thu Jun 21 14:27:40 2007 from 192.168.22.28
[nagios at tui001 ~]$ /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"
Log check ok - 0 pattern matches found
[nagios at tui001 ~]$

[nagios at tui001 ~]$ ssh -V
OpenSSH_4.3p2, OpenSSL 0.9.8b 04 May 2006
[nagios at tui001 ~]$

nagios at ms1 ~ $ ssh -V
OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007
nagios at ms1 ~ $


Any ideas?





More information about the Nagiosplugin-help mailing list