Update/Configure Nagios box
All is managed by Quattor.
If restart is needed.
sms get samnag011
sms set m other "restart" samnag011
# do the restart
sms set p other "production" gridmsg101
Actual update
cp /usr/lib/perl5/vendor_perl/5.8.5/NCG/LocalMetrics/Hash.pm /usr/lib/perl5/vendor_perl/5.8.5/NCG/LocalMetrics/Hash.pm.$(date +s%)
cp /etc/ncg/ncg.conf /etc/ncg/ncg.conf.$(date +s%)
cp /etc/ncg/ncg.localdb /etc/ncg/ncg.localdb.$(date +s%)
rm /etc/nospma
# check what will be done
spma_ncm_wrapper.sh --noaction
# update the node
spma_wrapper.sh
touch /etc/nospma
# configure
# to make ncm-ncg happy
rm /etc/lcg-quattor-site-info.def
# ncg.pl will be launched, so clean the current cash
rm /etc/nagios/wlcg.d/ -rf
ncm-ncd --conf yaim
--
KonstantinSkaburskas - 22-Apr-2010
Topic revision: r1 - 2010-04-22
- unknown