Re: [Nagios-users] About check_by_ssh

2012-02-27 Thread Carlos Albornoz
On Fri, Feb 24, 2012 at 1:18 PM, Alex Griffin wrote: > check_by_ssh doesn't check the hostname using ssh's config. Perhaps it > should, but looking through the source it looks like the error is coming > from this function, which is actually a common function amongst several > nagios plugins (locat

Re: [Nagios-users] About check_by_ssh

2012-02-24 Thread Alex Griffin
check_by_ssh doesn't check the hostname using ssh's config. Perhaps it should, but looking through the source it looks like the error is coming from this function, which is actually a common function amongst several nagios plugins (located in netutils.h): void host_or_die(const char *

[Nagios-users] About check_by_ssh

2012-02-23 Thread Carlos Albornoz
Hi, i try to run a check_by_ssh, my ssh config is here http://pastebin.com/jvSZSAvR but when i run "./check_by_ssh -H desthost -C /pathto/check_any -l destuser" i get "check_by_ssh: Invalid hostname/address - desthost" i try to search why, but i dont find info maybe the script dont work with

Re: [Nagios-users] About check_by_ssh plugin

2009-06-10 Thread Marc Powell
On Jun 10, 2009, at 4:09 AM, Simon Kainz wrote: > Jean Frontin wrote: >> Hello, >> >> In the check_by_ssh plugin help we can read : >> I want to restart the mysql server on a host different of the nagios >> host. > I would use the following: > > check_by_ssh -H -l -C "/etc/init.d/mysql restar

Re: [Nagios-users] About check_by_ssh plugin

2009-06-10 Thread Simon Kainz
Jean Frontin wrote: > Hello, > > In the check_by_ssh plugin help we can read : > > ... > -s, --services=LIST > list of nagios service names, separated by ':' > ... > > I want to restart the mysql server on a host different of the nagios > host. what service name must I have to use ? Is the

[Nagios-users] About check_by_ssh plugin

2009-06-10 Thread Jean Frontin
Hello, In the check_by_ssh plugin help we can read : ... -s, --services=LIST list of nagios service names, separated by ':' ... I want to restart the mysql server on a host different of the nagios host. what service name must I have to use ? Is the service_description field which has seve

Re: [Nagios-users] About check_by_ssh

2005-11-25 Thread David Elze
Am Freitag, den 25.11.2005, 07:54 +0100 schrieb Jean Frontin: Hey, > check_by_ssh -H $HOSTADDRESS$ -l root -w 3 -C "ps -ef | grep nmbd | grep -v > grep" OK, this can't work out because "-w 3" isn't an argument for check_by_ssh. Just look at the exact output of this command, it will tell you th

Re: [Nagios-users] About check_by_ssh

2005-11-24 Thread David Elze
Am Donnerstag, den 24.11.2005, 16:47 +0100 schrieb Jean Frontin: Hey, > Is there anybody who runs this plugin within nagios. Yes I do without any problems :-) > in the "help" of this plugin One finds the options -w and -c, but when I > insert them in command line I obtain an error message

[Nagios-users] About check_by_ssh

2005-11-24 Thread Jean Frontin
Hello, Is there anybody who runs this plugin within nagios. Please did you encounter that : in the "help" of this plugin One finds the options -w and -c, but when I insert them in command line I obtain an error message : argument unknown Regards Jean Frontin System team I R I T Université