SAM Doc : SAM-Nagios Administrator Guide
This page last changed on Feb 18, 2014 by mbabik.
Initial setupDatabase backupIn case you would like to keep your existing history of tests results, you can run the following command to backup your database: mysqldump -u root --routines --events --triggers --password=<MYSQL_ADMIN_PASS> <DB_NAME> | gzip -c > /var/tmp/mrs_`date +%d-%m-%Y_%H:%M:%S`.gz Starting from UP-22, you can also run a yaim function for the same purpose. Note that automatic backups are no longer performed. /opt/glite/yaim/bin/yaim -r -s <SITE_INFO> -n sam_nagios -f config_mysql_backup NCG backupPlease review and backup any local configurations of NCG: $ /etc/ncg/ncg-localdb.d/ # you can ignore files generated via yaim $ /etc/ncg/ncg.localdb In case you have manually created/overridden any metric configurations then please backup your files in this directory as well: $ /etc/ncg-metric-config.d/* Host certificateInstall your host certificate to secure the Nagios portal. $ ls -l /etc/grid-security/host* -rw-r--r-- 1 root root 2286 Oct 28 19:26 /etc/grid-security/hostcert.pem -r-------- 1 root root 887 Oct 28 19:25 /etc/grid-security/hostkey.pem $ openssl x509 -in /etc/grid-security/hostcert.pem -noout -purpose | grep "SSL client" SSL client : Yes Disable SELinuxSELINUX needs to be disabled to proceed with the installation. If it is enabled, follow the instructions below and reboot the machine. $ setenforce 0 $ sed -i 's/^SELINUX=.*/SELINUX=disabled/' /etc/selinux/config Configuration of YUM RepositoriesScientific Linux v5 (this release was tested with 5.9): SL5 (note: newer package might be available) [sl-base] priority=2 exclude=perl-DBI mysql51* protect=1 [sl-security] priority=2 protect=1 exclude=perl-DBI mysql51* [sl-fastbugs] priority=2 protect=1 exclude=perl-DBI mysql51* SAM/EGI repository: SAM repository [egee-sa1] name=EGEE Packages from SA1 for CentOS5 ... gpgcheck=0 protect=1 priority=10 metadata_expire=1 Unified Middleware Distribution v2: UMD version 2 [UMD-2-base] protect=1 priority=40 [UMD-2-updates] protect=1 priority=40 EPEL: EPEL repository 5.4 [epel] enabled=1 priority=50 CA: EGI trust anchors repository Installation
ConfigurationA SAM-Nagios instance can be configured in different ways in order to monitor different sets of sites and services:
Validation
egi-trustanchors.repo (application/octet-stream)
|
Document generated by Confluence on Feb 27, 2014 10:19 |