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

Edit | Attach | Watch | Print version | History: r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r1 - 2010-04-22 - unknown
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright &© 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback