Solved

Monitor Local Ports with NRPE and Nagios

Posted on 2010-09-16
5
800 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 500 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Managing 24/7 IT Operations is a hands-on job and indeed a difficult one. Over the years I have found some simple tips and techniques to increase the efficiency of the overall operations. The core concept has always been on continuous improvement; a…
Use of TCL script on Cisco devices:  - create file and merge it with running configuration to apply configuration changes
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

820 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