Commit 78588b98 authored by PhiBo's avatar PhiBo 🚀

src - Change perfdata names

parent 3036dc11
...@@ -117,7 +117,7 @@ sub check ...@@ -117,7 +117,7 @@ sub check
critical => $mp->opts->latency_crit critical => $mp->opts->latency_crit
); );
$mp->add_perfdata( $mp->add_perfdata(
label => "latency_$hop_count", label => "hop_${hop_count}_rta",
value => $latency_value, value => $latency_value,
warning => $mp->opts->latency_warn, warning => $mp->opts->latency_warn,
critical => $mp->opts->latency_crit, critical => $mp->opts->latency_crit,
...@@ -129,7 +129,7 @@ sub check ...@@ -129,7 +129,7 @@ sub check
critical => $mp->opts->packet_loss_crit, critical => $mp->opts->packet_loss_crit,
); );
$mp->add_perfdata( $mp->add_perfdata(
label => "packet_loss_$hop_count", label => "hop_${hop_count}_pl",
value => $packet_loss_value, value => $packet_loss_value,
warning => $mp->opts->packet_loss_warn, warning => $mp->opts->packet_loss_warn,
critical => $mp->opts->packet_loss_crit, critical => $mp->opts->packet_loss_crit,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment