Module: check_mk
Branch: master
Commit: 9646b269984c0046bb5578f4eeece3c29dde3350
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9646b269984c00…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Dec 4 18:53:04 2014 +0100
#1636 Crash checks now have an icon for viewing and sending a crash dump
If a check crashed because invalid output from agent, invalid check
parameters or a bug in the implementation of the check, then Check_MK
now creates a crash report for the according service in the directory
<tt>var/check_mk/crashed_checks/</tt>HOST<tt>/</tt>SERVICE. In this directory
there is one informational file and the output from the agent (Check_MK agent
or SNMP). This data is then packed into a tarball, base64 encoded and added
as a long plugin output to the check.
Multisite has a new icon for displaying that data and for submitting
a bug report via email.
---
.werks/1636 | 18 ++++++
ChangeLog | 1 +
checks/cpu | 1 +
modules/check_mk.py | 10 ++--
modules/check_mk_base.py | 75 +++++++++++++----------
web/htdocs/crashed_check.py | 90 ++++++++++++++++++++++++++++
web/htdocs/images/icon_crash.png | Bin 0 -> 2803 bytes
web/htdocs/images/icon_crash_glow.png | Bin 0 -> 3395 bytes
web/htdocs/images/icon_email.png | Bin 0 -> 2465 bytes
web/htdocs/pages.css | 11 ++++
web/plugins/icons/builtin.py | 26 ++++++++
web/plugins/pages/shipped.py | 7 ++-
web/plugins/wato/check_mk_configuration.py | 16 -----
13 files changed, 201 insertions(+), 54 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=9646b26998…
Module: check_mk
Branch: master
Commit: 730d4f8d877935f9f627e61abec039fc134fcbc0
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=730d4f8d877935…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Thu Dec 4 16:23:41 2014 +0100
#1599 check_mk_agent.aix: Simple run_cached Feature for plugins
Like in the Linux and Solaris Agent, it's no possible to create subfolders in the plugin folder with a number as name, who represents the cache time for
the contained plugins in minutes.
---
.werks/1599 | 11 +++++++++++
ChangeLog | 7 ++++---
agents/check_mk_agent.aix | 47 +++++++++++++++++++++++++++++++++++++++++----
3 files changed, 58 insertions(+), 7 deletions(-)
diff --git a/.werks/1599 b/.werks/1599
new file mode 100644
index 0000000..1b36048
--- /dev/null
+++ b/.werks/1599
@@ -0,0 +1,11 @@
+Title: check_mk_agent.aix: Simple run_cached Feature for plugins
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.5i7
+Date: 1417706510
+Class: feature
+
+Like in the Linux and Solaris Agent, it's no possible to create subfolders in the plugin folder with a number as name, who represents the cache time for
+the contained plugins in minutes.
+
diff --git a/ChangeLog b/ChangeLog
index dbb37c0..7d13f6b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -48,11 +48,12 @@
* 1616 drbd: Added support for Ahead/Behind cluster states (DRBD >= 8.3.10)
* 1626 Renamed service descriptions of filesystem, process and logwatch checks...
* 1627 megaraid_ldisks: Warn if current cache or write policy differs from logical drive default policy...
- * 1597 bluecat_dhcp, bluecat_dns: Checks can now be used in Check_MK Cluster Mode
* 1629 check_mk_agent.freebsd: several new features and improvements, now only use statgrab...
* 1630 smart: update in plugin that also outputs information about disks attached to a MegaRAID controller...
* 1631 juniper_bgp_state: check now detects and supports more differen device models...
* 1645 Added basic kernel section to FreeBSD agent...
+ * 1597 bluecat_dhcp, bluecat_dns: Checks can now be used in Check_MK Cluster Mode
+ * 1599 check_mk_agent.aix: Simple run_cached Feature for plugins...
* 1478 FIX: kernel.util, statgrab_cpu: fix computation of utilization...
* 1480 FIX: brocade_vdx_status: disable check on some devices that do not support it...
* 1485 FIX: dell_om_disks, dell_om_esmlog, dell_om_mem, dell_om_processors, dell_om_sensors: detect more devices...
@@ -95,12 +96,12 @@
* 1617 FIX: lnx_if: Deal with data provided by cluster host
* 1618 FIX: ad_replication: Output of timeLastSuccess and timeLastFailure was inverted...
* 1623 FIX: hp_proliant_mem: support for some yet unhandled status situations
- * 1598 FIX: bluecat_dhcp: Check is not longer found in inventory if dhcp service is not activated
* 1640 FIX: check_jolokia_metrics_serv_req: Fixed wrong levels shown for upper thresholds
- * 1453 FIX: drbd.stats: tried to send non-numeric write order parameter to rrd...
* 1632 FIX: hr_fs: remove ugly "mounted on:" information appearing on Juniper devices
* 1646 FIX: hyperv_vms: Plugin garbles following plugin output when no VMs exist...
* 1647 FIX: agent_ipmi: Check_MK service gets critical now when ipmi-sensors command fails
+ * 1453 FIX: drbd.stats: tried to send non-numeric write order parameter to rrd...
+ * 1598 FIX: bluecat_dhcp: Check is not longer found in inventory if dhcp service is not activated
Multisite:
* 1508 Allow input of plugin output and perfdata when faking check results...
diff --git a/agents/check_mk_agent.aix b/agents/check_mk_agent.aix
index 7ae1c61..5f92d63 100755
--- a/agents/check_mk_agent.aix
+++ b/agents/check_mk_agent.aix
@@ -27,8 +27,8 @@
export LC_ALL=C
unset LANG
-export MK_LIBDIR="/to/be/changed"
-export MK_CONFDIR="/to/be/changed"
+export MK_LIBDIR="/usr/check_mk/lib"
+export MK_CONFDIR="/usr/check_mk/conf"
# All executables in PLUGINSDIR will simply be executed and their
# ouput appended to the output of the agent. Plugins define their own
@@ -54,7 +54,7 @@ fi
# Shell version of the waitmax utility, that limits the runtime of
# commands. This version does not conserve the original exit code
# of the command. It is successfull if the command terminated
-# in time.
+ # in time.
function waitmax
{
TIMEOUT=${1}0
@@ -81,8 +81,36 @@ function waitmax
return 255
}
+function run_cached {
+ NAME=$1
+ MAXAGE=$2
+ shift 2
+ CMDLINE=$*
+ MAXAGE=$MAXAGE*60
+
+ CACHE_FILE=/tmp/$NAME.cache
+
+ USE_CACHE_FILE=""
+ # Check if file exists and is recent enough
+ if [ -s $CACHE_FILE ]
+ then
+ MTIME=$(/usr/bin/perl -e 'if (! -f $ARGV[0]){die "0000000"};$mtime=(stat($ARGV[0]))[9];print ($^T-$mtime);' $CACHE_FILE )
+ if (( $MTIME < $MAXAGE )) ; then
+ USE_CACHE_FILE=1
+ fi
+ fi
+ if [ -s "$CACHE_FILE" ]
+ then
+ cat $CACHE_FILE
+ fi
+ if [ -z "$USE_CACHE_FILE" -a ! -e "$CACHE_FILE.new" ]
+ then
+ nohup sh -c $CMDLINE > $CACHE_FILE.new 2> /dev/null && mv $CACHE_FILE.new $CACHE_FILE &
+ fi
+}
+
echo '<<<check_mk>>>'
-echo Version: 1.2.5i7
+echo Version: 2014.12.01
echo AgentOS: aix
echo '<<<df>>>'
@@ -189,6 +217,13 @@ then
./$skript
fi
done
+
+ # Call some plugins only every X'th second
+ for skript in [1-9]*/* ; do
+ if [ -x "$skript" ] ; then
+ run_cached plugins_${skript//\//\#} ${skript%/*} "$skript"
+ fi
+ done
fi
@@ -201,6 +236,7 @@ then
./$skript
fi
done
+
fi
# MK's Remote Plugin Executor
@@ -215,3 +251,6 @@ then
echo "(${PLUGIN##*/}) $descr $? $OUTPUT"
done
fi
+
+
+
Module: check_mk
Branch: master
Commit: d6c1a3df413b8c2689a35c98b1d4097483833ddb
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d6c1a3df413b8c…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Dec 4 15:27:44 2014 +0100
#1648 New installations have the service to check for unchecked services enabled by default
The former known service "Check_MK inventory" is now enabled by default for all new
installations. For existing installations there is nothing changed automatically.
It will also be renamed to "Check_MK Discovery" with this release.
---
.werks/1648 | 11 +++++++++++
ChangeLog | 7 ++++---
web/htdocs/wato.py | 3 ++-
3 files changed, 17 insertions(+), 4 deletions(-)
diff --git a/.werks/1648 b/.werks/1648
new file mode 100644
index 0000000..b7ad771
--- /dev/null
+++ b/.werks/1648
@@ -0,0 +1,11 @@
+Title: New installations have the service to check for unchecked services enabled by default
+Level: 1
+Component: core
+Compatible: compat
+Version: 1.2.5i7
+Date: 1417702829
+Class: feature
+
+The former known service "Check_MK inventory" is now enabled by default for all new
+installations. For existing installations there is nothing changed automatically.
+It will also be renamed to "Check_MK Discovery" with this release.
diff --git a/ChangeLog b/ChangeLog
index dbb37c0..0c7a0ac 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
1.2.5i7:
Core & Setup:
* 1439 mk-job: now also available on solaris systems...
+ * 1648 New installations have the service to check for unchecked services enabled by default...
* 1483 FIX: Savely replace illegal vertical bars in check plugin output...
* 1431 FIX: windows_agent: fixed error on parsing unicode formatted logfiles...
* 1545 FIX: Check_MK Inventory check is now resulting in correct state on duplicate host
@@ -48,11 +49,11 @@
* 1616 drbd: Added support for Ahead/Behind cluster states (DRBD >= 8.3.10)
* 1626 Renamed service descriptions of filesystem, process and logwatch checks...
* 1627 megaraid_ldisks: Warn if current cache or write policy differs from logical drive default policy...
- * 1597 bluecat_dhcp, bluecat_dns: Checks can now be used in Check_MK Cluster Mode
* 1629 check_mk_agent.freebsd: several new features and improvements, now only use statgrab...
* 1630 smart: update in plugin that also outputs information about disks attached to a MegaRAID controller...
* 1631 juniper_bgp_state: check now detects and supports more differen device models...
* 1645 Added basic kernel section to FreeBSD agent...
+ * 1597 bluecat_dhcp, bluecat_dns: Checks can now be used in Check_MK Cluster Mode
* 1478 FIX: kernel.util, statgrab_cpu: fix computation of utilization...
* 1480 FIX: brocade_vdx_status: disable check on some devices that do not support it...
* 1485 FIX: dell_om_disks, dell_om_esmlog, dell_om_mem, dell_om_processors, dell_om_sensors: detect more devices...
@@ -95,12 +96,12 @@
* 1617 FIX: lnx_if: Deal with data provided by cluster host
* 1618 FIX: ad_replication: Output of timeLastSuccess and timeLastFailure was inverted...
* 1623 FIX: hp_proliant_mem: support for some yet unhandled status situations
- * 1598 FIX: bluecat_dhcp: Check is not longer found in inventory if dhcp service is not activated
* 1640 FIX: check_jolokia_metrics_serv_req: Fixed wrong levels shown for upper thresholds
- * 1453 FIX: drbd.stats: tried to send non-numeric write order parameter to rrd...
* 1632 FIX: hr_fs: remove ugly "mounted on:" information appearing on Juniper devices
* 1646 FIX: hyperv_vms: Plugin garbles following plugin output when no VMs exist...
* 1647 FIX: agent_ipmi: Check_MK service gets critical now when ipmi-sensors command fails
+ * 1453 FIX: drbd.stats: tried to send non-numeric write order parameter to rrd...
+ * 1598 FIX: bluecat_dhcp: Check is not longer found in inventory if dhcp service is not activated
Multisite:
* 1508 Allow input of plugin output and perfdata when faking check results...
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 76ff350..5e256f4 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -15847,7 +15847,7 @@ def create_sample_config():
# Global configuration settings
save_configuration_settings({
- "use_new_descriptions_for" : [
+ "use_new_descriptions_for": [
"df",
"df_netapp",
"df_netapp32",
@@ -15860,6 +15860,7 @@ def create_sample_config():
"wmic_process",
"logwatch",
],
+ "inventory_check_interval": 120,
})
Module: check_mk
Branch: master
Commit: cc4b5e004fab2259db104724832dbc0248ee9c17
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=cc4b5e004fab22…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Dec 4 15:55:31 2014 +0100
#1649 FIX Check_MK inventory service has been renamed to Check_MK Discovery
For new installations (using WATO), the former "Check_MK inventory" service
has been renamed to "Check_MK Discovery". This has been done to clarify
the difference between the service discovery (find new things to monitor)
and the hw/sw inventory.
Existing installations are not affected by default, but can switch to the new
name by checking "Monitor hosts for unchecked services (Check_MK inventory)"
in the Global Setting "Use new service descriptions".
---
.werks/1649 | 16 ++++++++++++++++
ChangeLog | 1 +
checkman/hp_blade_blades | 2 +-
checkman/hp_blade_fan | 2 +-
checkman/hp_blade_manager | 2 +-
checkman/hp_blade_psu | 2 +-
doc/agents/README.OpenVMS | 2 +-
doc/treasures/inventory_helper.sh | 6 +++++-
modules/automation.py | 6 +++++-
modules/check_mk.py | 16 +++++++++++-----
web/htdocs/wato.py | 15 +++++++++------
web/plugins/views/sorters.py | 6 ++++--
web/plugins/wato/check_mk_configuration.py | 1 +
web/plugins/wato/check_parameters.py | 4 ++--
14 files changed, 59 insertions(+), 22 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=cc4b5e004f…