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 <host> -l <username> -C "/etc/init.d/mysql restart" > > Eventually replace <host> with "$HOSTNAME$". > > You don't have to use -s , it's optional. You don't even need to use check_by_ssh. In this case, there's nothing gained over just using -- /path/to/ssh -l <username> <host> "/etc/init.d/mysql restart" Presumably the OP is using either as part of an event_handler script. -- Marc ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null