check_ping vs check_icmp REDUX
Posted: Fri May 04, 2018 4:06 pm
So check_ping and check_icmp both send ICMP echos and collect ICMP echo replies. I notice three main differences between the two:
1. The output is similar, but not exactly the same. If you swap out check_ping with check_icmp, it will work, but you'll have to remove the old RRDs as the perfdata counters are different.
2. check_ping sends ICMP echos at a fixed 1 second interval whereas check_icmp sends ICMP echos at a default but changeable 80ms interval
3. check_ping relies on the system ping command where as check_icmp can send packets on its own
4. check_icmp must have the setuid bit in order to work
Do I understand this correctly? Is there any other implications to swapping out one for the other? Specifically in swapping out check_icmp with check_ping in environments where setuid is banned by policy?
1. The output is similar, but not exactly the same. If you swap out check_ping with check_icmp, it will work, but you'll have to remove the old RRDs as the perfdata counters are different.
2. check_ping sends ICMP echos at a fixed 1 second interval whereas check_icmp sends ICMP echos at a default but changeable 80ms interval
3. check_ping relies on the system ping command where as check_icmp can send packets on its own
4. check_icmp must have the setuid bit in order to work
Do I understand this correctly? Is there any other implications to swapping out one for the other? Specifically in swapping out check_icmp with check_ping in environments where setuid is banned by policy?