[Xymon] Convert bb-mdstat for Variables XYMON
FreeSoftwareServers
freesoftwareservers at gmail.com
Thu Jul 21 23:40:41 CEST 2016
Hello XYMon Guru's!
I am trying to configure bb-mdstat found on
https://wiki.xymonton.org/doku.php/monitors:bb-mdstat , but all the
variables point to BB*** and it doesn't work, I think all the "scripting"
would work If I could just figure out how to set the variables correctly,
any chance we could get this updated for XYMON Variables.?
Testing :
donut at FileServer:/usr/lib/xymon/client/ext$ ./bb-mdstat.sh
./bb-mdstat.sh: 62: [: unexpected operator
BBHOME is not set... exiting
Manually set :
BBHOME=/usr/lib/xymon/client
donut at FileServer:/usr/lib/xymon/client/ext$ ./bb-mdstat.sh
./bb-mdstat.sh: 62: [: unexpected operator
*** LOADING HOBBITCLIENT.CFG ***
./bb-mdstat.sh: 88: .: Can't open /usr/lib/xymon/client/etc/hobbitclient.cfg
Manually set :
if [ ! -d "$BBTMP" ] ; then # GET DEFINITIONS IF NEEDED
echo "*** LOADING HOBBITCLIENT.CFG ***"
. $BBHOME/etc/xymonclient.cfg # INCLUDE STANDARD
DEFINITIONS
Fi
And this is where I draw a blank.
root at FileServer:/usr/lib/xymon/client/ext# ./bb-mdstat.sh
./bb-mdstat.sh: 62: [: unexpected operator
*** LOADING HOBBITCLIENT.CFG ***
./bb-mdstat.sh: 3: /usr/lib/xymon/client/etc/xymonclient.cfg: include: not
found
./bb-mdstat.sh: 4: /usr/lib/xymon/client/etc/xymonclient.cfg: include: not
found
./bb-mdstat.sh: 17: /usr/lib/xymon/client/etc/xymonclient.cfg: include: not
found
./bb-mdstat.sh: 135: ./bb-mdstat.sh: [[: not found
./bb-mdstat.sh: 135: ./bb-mdstat.sh: raid5: not found
./bb-mdstat.sh: 177: [: :
blocks
devices:: unexpected operator
./bb-mdstat.sh: 177: [: :
blocks
devices:: unexpected operator
Xymon version 4.3.7
Usage: /usr/lib/xymon/client/bin/xymon [--debug] [--merge]
[--proxy=http://ip.of.the.proxy:port/] RECIPIENT DATA
RECIPIENT: IP-address, hostname or URL
DATA: Message to send, or "-" to read from stdin
My mdadm config, regular RAID5 only one mdadm, and its md0.
root at FileServer:/usr/lib/xymon/client/ext# cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4]
[raid10]
md0 : active raid5 sdc1[4] sdb1[0] sde1[5] sdd1[3]
14650914816 blocks super 1.2 level 5, 512k chunk, algorithm 2 [4/4]
[UUUU]
unused devices: <none>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20160721/325a13a9/attachment.html>
More information about the Xymon
mailing list