• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 813
  • 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?
Thanks!
0
yellowteam
Asked:
yellowteam
  • 4
1 Solution
 
tibidoudouCommented:
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
0
 
yellowteamAuthor Commented:
Thanks tibidoudou! I'll give that a try now
0
 
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?
0
 
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
0
 
yellowteamAuthor Commented:
Thanks So much for the fast response!
0
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

Worried about phishing attacks?

90% of attacks start with a phish. It’s critical that IT admins and MSSPs have the right security in place to protect their end users from these phishing attacks. Check out our latest feature brief for tips and tricks to keep your employees off a hackers line!

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