summaryrefslogtreecommitdiffstats
path: root/abs/core/xymon/hobbit-mem-myth.sh
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2017-01-24 16:06:22 (GMT)
committerBritney Fransen <brfransen@gmail.com>2017-01-24 16:06:22 (GMT)
commit8a19439495bce7280affce7919ebced7880bc0b6 (patch)
tree9cf970bb1a68b30a3a137dfb73ec65f4bc82d7ae /abs/core/xymon/hobbit-mem-myth.sh
parentf0c3889c3d12e1c2b81f17c0c9e54257e2b3d00e (diff)
downloadlinhes_pkgbuild-8a19439495bce7280affce7919ebced7880bc0b6.zip
linhes_pkgbuild-8a19439495bce7280affce7919ebced7880bc0b6.tar.gz
linhes_pkgbuild-8a19439495bce7280affce7919ebced7880bc0b6.tar.bz2
xymon: make memmbe & memmfe work again
update storage graph names
Diffstat (limited to 'abs/core/xymon/hobbit-mem-myth.sh')
-rw-r--r--abs/core/xymon/hobbit-mem-myth.sh15
1 files changed, 5 insertions, 10 deletions
diff --git a/abs/core/xymon/hobbit-mem-myth.sh b/abs/core/xymon/hobbit-mem-myth.sh
index 663e2e3..a373b84 100644
--- a/abs/core/xymon/hobbit-mem-myth.sh
+++ b/abs/core/xymon/hobbit-mem-myth.sh
@@ -1,9 +1,9 @@
#!/bin/bash
+
MBEPID=`ps -fU mythtv |grep mythbackend |grep -v runsv|grep -v grep|grep -v logger|awk '{print $2 }'`
MFEPID=`ps -ef|grep mythfrontend |grep -v runsv|grep -v grep|grep -v logger|grep -v mythfrontend-start|awk '{print $2 }'`
-
COLOR=green # By default, everything is OK
# Do whatever you need to test for something
@@ -19,13 +19,12 @@ MSGMBE="
"
# echo $MSGMBE
# Tell Hobbit about it
- $BB $BBDISP "data $MACHINE.memmbe $COLOR `date`
+ $BB $BBDISP "status $MACHINE.memmbe $COLOR `date`
${MSGMBE}
- "
+ "
fi
-
if [ ! x$MFEPID = x ]
@@ -40,13 +39,9 @@ MSGMBE="
"
# echo $MSGMBE
# Tell Hobbit about it
- $BB $BBDISP "data $MACHINE.memmfe $COLOR `date`
+ $BB $BBDISP "status $MACHINE.memmfe $COLOR `date`
${MSGMBE}
- "
+ "
fi
-
-
-
-