...
Code Block | ||
---|---|---|
| ||
#Backup current NMIS code and config including models DATE=`date "+%Y-%m-%d-%H%M"` cd /usr/local/nmis8 tar cvf ~/nmis8-backup-$DATE.tar ./admin ./bin ./cgi-bin ./conf ./install ./lib ./menu ./mibs ./models #Make sure NMIS is working before you patch it. /usr/local/nmis8/bin/nmis.pl type=collect debug=true node=<node to test> #Get CP working right. (no prompts) unalias cp #Set NMIS version nmisver=8.4.2g #Unarchive the NMIS tarball cd ~ tar xvf nmis-8.4.1g$nmisver.tar.gz mkdir /usr/local/nmis8/models-install # Patch the Code Base cp nmis8.4.1gnmis$nmisver/admin/* /usr/local/nmis8/admin cp nmis8.4.1gnmis$nmisver/bin/* /usr/local/nmis8/bin cp nmis8.4.1gnmis$nmisver/cgi-bin/* /usr/local/nmis8/cgi-bin cp -r nmis8.4.1gnmis$nmisver/mibs/* /usr/local/nmis8/mibs cp -r nmis8.4.1gnmis$nmisver/install/* /usr/local/nmis8/install cp -r nmis8.4.1gnmis$nmisver/lib/* /usr/local/nmis8/lib cp -r nmis8.4.1gnmis$nmisver/menu/* /usr/local/nmis8/menu cp nmis8.4.1gnmis$nmisver/models-install/* /usr/local/nmis8/models-install |
...
Code Block |
---|
MAILTO=WhoeverYouAre@yourdomain.tld ###################################################### # NMIS8 Config ###################################################### # Run Statistics Collection */5 * * * * /usr/local/nmis8/bin/nmis.pl type=collect mthread=true maxthreads=10 ###################################################### # Run Summary Update every 2 minutes */2 * * * * /usr/local/nmis8/bin/nmis.pl type=summary ##################################################### # Run the interfaces 4 times an hour with Thresholding on!!! # if threshold_poll_cycle is set to false, then enable cron based thresholding #*/15 * * * * nice /usr/local/nmis8/bin/nmis.pl type=threshold mthread=true maxthreads=10 ###################################################### # Run the update once a day 30 20 * * * nice /usr/local/nmis8/bin/nmis.pl type=update mthread=true maxthreads=10 ###################################################### # Check to rotate the logs 4am every day UTC 5 20 * * * /usr/sbin/logrotate /usr/local/nmis8/conf/logrotate.conf ################################################## # save this crontab every day 0 8 * * * crontab -l > /usr/local/nmis8/conf/crontab.root ######################################## # Run the Reports Weekly Monthly Daily # daily 0 0 * * * /usr/local/nmis8/bin/run-reports.pl day health 010 0 * * * /usr/local/nmis8/bin/run-reports.pl day top10 030 0 * * * /usr/local/nmis8/bin/run-reports.pl day outage 040 0 * * * /usr/local/nmis8/bin/run-reports.pl day response 045 0 * * * /usr/local/nmis8/bin/run-reports.pl day avail 050 0 * * * /usr/local/nmis8/bin/run-reports.pl day port # weekly 0 01 * * 0 /usr/local/nmis8/bin/run-reports.pl week health 010 01 * * 0 /usr/local/nmis8/bin/run-reports.pl week top10 030 01 * * 0 /usr/local/nmis8/bin/run-reports.pl week outage 040 01 * * 0 /usr/local/nmis8/bin/run-reports.pl week response 050 01 * * 0 /usr/local/nmis8/bin/run-reports.pl week avail # monthly 0 02 1 * * /usr/local/nmis8/bin/run-reports.pl month health 010 02 1 * * /usr/local/nmis8/bin/run-reports.pl month top10 030 02 1 * * /usr/local/nmis8/bin/run-reports.pl month outage 040 02 1 * * /usr/local/nmis8/bin/run-reports.pl month response 050 02 1 * * /usr/local/nmis8/bin/run-reports.pl month avail ########################################### |
...