LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   nagios check service (https://www.linuxquestions.org/questions/linux-networking-3/nagios-check-service-463615/)

noir911 07-13-2006 06:58 AM

nagios check service
 
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?

Tinkster 07-13-2006 01:04 PM

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.


Cheers,
Tink

noir911 07-15-2006 05:34 AM

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.

Tinkster 07-15-2006 03:46 PM

In that case I'd suggest a nmap against the machine ... Or you could
modify the plugin to work ;}



Cheers,
Tink

noir911 07-24-2006 03:55 AM

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.

twantrd 07-24-2006 05:12 PM

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.

-twantrd


All times are GMT -5. The time now is 01:50 PM.