Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata

Install ARCConf Ubuntu

Install ARCConf CentOS

sudo visudo && sudo service sudo restart
xymon  ALL=(ALL)      NOPASSWD: /usr/StorMan/arcconf
sudo nano /usr/lib/xymon/client/ext/raid.sh
#!/bin/sh

COLUMN=raid				# THIS IS WHERE XYMON GETS COLUMN NAME
COLOR=green				# By default, everything is OK
MSG="/usr/StorMan/arcconf GETCONFIG 1 LD | grep Optimal" # The comamnd from var

#In this test, if var = empty = RED
var="$(sudo /usr/StorMan/arcconf GETCONFIG 1 LD 0 | grep Optimal)"
var1="$(sudo /usr/StorMan/arcconf GETCONFIG 1 LD 1 | grep Optimal)"
cmd="$(sudo /usr/StorMan/arcconf GETCONFIG 1)"


if [ -z "$var" ] || [ -z "$var1" ] 

then

COLOR=red
MSG="${MSG}
FAILED
"${cmd}"
"
else

MSG="${MSG}
SUCCESS
"${cmd}"
"
fi

# Leave the rest of script alone
# Tell Xymon about it
$XYMON $XYMSRV "status $MACHINE.$COLUMN $COLOR `date`

${MSG}
"

exit 0
sudo chown xymon:xymon /usr/lib/xymon/client/ext/raid.sh
sudo chmod 777 /usr/lib/xymon/client/ext/raid.sh
sudo nano /etc/xymon/clientlaunch.d/raid.cfg
[raid]
	ENVFILE $XYMONCLIENTHOME/etc/xymonclient.cfg
	CMD $XYMONCLIENTHOME/ext/raid.sh
	LOGFILE $XYMONCLIENTHOME/logs/raid.log
	INTERVAL 15m
/usr/lib/xymon/client/bin/xymoncmd /usr/lib/xymon/client/ext/raid.sh

Restart Service :

sudo service xymon-client restart

On Server :

sudo service xymon restart && sudo service apache2 restart
  • No labels