Module: check_mk
Branch: master
Commit: 4d2f96b995a9e6436337e11e659d1416683d3e3d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4d2f96b995a9e6…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Jul 31 09:57:51 2012 +0200
FreeBSD Agent: Added swapinfo call to mem section to make mem check work again
---
ChangeLog | 1 +
agents/check_mk_agent.freebsd | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 71a8917..09e3b6b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -32,6 +32,7 @@
* cbl_airlaser.status: New Check for CBL Airlaser IP1000 laser bridge.
* df, hr_fs, etc.: Filesystem checks now support grouping (pools)
Please refer to the check manpage of df for details
+ * FreeBSD Agent: Added swapinfo call to mem section to make mem check work again
WATO:
* Added permission to control the "clone host" feature in WATO
diff --git a/agents/check_mk_agent.freebsd b/agents/check_mk_agent.freebsd
index aabc993..17bcebb 100755
--- a/agents/check_mk_agent.freebsd
+++ b/agents/check_mk_agent.freebsd
@@ -124,6 +124,7 @@ if [ -x /usr/local/bin/muse ]
echo '<<<mem>>>'
# yes, i don't know sed well.
muse -k 2>/dev/null | sed 's/Total/MemTotal/' | sed
's/Free/MemFree/'
+ swapinfo -k 1K | tail -n 1 | awk '{ print "SwapTotal: "$2"
kB\nSwapFree: "$4" kB" }'
fi