Remote ssh server port 22 monitoring -
we having our windows servers in aws, have problems doing sshget cdn server, getting timeouts , dont know why.
can put check in naemon(monitoring server) based on nagios nrpe in servers executes telnet remote host johndoetv.upload.cdn.com @ port 22 , gets critical after 30 seconds in case of connectivity.
i tried check_tcp
it's failing, or can use nrpe in case on remote server in windows
eg.
define service { service_description akamai_sshget hostgroup_name playready use generic-service check_command check_tcp -h ctv.upload.akamai.com -p 22 -w 15 -c 30 contact_groups admins }
i've defined command ssh's box, runs check_ssh (a standard nagios thing) against server:
define command { command_name ssh_check_ssh command_line /usr/lib/nagios/plugins/check_by_ssh -h $_hostgateway$ -c "/usr/lib/nagios/plugins/check_ssh $hostaddress$" }
you'll need define _gateway
, address
servers, , put in address of server having connection issues from:
define host{ use generic-host host_name ctv.upload.akamai.com alias ctv.upload.akamai.com address ctv.upload.akamai.com _gateway server.that.is.having.connection.issus check_command ssh_check_ssh }
obviously can adapt make work groups rather single hosts.
Comments
Post a Comment