diff options
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 - - - - |