From 787680ef6e7a036a1ba66b6ffb69a2d81bc76c36 Mon Sep 17 00:00:00 2001 From: Thomas Kiss Date: Tue, 25 Aug 2015 18:43:13 +0200 Subject: [PATCH] Added warning ang critical threshold output to "CPULOAD" perfdata for better graphing --- nagios/check-netapp-ng.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nagios/check-netapp-ng.pl b/nagios/check-netapp-ng.pl index 627abbb..8e2d651 100755 --- a/nagios/check-netapp-ng.pl +++ b/nagios/check-netapp-ng.pl @@ -648,7 +648,7 @@ if("$opt{'check_type'}" eq "TEMP") { } elsif("$opt{'check_type'}" eq "CPULOAD") { my $check = _get_oid_value($snmp_session,$snmpcpuBusyTimePerCent); ($msg,$stat) = _clac_err_stat($check,$opt{'check_type'},$opt{'warn'},$opt{'crit'}); - $perf = "cpuload=$check\%"; + $perf = "cpuload=$check\%;$opt{'warn'};$opt{'crit'};;"; ### NFSOPS ### } elsif("$opt{'check_type'}" eq "NFSOPS") { my $nfsops_per_seconds=floor ( ($total_nfs_ops-$fileNfsOps)/$elapsedtime );