Difference between revisions of "Check http"

From wikieduonline
Jump to navigation Jump to search
Line 4: Line 4:
 
:<code>/usr/lib/nagios/plugins/check_[[http]] -H google.com -u http://google.com</code>
 
:<code>/usr/lib/nagios/plugins/check_[[http]] -H google.com -u http://google.com</code>
 
* Check [[SSL]] [[certificate expiration]]
 
* Check [[SSL]] [[certificate expiration]]
:<code>/usr/lib/nagios/plugins/check_http  -H 101hacks.com -C 365</code>
+
:<code>/usr/lib/nagios/plugins/check_http  -H google.com -C 365</code>
  
  

Revision as of 12:25, 28 April 2021

Nagios

/usr/lib/nagios/plugins/check_http -H google.com -u http://google.com
/usr/lib/nagios/plugins/check_http -H google.com -C 365


/usr/lib/nagios/plugins/check_http -H google.com -u http://google.com
HTTP OK: HTTP/1.1 301 Moved Permanently - 547 bytes in 0.012 second response time |time=0.012108s;;;0.000000;10.000000 size=547B;;;0
/usr/lib/nagios/plugins/check_http -H www.google.com -C 365
OK - Certificate 'invalid2.invalid' will expire on Tue Jan  1 00:00:00 2030 +0000.


See also

Advertising: