check_http: added timeout to perfdata as max val (#1374)
Oliver Skibbe
notifications at github.com
Wed Oct 7 09:23:21 CEST 2015
Added socket_timeout to time* perfdata values, see issue #1350
**Then**
```
# extended perfdata
./check_http -H 127.0.0.1 -t 30 -E
HTTP OK: HTTP/1.1 200 OK - 380 bytes in 1,334 second response time
|time=1,334256s;;;0,000000 size=380B;;;0 time_connect=0,000235s;;;
time_headers=0,000029s;;; time_firstbyte=1,333924s;;;
time_transfer=1,333947s;;;
./check_http -H 127.0.0.1 -t 30
HTTP OK: HTTP/1.1 200 OK - 380 bytes in 0,001 second response time
|time=0,000551s;;;0,000000 size=380B;;;0
```
**Now**
```
# extended perfdata
./check_http -H 127.0.0.1 -t 30 -E
HTTP OK: HTTP/1.1 200 OK - 380 bytes in 0,006 second response time
|time=0,005946s;;;0,000000;30,000000 size=380B;;;0
time_connect=0,000059s;;;;30,000000 time_headers=0,000035s;;;;30,000000
time_firstbyte=0,005737s;;;;30,000000 time_transfer=0,005806s;;;;30,000000
./check_http -H 127.0.0.1 -t 30
HTTP OK: HTTP/1.1 200 OK - 380 bytes in 0,000 second response time
|time=0,000499s;;;0,000000;30,000000 size=380B;;;0
```
You can view, comment on, or merge this pull request online at:
https://github.com/monitoring-plugins/monitoring-plugins/pull/1374
-- Commit Summary --
* * check_http: added timeout to perfdata as max val
-- File Changes --
M plugins/check_http.c (12)
-- Patch Links --
https://github.com/monitoring-plugins/monitoring-plugins/pull/1374.patch
https://github.com/monitoring-plugins/monitoring-plugins/pull/1374.diff
--
Reply to this email on GitHub:
https://github.com/monitoring-plugins/monitoring-plugins/pull/1374
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20151007/31ef4483/attachment.html>
More information about the Devel
mailing list