check_by_ssh
C. Bensend
benny at bennyvision.com
Thu Jul 17 21:46:25 CEST 2003
On Thu, Jul 17, 2003 at 08:26:37PM +0100, Mark Waterhouse wrote:
>
> I want to be able to check the disk on a remote machine. I've installed the
> necessary binaries but just cant get it to work.
Here's one of the bazillion I use:
# 'check_disk_remote' command definition
define command{
command_name check_disk_remote
command_line $USER1$/check_by_ssh -H $HOSTADDRESS$ -C '/home/nagios/libexec/check_disk -p $ARG1$ -w $ARG2$ -c $ARG3$'
}
And then the service definition:
# Service definition
define service{
use generic-service
host_name hostname
service_description /home
is_volatile 0
check_period 24x7
max_check_attempts 6
normal_check_interval 3
retry_check_interval 1
contact_groups team
notification_interval 0
notification_period 24x7
notification_options u,c,r
check_command check_disk_remote!/home!30%!15%
}
Benny
--
"Corpsman: usually a young, long-haired, bearded, Marine hatin' Sailor
with certain medical skills, who will go through the very gates of hell to
get to a wounded Marine." - Major Gene Duncan, USMC Ret.
-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
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