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 service_description > field which has several words ? > > Thanks you for your help > > > ------------------------------------------------------------------------------ > 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 > [email protected] > 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
Hello! 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. Regards, -- DI Simon Kainz Graz, University of Technology Department Computing Phone: ++43 (0) 316 / 873 6885
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ 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 [email protected] 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
