From b19b1dfa96a3bb82260feccda3779c6c6c4b6ded Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Wed, 19 Feb 2020 11:33:35 +0100 Subject: [PATCH 1/2] drop stderrr for upsc commands On debian based system, upsc prints "Init SSL without certificate database" which prevents Zabbix from getting the value --- zabbix_conf/nut_ups.conf | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/zabbix_conf/nut_ups.conf b/zabbix_conf/nut_ups.conf index 5f5c1c4..6c2bab2 100644 --- a/zabbix_conf/nut_ups.conf +++ b/zabbix_conf/nut_ups.conf @@ -7,7 +7,7 @@ # Units: % # Multiplier: Do not use # Store Value: As is -UserParameter=ups.load[*],upsc $1 ups.load +UserParameter=ups.load[*],upsc $1 ups.load 2>/dev/null # Description: Nut UPS Battery Charge # Type: Agent or Agent (active) @@ -16,23 +16,23 @@ UserParameter=ups.load[*],upsc $1 ups.load # Units: % # Multiplier: Do not use # Store Value: As is -UserParameter=ups.battery.charge[*],upsc $1 battery.charge +UserParameter=ups.battery.charge[*],upsc $1 battery.charge 2>/dev/null # Description: Nut UPS Status # Type: Agent or Agent (active) # Key: ups.status[UPS] # Type of information: Character # Show Value: As is (you can also define a dictionnary OL=>On Line etc...) -UserParameter=ups.status[*],upsc $1 ups.status +UserParameter=ups.status[*],upsc $1 ups.status 2>/dev/null # Description: Nut UPS Model # Type: Agent or Agent (active) # Key: ups.model[UPS] # Type of information: Text -UserParameter=ups.model[*],upsc $1 ups.model +UserParameter=ups.model[*],upsc $1 ups.model 2>/dev/null # UPS discovery UserParameter=hardware.ups.discovery[*],/var/lib/zabbix/bin/disco_nut_ups $1 # This is a new, more generic nut ups UserParameter -UserParameter=hardware.ups[*],upsc $1 $2 +UserParameter=hardware.ups[*],upsc $1 $2 2>/dev/null From 3af623b0882f699486f338c3e5a66ce6c174028b Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Wed, 19 Feb 2020 11:34:34 +0100 Subject: [PATCH 2/2] Automatic commit of package [zabbix-agent-addons] release [0.2.112-1]. Created by command: /usr/bin/tito tag --- .tito/packages/zabbix-agent-addons | 2 +- zabbix-agent-addons.spec | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.tito/packages/zabbix-agent-addons b/.tito/packages/zabbix-agent-addons index bd34c59..eab88a8 100644 --- a/.tito/packages/zabbix-agent-addons +++ b/.tito/packages/zabbix-agent-addons @@ -1 +1 @@ -0.2.111-1 ./ +0.2.112-1 ./ diff --git a/zabbix-agent-addons.spec b/zabbix-agent-addons.spec index 51d88fd..3304064 100644 --- a/zabbix-agent-addons.spec +++ b/zabbix-agent-addons.spec @@ -4,7 +4,7 @@ Summary: Scripts for Zabbix monitoring Name: zabbix-agent-addons -Version: 0.2.111 +Version: 0.2.112 Release: 1%{?dist} Source0: %{name}-%{version}.tar.gz BuildArch: noarch @@ -101,6 +101,9 @@ fi %endif %changelog +* Wed Feb 19 2020 Daniel Berteaud 0.2.112-1 +- drop stderrr for upsc commands (daniel@firewall-services.com) + * Mon Feb 17 2020 Daniel Berteaud 0.2.111-1 - Update ZFS and BackupPC templates (daniel@firewall-services.com)