Module: check_mk
Branch: master
Commit: df912958360624b04ee0163ade2c804f39a6721e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=df912958360624…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Apr 28 09:37:23 2015 +0200
#2245 AIX-Agent: Added support for the uptime check
---
.werks/2245 | 9 +++++++++
ChangeLog | 1 +
agents/check_mk_agent.aix | 4 ++++
3 files changed, 14 insertions(+)
diff --git a/.werks/2245 b/.werks/2245
new file mode 100644
index 0000000..dfc9446
--- /dev/null
+++ b/.werks/2245
@@ -0,0 +1,9 @@
+Title: AIX-Agent: Added support for the uptime check
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.7i1
+Date: 1430206627
+Class: feature
+
+
diff --git a/ChangeLog b/ChangeLog
index 0e6940a..cba4d20 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -170,6 +170,7 @@
* 2211 netapp_api_disk.summary: output physical size of broken disks as an additional
information
* 1242 enterasys_powersupply: It's now possible to choice which redundancy state
treated as OK...
* 2214 icom_repeater: New set of checks for Icom repeaters...
+ * 2245 AIX-Agent: Added support for the uptime check
* 1457 FIX: logins: new check renamed from "users" check...
NOTE: Please refer to the migration notes!
* 1762 FIX: lnx_thermal: Now ignoring trip points with level 0...
diff --git a/agents/check_mk_agent.aix b/agents/check_mk_agent.aix
index c8394b3..ee10f7f 100755
--- a/agents/check_mk_agent.aix
+++ b/agents/check_mk_agent.aix
@@ -216,6 +216,10 @@ then
fi
+echo '<<<uptime>>>'
+uptime | awk '{print $3,$5}' | tr ":" " " | sed
's/,//' | awk
'{a=86400*int($1)+3600*int($2)+60*int($3);printf("%d\n",a)}'
+
+
if cd $PLUGINSDIR 2>/dev/null
then
for skript in $(ls)