Packet loss data in performance graph from check_icmp

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
perric
Posts: 161
Joined: Fri Mar 28, 2014 10:37 am

Packet loss data in performance graph from check_icmp

Post by perric »

Hi,

We have our hosts set up with a slightly modified check-host-alive (which warns at 300 ms / 20% packet loss and goes critical at 500 ms / 50% packet loss) with check_interval = 5, retry_interval = 1, max_check_attempts = 2.

Code: Select all

$USER1$/check_icmp -H $HOSTADDRESS$ -w 300.0,20% -c 500.0,50% -p 5
When I look at performance data for this host, I get some interesting values for packet loss such as in the attached = 17.87% packet loss for 2 minutes, then 3% packet loss for 2 minutes, then back to no packet loss. However, if we are only doing 5 pings per the check, shouldn't the packet loss be either 0%, 20%, 40%, 60%, 80%, or 100%? How is Nagios calculating this number?

I am asking this as we see value in capturing packet loss at a more granular level (ideally as these are data center hosts we'd like to alert on ANY packet loss, but don't want to ping the hosts hundreds of times on each check to catch small levels of packet loss)

Thanks
You do not have the required permissions to view the files attached to this post.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Packet loss data in performance graph from check_icmp

Post by benjaminsmith »

Hi @perric,
However, if we are only doing 5 pings per the check, shouldn't the packet loss be either 0%, 20%, 40%, 60%, 80%, or 100%? How is Nagios calculating this number?
Good question. That is correct ,however, Nagios XI uses a Round Robin Database to store performance data. This type of database is used to store large amounts of time series data in an efficient manner, and utilizes sampling techniques to reduce the amount of storage space required. So the data points on the graph take into account the sampling, averaging, interpolation of data by RRDtool and are not exactly what was returned by the plugin.

Let me know if you have any other questions.

For More information about RRDtool:
https://oss.oetiker.ch/rrdtool/index.en.html
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
perric
Posts: 161
Joined: Fri Mar 28, 2014 10:37 am

Re: Packet loss data in performance graph from check_icmp

Post by perric »

OK, thanks for the explanation.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Packet loss data in performance graph from check_icmp

Post by benjaminsmith »

Hi @perric,
OK, thanks for the explanation.
No problem. Did you have any other questions or shall I close this thread?

Thanks.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
perric
Posts: 161
Joined: Fri Mar 28, 2014 10:37 am

Re: Packet loss data in performance graph from check_icmp

Post by perric »

Good to close, thanks
Locked