From 8974eb6775477c0eca31c15f9fb41100850d05a9 Mon Sep 17 00:00:00 2001 From: Colin Gagnaire Date: Fri, 13 Jul 2018 09:45:33 +0200 Subject: [PATCH] enh paloalto cluster output (#1054) --- network/paloalto/snmp/mode/clusterstatus.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/network/paloalto/snmp/mode/clusterstatus.pm b/network/paloalto/snmp/mode/clusterstatus.pm index 0acc5cb16..a4d95accf 100644 --- a/network/paloalto/snmp/mode/clusterstatus.pm +++ b/network/paloalto/snmp/mode/clusterstatus.pm @@ -125,7 +125,9 @@ sub run { } $self->{output}->output_add(severity => 'OK', - short_msg => sprintf("Cluster status is ok.")); + short_msg => sprintf("Cluster status is ok [member: %s] [peer: %s]", + $self->{result}->{$oid_panSysHAState}, + $self->{result}->{$oid_panSysHAPeerState})); $self->{output}->output_add(long_msg => sprintf("current high-availability state is %s", $self->{result}->{$oid_panSysHAState}));