check_by_ssh.cfg check_disk.cfg
Jonathan Nichols
jnichols at pbp.net
Fri Apr 4 05:13:07 CEST 2003
> notification_options w,u,c,r
> check_command
> ssh_disk!/var/log/nagios/.ssh/identity!dev/hda2
> }
>
That looks strange to me. Here's what I have for a host called "jezebel":
define service{
use generic-service ; Name of
service template to use
host_name jezebel
service_description Disk Usage
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups admins
notification_interval 360
notification_period 24x7
notification_options c,r
check_command check_disk_ssh!20%!20%
}
If disk space gets below 20%, it'll squawk at me.
Here's the hostcommand:
# 'check_disk_ssh' command definition
define command{
command_name check_disk_ssh
command_line $USER1$/check_by_ssh -H $HOSTADDRESS$ -C
'./check_disk -w $ARG1$ -c $ARG2$'
}
I make a "nagios" user on each machine, and I let it SSH in (shared key)
and run the plugin that's in /home/nagios. Works great for me!
-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
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