Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I want to check a service via nagios which could be something like "netstat | grep port" or "ps aux/ef | grep service_name". Is there any plugin which would be very easy to use do this job?
What service would you like to check? Ideally you don't test a service by
looking at an open port or process in a list, but by connecting to it at
intervals; that way you make sure it's not only present but also working.
I am trying to check the availability of a sybase database & I checked the sybase plugin which cannot connect to a remote server to check the avalibility.
So I decided to do a tcp check instead. That is, the TCP check will see if the service is listening on the sybase port in the remote machine. If it is, then it is available; otherwise, it isn't.
I just added the "tcp_check" plugin for this problem. It checks for that certain port on that host. If the service is *not* listening on that port then the host is down.
Yup, the check_tcp plugin is great for TCP checks. The plugin package that comes with Nagios is pretty good. Comes with the most common checks you need to monitor your servers/services.
Nagios is pretty modular so it's also fairly simple to design your own plugins as well.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.