Page 1 of 1

Monitoring over SSH tunnel?

PostPosted: Mon Oct 11, 2021 7:06 pm
by dhhh
I’m looking for a way to monitor a server over an SSH tunnel due to the Nagios server not being able to connect to a server directly at all.

The Nagios monitoring server can’t connect to serverB directly on any port. It CAN connect to the NRPE port (5666) on serverB via serverA using an SSH tunnel. How can this be leveraged to monitor serverB in Nagios? Are there any plugins with examples for achieving this?