monitoring "localhost" non network exposed services

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
rjc2021
Posts: 1
Joined: Tue May 25, 2021 1:18 pm

monitoring "localhost" non network exposed services

Post by rjc2021 »

Hello
I am curious if there is a way to monitor non standard services or those that dont have internal commands, which only listen to localhost binding and are not network exposed?

something such as this which is bound only to the internal localhost port:
127.0.0.1:6379

I have a server i wish to monitor that has a number of these which are not exposed for security or other reasons, which are literally running on the server hosting nagios, but im unsure how to config this whether on same server or remote using some kind of authentication or other if this is even possible.

Thanks in advance.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: monitoring "localhost" non network exposed services

Post by mcapra »

rjc2021 wrote:I am curious if there is a way to monitor non standard services or those that dont have internal commands, which only listen to localhost binding and are not network exposed?

You can use passive checks to "push" results to Nagios Core, rather than having Nagios Core reach out to an agent to collect information:
https://assets.nagios.com/downloads/nag ... hecks.html

This is usually what is done for egress-only network paths. Here's some documentation for setting up NRDP to receive passive checks for Nagios Core, if that's the route you wanna take:
https://support.nagios.com/kb/article/n ... e-602.html

As far as the remote host / client are concerned, NRDP operates over HTTP. As long as you have an HTTP/TCP client, you can send stuff to NRDP running along-side your Nagios Core instance.
Former Nagios employee
https://www.mcapra.com/
Locked