?
Solved

Monitor Local Ports with NRPE and Nagios

Posted on 2010-09-16
5
Medium Priority
?
809 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Question has a verified solution.

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

David Varnum recently wrote up his impressions of PRTG, based on a presentation by my colleague Christian at Tech Field Day at VMworld in Barcelona. Thanks David, for your detailed and honest evaluation!
In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
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…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

649 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