summaryrefslogtreecommitdiffstats
path: root/plugins-root/t/check_icmp.t
AgeCommit message (Collapse)AuthorFilesLines
2024-03-01check_icmp: keep performance data order in case of none-reachable hostsSven Nierlein1-2/+3
For responding hosts nothing changes: ./check_icmp -H 10.0.0.1 OK - 10.0.0.1 rta 0.336ms lost 0%|rta=0.336ms;200.000;500.000;0; rtmax=0.471ms;;;; rtmin=0.000ms;;;; pl=0%;40;80;0;100 In case the host is down, the performance data now contain 'U' according to: https://www.monitoring-plugins.org/doc/guidelines.html#AEN201 Old: ./check_icmp -H 10.0.0.99 CRITICAL - 10.0.0.99: Host unreachable @ 10.0.1.138. rta nan, lost 100%|pl=100%;40;80;0;100 Old: ./check_icmp -H 10.0.0.99 CRITICAL - 10.0.0.99: Host unreachable @ 10.0.1.138. rta nan, lost 100%|rta=U;;;; rtmax=U;;;; rtmin=U;;;; pl=100%;40;80;0;100 This confuses some performance graphing tools, ex.: pnp. Signed-off-by: Sven Nierlein <sven@consol.de>
2023-10-04add some basic tests for the new modesDanijel Tasov1-1/+47
Signed-off-by: Danijel Tasov <m@rbfh.de>
2023-10-04update failure regexDanijel Tasov1-1/+1
2023-10-04adjust check_icmp testsDanijel Tasov1-5/+5
2023-04-14Fix a lot of typos reported by codespellrefs/pull/1864/headJan Wagner1-1/+1
2022-03-15check_icmp: buffer offerflow (#1733)Lorenz1-1/+6
* Fix different overflows * Less includes * Add testcases * Remove unused variable * Remove unused and commented includes
2022-01-29- delay set_source_ip() until address_family is detectedghciv61-1/+7
- add a test to check '-s'
2013-09-15check_icmp: tests do not require sudo if run by rootSven Nierlein1-9/+10
2008-11-23Removing CVS/SVN tags and replacing with git-based versioningThomas Guyot-Sionnest1-2/+0
For contrib/, full tags have been imported from subversion git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2091 f882894a-f735-0410-b71e-b25c423dba1c
2007-03-11Add tests for new check_icmp switch -mThomas Guyot-Sionnest1-2/+20
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1638 f882894a-f735-0410-b71e-b25c423dba1c
2007-03-11Converted check_ping.t to new-style testcases. Added test case for check_icmp -Ton Voon1-0/+68
requires sudo access git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1637 f882894a-f735-0410-b71e-b25c423dba1c