Module: check_mk
Branch: master
Commit: a01c7a5dc3a83ec03a91dbaf00c4b2017fcbdc92
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a01c7a5dc3a83e…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Fri Jul 13 16:49:49 2012 +0200
Fixed setting of Downtimes/ Ack when using Nagstamon or similar
---
web/htdocs/views.py | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/web/htdocs/views.py b/web/htdocs/views.py
index 0ba799d..64c84fd 100644
--- a/web/htdocs/views.py
+++ b/web/htdocs/views.py
@@ -1349,6 +1349,15 @@ def render_view(view, rows, datasource, group_painters, painters,
elif 'C' in display_options: # (*not* display open, if checkboxes are currently shown)
show_command_form(False, datasource)
+
+ # Also execute commands in cases without command form (needed for Python-
+ # web service e.g. for NagStaMon)
+ elif len(rows) > 0 and config.may("general.act") \
+ and html.do_actions() and html.transaction_valid():
+ try:
+ do_actions(view, datasource["infos"][0], rows, '')
+ except:
+ pass # currently no feed back on webservice
if 'O' in display_options and len(painter_options) > 0 and config.may("general.painter_options"):
show_painter_options(painter_options)
Module: check_mk
Branch: master
Commit: 0ec1b074e25cc54db60a88ef6b9d23cf2de7e430
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0ec1b074e25cc5…
Author: Florian Heigl <fh(a)mathias-kettner.de>
Date: Fri Jul 13 15:23:40 2012 +0200
hpux_tunables: Add check man page for monitoring of HP-UX kernel tunables
---
checkman/hpux_tunables | 64 ++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 64 insertions(+), 0 deletions(-)
diff --git a/checkman/hpux_tunables b/checkman/hpux_tunables
new file mode 100644
index 0000000..9617b4d
--- /dev/null
+++ b/checkman/hpux_tunables
@@ -0,0 +1,64 @@
+title: Check kernel tunables on HP-UX
+agents: hpux
+author: Florian Heigl <fh(a)mathias-kettner.de>
+license: GPL
+distribution: check_mk
+description:
+ This check allows for monitoring of admin-tunable kernel limits on HP-UX
+ systems that support the {"kcusage"} command. The command should be available
+ from HP-UX 11.20 to the current 11.31.
+
+ Typical tunables are the number of running processes or the number of
+ semaphores for applications using IPC.
+ The check can alert you if the usage of a certain tunable element exceeds
+ a configurable threshold, which is set as a percentage.
+
+ The supported tunables are:
+ Number of processes (npoc)
+ Number of threads (nkthread)
+ Number of open files (maxfiles_lim)
+ Number of IPC Semaphore IDs (semmni)
+ Number of IPC Semaphores (semmns)
+ Number of shared memory segments (semmns)
+
+
+item:
+ {None}
+
+inventory:
+ {hpux_tunables} generates one check per host for each of the supported
+ tunables.
+
+examples:
+ # Set the alert levels for the process table to 50% WARN, 60% CRIT:
+ hpux_tunables_nproc_default_levels = (50.0, 60.0)
+
+ checks = [
+ # Enforce a check on all HP-UX machines for an alert at 16000 open
+ # processes
+ (["hp"], ALL_HOSTS, "hpux_tunables.maxfiles_lim", (16000, 20000)),
+ ]
+
+perfdata:
+ The name of the tunable along with it's usage, threshold and warning /
+ crit levels.
+
+[parameters]
+warn(float): Warning percentage for the tunables allocation
+crit(float): Critical percentage for the tunables allocation
+
+
+[configuration]:
+ Generally the checks only track the usage and a limit has to be defined
+ using check_parameters.
+ The checks {nproc} and {nkthread} come with pre-configured default levels:
+
+hpux_tunables_nproc_default_levels (float, float):
+ The percentage of running processes compared to the kernel limit for running
+ processes.
+
+hpux_tunables_nkthread_default_levels (float, float):
+ The percentage of threads of running processes compared to the kernel limit
+ for running threads.
+
+
Module: check_mk
Branch: master
Commit: 4212a3f5eeb443b3a653f25c471c2f6f157d769d
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4212a3f5eeb443…
Author: Florian Heigl <fh(a)mathias-kettner.de>
Date: Thu Jul 12 18:23:41 2012 +0200
check_mk-tsm_stagingpools.php
tsm_stagingpools: Add PNP graph
---
pnp-templates/check_mk-tsm_stagingpools.php | 47 +++++++++++++++++++++++++++
1 files changed, 47 insertions(+), 0 deletions(-)
diff --git a/pnp-templates/check_mk-tsm_stagingpools.php b/pnp-templates/check_mk-tsm_stagingpools.php
new file mode 100644
index 0000000..eeb77a6
--- /dev/null
+++ b/pnp-templates/check_mk-tsm_stagingpools.php
@@ -0,0 +1,47 @@
+<?php
+# +------------------------------------------------------------------+
+# | ____ _ _ __ __ _ __ |
+# | / ___| |__ ___ ___| | __ | \/ | |/ / |
+# | | | | '_ \ / _ \/ __| |/ / | |\/| | ' / |
+# | | |___| | | | __/ (__| < | | | | . \ |
+# | \____|_| |_|\___|\___|_|\_\___|_| |_|_|\_\ |
+# | |
+# | Copyright Mathias Kettner 2012 mk(a)mathias-kettner.de |
+# +------------------------------------------------------------------+
+#
+# This file is part of Check_MK.
+# The official homepage is at http://mathias-kettner.de/check_mk.
+#
+# check_mk is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation in version 2. check_mk is distributed
+# in the hope that it will be useful, but WITHOUT ANY WARRANTY; with-
+# out even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE. See the GNU General Public License for more de-
+# ails. You should have received a copy of the GNU General Public
+# License along with GNU Make; see the file COPYING. If not, write
+# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+# Boston, MA 02110-1301 USA.
+
+# bisect the pool name from service description, this didn't work
+#$parts = explode(" ", $servicedesc);
+#$pool = $parts[1];
+
+$opt[1] = "-l0 --vertical-label \"Tapes\" --title \"Occupancy of pool\" ";
+
+
+
+$def[1] = "DEF:tapes=$RRDFILE[1]:$DS[1]:MAX ";
+$def[1] .= "DEF:free=$RRDFILE[2]:$DS[1]:MAX ";
+$def[1] .= "DEF:util=$RRDFILE[3]:$DS[1]:MAX ";
+
+
+$def[1] .= "AREA:tapes#cd853f:\"Tapes in Pool \" ";
+$def[1] .= "AREA:free#a000ff:\"Free Tapes \" ";
+$def[1] .= "LINE:util#000000:\"Utilization \" ";
+# FIXME:
+# add warn/crit lines
+
+
+
+?>