?
Solved

Monitor Local Ports with NRPE and Nagios

Posted on 2010-09-16
5
Medium Priority
?
810 Views
Last Modified: 2012-05-10
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
Comment
Question by:yellowteam
  • 4
5 Comments
 
LVL 2

Accepted Solution

by:
tibidoudou earned 2000 total points
ID: 33692720
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
 

Author Comment

by:yellowteam
ID: 33692796
Thanks tibidoudou! I'll give that a try now
0
 

Author Comment

by:yellowteam
ID: 33692890
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
 

Author Comment

by:yellowteam
ID: 33692911
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
 

Author Closing Comment

by:yellowteam
ID: 33692965
Thanks So much for the fast response!
0

Featured Post

Put Machine Learning to Work--Protect Your Clients

Machine learning means Smarter Cybersecurity™ Solutions.
As technology continues to advance, managing and analyzing massive data sets just can’t be accomplished by humans alone. It requires huge amounts of memory and storage, as well as high-speed processing of the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Determining the an SCCM package name from the Package ID
Eseutil Hard Recovery is part of exchange tool and ensures Exchange mailbox data recovery when mailbox gets corrupt due to some problem on Exchange server.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Suggested Courses

755 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question