Module: check_mk
Branch: master
Commit: ebd078bf544404fb58e45bec05e493efa13aa997
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ebd078bf544404…
Author: Florian Kromer <fk(a)mathias-kettner.de>
Date: Mon Apr 8 16:17:29 2019 +0200
alcatel_*: Add info about supported devices and operating systems
Change-Id: I1b37a6e5602cc81955a5b8a7e2afa219ac14d633
---
checkman/alcatel_cpu | 12 +++++++++++-
checkman/alcatel_fans | 12 +++++++++++-
checkman/alcatel_power | 15 ++++++++++++---
checkman/alcatel_temp | 14 ++++++++++++--
4 files changed, 46 insertions(+), 7 deletions(-)
diff --git a/checkman/alcatel_cpu b/checkman/alcatel_cpu
index 0f4ed01..f8e36ff 100644
--- a/checkman/alcatel_cpu
+++ b/checkman/alcatel_cpu
@@ -4,7 +4,17 @@ catalog: hw/network/alcatel
license: GPL
distribution: check_mk
description:
- This Check Monitors the CPU utilization on Alcatel switches supporting the ALCATEL-IND1-HEALTH-MIB.
+ This check monitors the CPU utilization on the following Alcatel switches
+ running the specified operating system release versions:
+
+ - OmniSwitch 6850-48X: AOS 6.4.5.528.R02 Service Release
+
+ - OmniSwitch 6850-U24X: AOS 6.4.4.442.C Service Release
+
+ - OmniSwitch 6450-U24: AOS 6.6.5.77.R02 Service Release, AOS 6.6.4.285.R01 Service Release
+
+ - OmniSwitch 6450-10: AOS 6.7.2.191.R04 GA
+
The value is a average in percent over the last hour. This average is calculated by the device.
inventory:
diff --git a/checkman/alcatel_fans b/checkman/alcatel_fans
index e9e97eb..043327d 100644
--- a/checkman/alcatel_fans
+++ b/checkman/alcatel_fans
@@ -4,7 +4,17 @@ catalog: hw/network/alcatel
license: GPL
distribution: check_mk
description:
- This Check Monitors all Fans on Alcatel switches supporting the ALCATEL-IND1-CHASSIS-MIB.
+ This check monitors all fans on the following Alcatel switches
+ running the specified operating system release versions:
+
+ - OmniSwitch 6850-48X: AOS 6.4.5.528.R02 Service Release
+
+ - OmniSwitch 6850-U24X: AOS 6.4.4.442.C Service Release
+
+ - OmniSwitch 6450-U24: AOS 6.6.5.77.R02 Service Release, AOS 6.6.4.285.R01 Service Release
+
+ - OmniSwitch 6450-10: AOS 6.7.2.191.R04 GA
+
The status is automaticly reported by the device, so no configuration is needed
inventory:
diff --git a/checkman/alcatel_power b/checkman/alcatel_power
index 3da772b..3e6e434 100644
--- a/checkman/alcatel_power
+++ b/checkman/alcatel_power
@@ -4,9 +4,18 @@ catalog: hw/network/alcatel
license: GPL
distribution: check_mk
description:
- This check monitors the health of power supplies in
- Alcatel switches. If one of the two power supplies fails, the
- check returns {CRIT}.
+ This check monitors the health of power supplies in the following Alcatel
+ switches running the specified operating system release versions:
+
+ - OmniSwitch 6850-48X: AOS 6.4.5.528.R02 Service Release
+
+ - OmniSwitch 6850-U24X: AOS 6.4.4.442.C Service Release
+
+ - OmniSwitch 6450-U24: AOS 6.6.5.77.R02 Service Release, AOS 6.6.4.285.R01 Service Release
+
+ - OmniSwitch 6450-10: AOS 6.7.2.191.R04 GA
+
+ If one of the two power supplies fails, the check returns {CRIT}.
item:
The ID of the power supply as output from the SNMP agent.
diff --git a/checkman/alcatel_temp b/checkman/alcatel_temp
index c5d2b00..da0f3b1 100644
--- a/checkman/alcatel_temp
+++ b/checkman/alcatel_temp
@@ -4,8 +4,18 @@ catalog: hw/network/alcatel
license: GPL
distribution: check_mk
description:
- This Check Monitors CPU and Board Temperatures on Alcatel switches supporting the ALCATEL-IND1-CHASSIS-MIB.
- If the CPU Temperature is supported depends on the switch mode (not supported on Hawk models)
+ This check monitors CPU and board temperatures on the following Alcatel
+ switches running the specified operating system release versions:
+
+ - OmniSwitch 6850-48X: AOS 6.4.5.528.R02 Service Release
+
+ - OmniSwitch 6850-U24X: AOS 6.4.4.442.C Service Release
+
+ - OmniSwitch 6450-U24: AOS 6.6.5.77.R02 Service Release, AOS 6.6.4.285.R01 Service Release
+
+ - OmniSwitch 6450-10: AOS 6.7.2.191.R04 GA
+
+ If the CPU Temperature is supported depends on the switch mode (not supported on Hawk models).
inventory:
One check is created
Module: check_mk
Branch: master
Commit: f5bdda2164c817a15b44fb4785bea248a1338ccd
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f5bdda2164c817…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Tue Apr 9 16:08:39 2019 +0200
7364 FIX check_mk_agent.{aix,solaris}: Fixed possibly disappeared inventory entries
On Linux hosts the HW/SW inventory plugin {{mk_inventory}} remembers the
remote address, ie. the Check_MK server, in order to know which host has
already got the inventory data for caching reasons.
The AIX and Solaris agent does not provide the remote host information.
This may lead to disappearing inventory data on Check_MK servers if at
least two Check_MK servers request data from the same client host which
does not know which server already got inventory data.
Change-Id: If117940d5191b0ef003cfeab6e83a9bc4b7291bc
---
.werks/7364 | 15 +++++++++++++++
agents/check_mk_agent.aix | 8 ++++++++
agents/check_mk_agent.solaris | 8 ++++++++
3 files changed, 31 insertions(+)
diff --git a/.werks/7364 b/.werks/7364
new file mode 100644
index 0000000..cad0da5
--- /dev/null
+++ b/.werks/7364
@@ -0,0 +1,15 @@
+Title: check_mk_agent.{aix,solaris}: Fixed possibly disappeared inventory entries
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.6.0i1
+Date: 1554818345
+Class: fix
+
+On Linux hosts the HW/SW inventory plugin {{mk_inventory}} remembers the
+remote address, ie. the Check_MK server, in order to know which server has
+already got the inventory data (for caching reasons).
+The AIX and Solaris agent does not provide the remote host information.
+This may lead to disappearing inventory data on Check_MK servers if at
+least two Check_MK servers request data from the same client host.
diff --git a/agents/check_mk_agent.aix b/agents/check_mk_agent.aix
index 9e0ba21..1081fb8 100755
--- a/agents/check_mk_agent.aix
+++ b/agents/check_mk_agent.aix
@@ -41,6 +41,14 @@ export MK_VARDIR=${MK_VARDIR:-/tmp/check_mk}
# Optionally set a tempdir for all subsequent calls
#export TMPDIR=
+# Provide information about the remote host. That helps when data
+# is being sent only once to each remote host.
+if [ "$REMOTE_HOST" ] ; then
+ export REMOTE=$REMOTE_HOST
+elif [ "$SSH_CLIENT" ] ; then
+ export REMOTE=${SSH_CLIENT%% *}
+fi
+
# All executables in PLUGINSDIR will simply be executed and their
# ouput appended to the output of the agent. Plugins define their own
# sections and must output headers with '<<<' and '>>>'
diff --git a/agents/check_mk_agent.solaris b/agents/check_mk_agent.solaris
index e9ce799..b3e843b 100755
--- a/agents/check_mk_agent.solaris
+++ b/agents/check_mk_agent.solaris
@@ -35,6 +35,14 @@ export MK_VARDIR=${MK_VARDIR:-/var/lib/check_mk_agent}
# Optionally set a tempdir for all subsequent calls
#export TMPDIR=
+# Provide information about the remote host. That helps when data
+# is being sent only once to each remote host.
+if [ "$REMOTE_HOST" ] ; then
+ export REMOTE=$REMOTE_HOST
+elif [ "$SSH_CLIENT" ] ; then
+ export REMOTE=${SSH_CLIENT%% *}
+fi
+
# All executables in PLUGINSDIR will simply be executed and their
# ouput appended to the output of the agent. Plugins define their own
# sections and must output headers with '<<<' and '>>>'