Adjust fping bytes / packet size

I have a device that only replies to ping when using smaller packet sizes. For example ping works when I run: “fping -b 12 device”. It seems I cannot adjust the default fping settings in Centos7, but maybe I can adjust the fping command line in librenms? Am I correct this is found in app/Jobs/PingCheck.php?

Yeah, I don’t think there is an option to set random settings for fping.

PingCheck is only if you use the fast ping service (it is unlikely you do)
The main fping check is in functions.php:fping()

Either just quick and dirty add your setting there (if the surrounding code changes it could block your updates)
Or add another setting like the other fping settings to control packet size and submit it for upstream inclusion.

1 Like

working, thanks!
i did it the quick way, it would be nice to see it as an option in the config file, but i didn’t understand the coding well enough to add it myself…

Hey!

I have the same issue as Andreas, I have a couple devices only responding to ping packets smaller than 32 bytes.

I tried adding the following to config.php

$config[‘fping’] = “/usr/sbin/fping”;
$config[‘fping_options’][‘timeout’] = 500;
$config[‘fping_options’][‘count’] = 3;
$config[‘fping_options’][‘interval’] = 500;
$config[‘fping_options’][‘retries’] = 2;
$config[‘fping_options’][‘size’] = 24;

But that didn’t help.
I can’t find functions.php so don’t really know how to proceed.
Any help appreciated!