...
NMIS will try to make sure it's own fpingd.pl is running every time a collect or update is run if configured to use it (detailed below). If fpingd is not enabled or the loss value for the node to ping cannot be found in the fping status file nmis-fping.nmis or nmis-fping.json (on newer systems) then NMIS will run a ping of it's own. This code can be found in nmis.pl in sub runPing.
Warning | ||
---|---|---|
| ||
The fping status file nmis-fping.nmis, or nmis-fping.json (on newer systems) is automatically created and updated by fpingd. This file should NEVER be hand edited. At the very least hand editing will be overwritten by fpingd and at the worst a bad edit could result in disabling fpingd completely. |
...
fpingd is enabled by default, the config setting (in Config.nmis for NMIS8) to control this is:
Code Block |
---|
'daemon_fping_active' => 'true', |
In NMIS9 the configuration option is nmisd_fping_worker
Code Block |
---|
'nmisd_fping_worker' => 'true', |
Info | ||
---|---|---|
| ||
If you are NOT using DNS make sure to set daemon_fping_dns_cache in /usr/local/nmis8/conf/Config.nmis to false, the default value is true. |
fpingd runs a constant cycle of pinging all nodes updating the NMIS event table, sleeping and then doing it all over again. Every 10 poll cycles the Nodes.nmis file is re-read to look for changes.
...
Configuration Variable | Default (if not set at all) | Controls | ||
---|---|---|---|---|
fastping_timeout | 300 | Controls the -t setting for fping which is:
| ||
fastping_packet | 56 | Controls the -b setting for fping which is:
If this is set to < 24 it will be set to 24. | ||
fastping_retries | 3 | Controls the -r setting for fping which is:
| ||
fastping_count | 3 | Controls the -C setting for fping which is:
| ||
fastping_sleep | 60 | The number of seconds fpingd will sleep before running another ping cycle + random(10) | ||
fastping_node_poll | 200 | The number of nodes to ping in one invocation of fping. We strongly recommend that this value is set to no more than 250; otherwise you risk exceeding the linux command line length limits which will cause incorrect operation of fpingd.pl. |
...