{"id":2015,"date":"2013-04-30T11:04:20","date_gmt":"2013-04-30T03:04:20","guid":{"rendered":"http:\/\/rmohan.com\/?p=2015"},"modified":"2013-04-30T17:51:39","modified_gmt":"2013-04-30T09:51:39","slug":"check_fpingcheck_pingcheck_icmp","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=2015","title":{"rendered":"check_fping,check_ping,check_icmp"},"content":{"rendered":"<p>With Nagios using check_icmp is the way to go, it better and faster, below is an example configuration directive for setting the check-host-alive command which will be used by each host check.<\/p>\n<p># &#8216;check-host-alive&#8217; command definition<br \/>define command{<br \/>command_name\u00a0\u00a0\u00a0 check-host-alive<br \/>command_line\u00a0\u00a0\u00a0 $USER1$\/check_icmp -H $HOSTADDRESS$ -w 30,5% -c 100,20% -p 1<br \/>}<\/p>\n<p>&nbsp;<\/p>\n<p>time .\/check_icmp -H 10.60.48.244 -n 5<\/p>\n<p><em id=\"__mceDel\">OK &#8211; 10.60.48.244: rta 0.519ms, lost 0%|rta=0.519ms;200.000;500.000;0;pl=0%;40;80;;<br \/>0.00u 0.01s 0:00.33 3.0%<\/em><\/p>\n<p>time .\/check_ping -w 100,100% -c 500,100% -H 10.60.48.244<br \/>PING OK &#8211; Packet loss = 0%, RTA = 0.00 ms<br \/>0.01u 0.00s 0:04.01 0.2%<\/p>\n<p>time .\/check_fping -H 10.60.48.244 -n 5<br \/>FPING OK &#8211; 10.60.48.244 (loss=0%, rta=0.640000 ms)|loss=0%;;;0;100 rta=0.000640s;;;0.000000<br \/>0.00u 0.01s 0:04.56 0.2%<\/p>\n","protected":false},"excerpt":{"rendered":"<p>With Nagios using check_icmp is the way to go, it better and faster, below is an example configuration directive for setting the check-host-alive command which will be used by each host check.<\/p>\n<p># &#8216;check-host-alive&#8217; command definitiondefine command{command_name check-host-alivecommand_line $USER1$\/check_icmp -H $HOSTADDRESS$ -w 30,5% -c 100,20% -p 1}<\/p>\n<p>&nbsp;<\/p>\n<p>time .\/check_icmp -H 10.60.48.244 -n 5<\/p>\n<p>OK [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[41],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/2015"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2015"}],"version-history":[{"count":9,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/2015\/revisions"}],"predecessor-version":[{"id":2017,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/2015\/revisions\/2017"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2015"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2015"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2015"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}