From 6613a3df8c53369e8bb906ff4c3a30173adeb241 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Sun, 9 May 2021 06:41:37 +0200 Subject: [PATCH] ADMIN: netsnmp: report "HAProxy" and not "Haproxy" in output descriptions In the SNMP fields descriptions, "Haproxy" was mentioned, let's make it consistent with the rest. --- admin/netsnmp-perl/cacti_data_query_haproxy_backends.xml | 6 +++--- admin/netsnmp-perl/cacti_data_query_haproxy_frontends.xml | 6 +++--- admin/netsnmp-perl/haproxy.pl | 8 ++++---- admin/netsnmp-perl/haproxy_backend.xml | 2 +- admin/netsnmp-perl/haproxy_frontend.xml | 2 +- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/admin/netsnmp-perl/cacti_data_query_haproxy_backends.xml b/admin/netsnmp-perl/cacti_data_query_haproxy_backends.xml index 2cf5009231..9c4ea3813f 100644 --- a/admin/netsnmp-perl/cacti_data_query_haproxy_backends.xml +++ b/admin/netsnmp-perl/cacti_data_query_haproxy_backends.xml @@ -517,7 +517,7 @@ HAProxy Backend Session Stats - |host_description| - Haproxy - |query_bePxName| Backend Session Stats + |host_description| - HAProxy - |query_bePxName| Backend Session Stats hash_030013bf566c869ac6443b0c75d1c32b5a350e @@ -608,7 +608,7 @@ HAProxy Backend Traffic Stats - |host_description| - Haproxy - |query_bePxName| Backend Traffic Stats + |host_description| - HAProxy - |query_bePxName| Backend Traffic Stats hash_030013bf566c869ac6443b0c75d1c32b5a350e @@ -747,4 +747,4 @@ Normal %8.2lf %s - \ No newline at end of file + diff --git a/admin/netsnmp-perl/cacti_data_query_haproxy_frontends.xml b/admin/netsnmp-perl/cacti_data_query_haproxy_frontends.xml index 67508d7434..1429b07a73 100644 --- a/admin/netsnmp-perl/cacti_data_query_haproxy_frontends.xml +++ b/admin/netsnmp-perl/cacti_data_query_haproxy_frontends.xml @@ -517,7 +517,7 @@ HAProxy Frontend Session Stats - |host_description| - Haproxy - |query_fePxName| Frontend Session Stats + |host_description| - HAProxy - |query_fePxName| Frontend Session Stats hash_030013bf566c869ac6443b0c75d1c32b5a350e @@ -608,7 +608,7 @@ HAProxy Frontend Traffic Stats - |host_description| - Haproxy - |query_fePxName| Frontend Traffic Stats + |host_description| - HAProxy - |query_fePxName| Frontend Traffic Stats hash_030013bf566c869ac6443b0c75d1c32b5a350e @@ -747,4 +747,4 @@ Normal %8.2lf %s - \ No newline at end of file + diff --git a/admin/netsnmp-perl/haproxy.pl b/admin/netsnmp-perl/haproxy.pl index f4c3621472..64684ad018 100644 --- a/admin/netsnmp-perl/haproxy.pl +++ b/admin/netsnmp-perl/haproxy.pl @@ -1,5 +1,5 @@ # -# Net-SNMP perl plugin for Haproxy +# Net-SNMP perl plugin for HAProxy # Version 0.30 # # Copyright 2007-2010 Krzysztof Piotr Oledzki @@ -21,7 +21,7 @@ use IO::Socket::UNIX; use strict; -my $agent = new NetSNMP::agent('Name' => 'Haproxy'); +my $agent = new NetSNMP::agent('Name' => 'HAProxy'); my $sa = "/var/run/haproxy.stat"; use constant OID_HAPROXY => '1.3.6.1.4.1.29385.106'; @@ -244,6 +244,6 @@ sub haproxy_info { } } -$agent->register('Haproxy stat', OID_HAPROXY_STATS, \&haproxy_stat); -$agent->register('Haproxy info', OID_HAPROXY_INFO, \&haproxy_info); +$agent->register('HAProxy stat', OID_HAPROXY_STATS, \&haproxy_stat); +$agent->register('HAProxy info', OID_HAPROXY_INFO, \&haproxy_info); diff --git a/admin/netsnmp-perl/haproxy_backend.xml b/admin/netsnmp-perl/haproxy_backend.xml index a5dbe543d6..26ce63f084 100644 --- a/admin/netsnmp-perl/haproxy_backend.xml +++ b/admin/netsnmp-perl/haproxy_backend.xml @@ -1,5 +1,5 @@ - Haproxy - backend + HAProxy - backend .1.3.6.1.4.1.29385.106.1.1.10001 diff --git a/admin/netsnmp-perl/haproxy_frontend.xml b/admin/netsnmp-perl/haproxy_frontend.xml index 028ebc7353..ade2a77a77 100644 --- a/admin/netsnmp-perl/haproxy_frontend.xml +++ b/admin/netsnmp-perl/haproxy_frontend.xml @@ -1,5 +1,5 @@ - Haproxy - frontend + HAProxy - frontend .1.3.6.1.4.1.29385.106.1.0.10001