diff options
author | Britney Fransen <brfransen@gmail.com> | 2017-01-24 16:06:22 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2017-01-24 16:06:22 (GMT) |
commit | 8a19439495bce7280affce7919ebced7880bc0b6 (patch) | |
tree | 9cf970bb1a68b30a3a137dfb73ec65f4bc82d7ae /abs/core/xymon/hobbit-mem-myth.sh | |
parent | f0c3889c3d12e1c2b81f17c0c9e54257e2b3d00e (diff) | |
download | linhes_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.sh | 15 |
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 - - - - |