Page 1 of 1

How to configure multiple ping commands in a single service

Posted: Thu Nov 17, 2016 8:54 am
by yunushaikh
Hello Experts,

There is a requirement of getting large packet latency and small packet latency together in a single service.

I understand that large packet latency ping and small packet latency will have different commands,
Large packet : ping IP -l 800
Small packet : ping IP -l 100

Is it possible to incorporate these two together and get a output of RTA and Packet loss. Also if you have any idea to make this possible please let me know.

Re: How to configure multiple ping commands in a single serv

Posted: Thu Nov 17, 2016 11:36 am
by rkennedy
check_ping does not allow you to maniuplate the size, and check_icmp has one option that might be what you're looking for -

Code: Select all

 -b
    Number of icmp data bytes to send
    Packet size will be data bytes + icmp header (currently 68 + 8)
If that's not what you're looking for, take a look at the Exchange to see if you can find a plugin that will do that - https://exchange.nagios.org - otherwise, you might just need to write your own to achieve the result.