About check_by_ssh plugin
Simon Kainz
simon.kainz at tugraz.at
Wed Jun 10 11:09:42 CEST 2009
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
> Nagios-users at 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
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090610/ec00458e/attachment.sig>
-------------- next part --------------
------------------------------------------------------------------------------
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
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at 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
More information about the Users
mailing list