I’m getting many false positive alerts when using service check of Nagio plugin, please see attached image:
Also I’ve adjusted fping checks to the following values but it didn’t help, please advise
#$config[‘update’] = 0;
$config[‘fping’] = “/usr/sbin/fping”;
$config[‘fping_options’][‘retries’] = 3;
$config[‘fping_options’][‘timeout’] = 1000;
$config[‘fping_options’][‘count’] = 3;
if you already adjusted the fping options then I suggested you need to troubleshoot further and see why those devices are timing out. Could be a number of things.
Exactly this is two different things. You need ton add options to the services settings directly if you want to fine tune your options for the service check.
You need to check the official documentation for your fping Nagios plugin. Depending on which version you’re using the options are different. I’ve found this, but I can’t be sure that the same as you’re using: https://www.monitoring-plugins.org/doc/man/check_fping.html
Options:
-h, --help
Print detailed help screen
-V, --version
Print version information
--extra-opts=[section][@file]
Read options from an ini file. See
https://www.monitoring-plugins.org/doc/extra-opts.html
for usage and examples.
-4, --use-ipv4
Use IPv4 connection
-6, --use-ipv6
Use IPv6 connection
-H, --hostname=HOST
name or IP Address of host to ping (IP Address bypasses name lookup, reducing system load)
-w, --warning=THRESHOLD
warning threshold pair
-c, --critical=THRESHOLD
critical threshold pair
-b, --bytes=INTEGER
size of ICMP packet (default: 56)
-n, --number=INTEGER
number of ICMP packets to send (default: 1)
-T, --target-timeout=INTEGER
Target timeout (ms) (default: fping's default for -t)
-i, --interval=INTEGER
Interval (ms) between sending packets (default: fping's default for -p)
-S, --sourceip=HOST
name or IP Address of sourceip
-I, --sourceif=IF
source interface name
-v, --verbose
Show details for command-line debugging (output may be truncated by
the monitoring system)
Got it, so if I want it to be like this
$config[‘fping_options’][‘retries’] = 3;
$config[‘fping_options’][‘timeout’] = 1000;
$config[‘fping_options’][‘count’] = 3;
$config[‘fping_options’][‘millisec’] = 1000;
I should add in Parameters” field -T 1000 -i 1000 -n 3?
What about retry option?