Hello,
I would like to graph the availability of hosts in grafana. I would use the output of check_icmp or check_ping commands, but the return is "OK". Anyone knows how I can turn this "OK" in percentage? 100% for up and 0% for down so I can graph it?
Thank you
Change OK to metric
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: Change OK to metric
check_ping should return performance data where the pl metric is what you are looking for, it shows the percent of packet loss
-
- Posts: 52
- Joined: Fri Jul 17, 2020 7:35 am
Re: Change OK to metric
Packet loss is not exactly availability. I understand what you say, but if I lose 1 ping out of 3, it is not unavailability, but it is packet loss. I want to graph the availability, not the pl that might occur if I lose 1 ping packet out of 3 or 5, which I test in every check.scottwilkerson wrote:check_ping should return performance data where the pl metric is what you are looking for, it shows the percent of packet loss
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: Change OK to metric
How are you sending the data to Grafana?coitop wrote:Packet loss is not exactly availability. I understand what you say, but if I lose 1 ping out of 3, it is not unavailability, but it is packet loss. I want to graph the availability, not the pl that might occur if I lose 1 ping packet out of 3 or 5, which I test in every check.scottwilkerson wrote:check_ping should return performance data where the pl metric is what you are looking for, it shows the percent of packet loss