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.
Other external commands
Re: Other external commands
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".
Former Nagios employee
-
tariqondego
- Posts: 85
- Joined: Fri Mar 28, 2014 6:18 am
Re: Other external commands
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
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.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?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Other external commands
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 -vvvAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.