I was wondering how to make it so nagios monitors a different ssh port if you’ve changed the ssh default port on your server to something no standard to enhance security. Right now I get a connection refused alert due nagios not finding the port, thinking its still port 22.
Awesome thanks!
I was able to find that command and looked at the help. I’m just having a bit of trouble with the exact syntax to use to change the port. Say I wanted to change it to port 12345. I tried this variations of this check_ssh -p <12345>
I was able to run this command and it said ssh port ok
check_ssh -H xxx.xxx.xx.xx -p 12345
(ip x’d out)
In the nagios web admin it still shows that it is refusing the connection. Is there a way to change some reference to port that is checked in the web admin?