1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2025-02-01 01:52:18 +01:00

newer munin uses variables in the plugin instead of the filename to determine graph name, make them consistent.

This commit is contained in:
Klas Lindfors 2012-08-21 08:13:22 +02:00
parent bffa931deb
commit ee36db3be1
3 changed files with 6 additions and 6 deletions

View File

@ -25,7 +25,7 @@ if ($argc==2 && strcmp($argv[1], "autoconf") == 0) {
if ($argc==2 && strcmp($argv[1], "config") == 0) {
echo "multigraph yk_latency\n";
echo "multigraph ykval_ksmlatency\n";
echo "graph_title KSM latency\n";
echo "graph_vlabel Average KSM Decrypt Latency (seconds)\n";
echo "graph_category ykval\n";
@ -42,7 +42,7 @@ if ($argc==2 && strcmp($argv[1], "config") == 0) {
exit (0);
}
echo "multigraph yk_latency\n";
echo "multigraph ykval_ksmlatency\n";
foreach ($ksms as $ksm) {
$shortksm = url2shortname ($ksm);
$time = `curl --silent --write-out '%{time_total}' --max-time 3 '$ksm' -o /dev/null`;

View File

@ -13,7 +13,7 @@ if(@ARGV > 0) {
print "yes\n";
exit 0;
} elsif($ARGV[0] eq "config") {
print "multigraph yk_responses\n";
print "multigraph ykval_responses\n";
print "graph_title YK-VAL response types\n";
print "graph_vlabel responses\n";
print "graph_category ykval\n";
@ -41,7 +41,7 @@ while(<LOGFILE>) {
}
close LOGFILE;
print "multigraph yk_responses\n";
print "multigraph ykval_responses\n";
foreach my $type (@types) {
print "${type}.value ${statuses{$type}}\n";
}

View File

@ -25,7 +25,7 @@ if ($argc==2 && strcmp($argv[1], "autoconf") == 0) {
if ($argc==2 && strcmp($argv[1], "config") == 0) {
echo "multigraph ykval_latency\n";
echo "multigraph ykval_vallatency\n";
echo "graph_title VAL latency\n";
echo "graph_vlabel Average VAL Latency (seconds)\n";
echo "graph_category ykval\n";
@ -48,7 +48,7 @@ if ($argc==2 && strcmp($argv[1], "config") == 0) {
exit (0);
}
echo "multigraph ykval_latency\n";
echo "multigraph ykval_vallatency\n";
foreach ($urls as $url) {
$shortname = url2shortname ($url);
$cmd = "--user-agent ykval-munin-vallatency/1.0 --silent --write-out '%{time_total}' --max-time 3 '$url' -o /dev/null";