Page 1 of 1

Other external commands

Posted: Tue Sep 23, 2014 8:52 am
by tariqondego
Other commands which do not depend on nsclient or nrpe.
How do the work? e.g check_pop,check_http,check_smtp etc
ie which ports do they use? how do they do check on services and how do they get the results.

Re: Other external commands

Posted: Tue Sep 23, 2014 9:27 am
by tmcdonald
Those plugins will use whatever port is associated with the service - 110 for check_pop, 80/443 for check_http, and 25 for check_smtp. They work by attempting a connection to the service and monitoring the response. If there is no response, it is typically assumed the service is not running. If there is a response, it can be used to determine which thresholds were hit. None of the checks you listed actually log in and run "service X status".

Re: Other external commands

Posted: Fri Sep 26, 2014 2:23 am
by tariqondego
So if i get response 'CRITICAL - Socket timeout after 10 seconds ' when i use check_http then this would mean that access is denied on port 80/443?

Re: Other external commands

Posted: Fri Sep 26, 2014 9:21 am
by abrist
tariqondego wrote:So if i get response 'CRITICAL - Socket timeout after 10 seconds ' when i use check_http then this would mean that access is denied on port 80/443?
The host could be unreachable or down as well. check_http can do more than just a port check - it it's most basic form, it is checking the server response time with the http protocol over the specified port. At its most complex configuration of options it can run uri string tests against a redirected site from the initial url specified in the check.

Re: Other external commands

Posted: Fri Sep 26, 2014 12:52 pm
by Box293
Try using the verbose verbose verbose argument, it'll give more detail as to what the plugin is doing:

Code: Select all

./check_http -I 192.168.207.128 -vvv