How can i use ssh on nagios. It always shows:
check_ssh: Port number must be a positive integer - -H
Here is my checkcommands:
‘check_ssh’ command definition
define command{
command_name check_ssh
command_line $USER1$/check_ssh -H
$HOSTADDRESS$ -p $ARG1$
}
Here is my service.cfg:
}
#SSH
define service{
host_name HOST1
service_description SSH
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 3
retry_check_interval 3
contact_groups NOC-admins
notification_interval 60
notification_period 24x7
notification_options d,c,r
check_command check_ssh! -H 192.168.0.8 -t 5
-p 3500
}
Is there something wrong in my config files?