Monitoring over SSH tunnel?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
dhhh
Posts: 8
Joined: Thu Mar 18, 2021 5:07 am

Monitoring over SSH tunnel?

Post 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?
Locked