• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 812
  • Last Modified:

Monitor Local Ports with NRPE and Nagios

Hi Guys and Gals,
could any one tell me how to monitor ports that are listen on certain IP Addresses?

I have set up a Nagios environment and on one of my servers that I monitor using NRPE I would like to monitor for instance port 8080 which is listening on one of its virtual NIC's

Would anyone know how to do this?
  • 4
1 Solution
Try something like that :

# Command to be excuted
define command{
        command_name    check_proxy
        command_line    $USER1$/check_tcp -H $HOSTADDRESS$ -p 8080

# service
define service{
        use                             local-service         ; Name of service template to use
        host_name                       server
        service_description             PROXY
        check_command                   check_proxy

you need to have some users, template and server already defined for that to work
yellowteamAuthor Commented:
Thanks tibidoudou! I'll give that a try now
yellowteamAuthor Commented:
I've just had a look and I dont have a check_proxy on the servers that I wish to monitor, could I copy the one thats on the Nagios server and create a check_proxy on the other server and then call it with NRPE?
yellowteamAuthor Commented:
wait, I'm a dork, I didn't read you part correctly, your service that you define called the check_tcp script
d'oh will give that a try
yellowteamAuthor Commented:
Thanks So much for the fast response!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Will You Be GDPR Compliant by 5/28/2018?

GDPR? That's a regulation for the European Union. But, if you collect data from customers or employees within the EU, then you need to know about GDPR and make sure your organization is compliant by May 2018. Check out our preparation checklist to make sure you're on track today!

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now