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?
|
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 |
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. |
In that case I'd suggest a nmap against the machine ... Or you could
modify the plugin to work ;} Cheers, Tink |
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. -twantrd |
All times are GMT -5. The time now is 01:50 PM. |