Nagios check_vnc without authentication
If you need to monitor a VNC service without logging in, the following check_command can be used.
Edit your nagios configuration file and add:
# VNC
define command{
command_name check_vnc
command_line $USER1$/check_tcp -H $HOSTADDRESS$ -p $ARG1$ -w 5 -c 8 -
e "RFB"
}
Then on the service you want to monitor use:
define service{
use generic-service ; Name of service template to use host_name
host_name MYHOSTNAME
service_description VNC
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups MYCONTACTGROUPS
notification_interval 240
notification_period 24x7
notification_options c,r
check_command check_vnc!5910
}
If you need another port than the standard one, just replace “5900”
Leave a Reply
Want to join the discussion?Feel free to contribute!