-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 8529d78
Showing
233 changed files
with
48,907 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
PKGNAME=nagios-plugins-globus | ||
SPECFILE=${PKGNAME}.spec | ||
FILES=Makefile ${SPECFILE} src/* | ||
|
||
PKGVERSION=$(shell grep -s '^Version:' $(SPECFILE) | sed -e 's/Version: *//') | ||
|
||
dist: | ||
rm -rf dist | ||
mkdir -p dist/${PKGNAME}-${PKGVERSION} | ||
cp -pr ${FILES} dist/${PKGNAME}-${PKGVERSION}/. | ||
cd dist ; tar cfz ../${PKGNAME}-${PKGVERSION}.tar.gz ${PKGNAME}-${PKGVERSION} | ||
rm -rf dist | ||
|
||
sources: dist | ||
|
||
clean: | ||
rm -rf ${PKGNAME}-${PKGVERSION}.tar.gz | ||
rm -rf dist |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# | ||
# check_logfiles configuration for /var/log/ncg.log | ||
# | ||
|
||
$seekfilesdir = "/var/cache/check_logfiles"; | ||
$options = "report=long"; | ||
|
||
@searches = ({ | ||
tag => 'ncg', | ||
logfile => '/var/log/ncg.log', | ||
type => 'rotating', | ||
rotation => 'loglog0gzlog1gz', | ||
criticalpatterns => ['ERROR:', 'Error:'], | ||
warningpatterns => 'WARNING', | ||
options => 'noprotocol,noperfdata', | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# This is an example of configuration for VO | ||
# All information comes from ATP | ||
|
||
# set global variables | ||
NAGIOS_SERVER = nagios.srce.hr | ||
MYPROXY_SERVER = proxy.srce.hr | ||
PROBES_TYPE=local | ||
NRPE_UI = | ||
NAGIOS_ADMIN = root@localhost | ||
VO = cms | ||
ATP_ROOT_URL = http://samnagdev001.cern.ch/atp_test | ||
|
||
<NCG::SiteSet> | ||
<ATP> | ||
FEED_TYPE=vo | ||
ATP_ROOT_URL=$ATP_ROOT_URL | ||
VO=$VO | ||
</ATP> | ||
</NCG::SiteSet> | ||
|
||
<NCG::SiteInfo> | ||
<ATP> | ||
FEED_TYPE=vo | ||
ATP_ROOT_URL=$ATP_ROOT_URL | ||
VO=$VO | ||
</ATP> | ||
</NCG::SiteInfo> | ||
|
||
<NCG::LocalMetricsAttrs> | ||
<Active> | ||
LOCAL_METRIC_STORE = 1 | ||
</Active> | ||
</NCG::LocalMetricsAttrs> | ||
|
||
<NCG::LocalMetrics> | ||
<Hash> | ||
PROFILE = vo | ||
</Hash> | ||
</NCG::LocalMetrics> | ||
|
||
<NCG::ConfigGen> | ||
<Nagios> | ||
MYPROXY_NAME = NagiosRetrieve-nagios.srce.hr | ||
MYPROXY_USER = nagios | ||
TEMPLATES_DIR = /usr/share/grid-monitoring/config-gen/nagios | ||
OUTPUT_DIR = /etc/nagios/wlcg.d | ||
NRPE_OUTPUT_DIR = /etc/nagios/nrpe/ | ||
NAGIOS_ROLE = ngi | ||
INCLUDE_EMPTY_HOSTS = 0 | ||
ENABLE_NOTIFICATIONS = 0 | ||
</Nagios> | ||
</NCG::ConfigGen> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
# Configuration uses Apache-like format | ||
# as defined by Perl module Config::General. | ||
# For further details see: | ||
# http://search.cpan.org/dist/Config-General/ | ||
|
||
# Global variables which can be used in module | ||
# configuration (e.g. LDAP_ADDRESS=$BDII). | ||
# Variables in curly brackets are environment | ||
# variables. | ||
|
||
SITENAME = ${SITE_NAME} | ||
MAIN_DB_FILE=/etc/ncg/ncg.localdb | ||
|
||
MYPROXY_SERVER=${MYPROXY_SERVER} | ||
NAGIOS_SERVER=nagios.my.com | ||
PROBES_TYPE=all | ||
|
||
# Set following option if you wish to receive | ||
# email alerts for Nagios internal checks | ||
# default root@localhost | ||
# [email protected] | ||
|
||
# Set following option if remote gLite UI node is | ||
# used. | ||
# NRPE_UI=nrpe.srce.hr | ||
|
||
# list of VOs for which you wish to run checks | ||
VO = dteam | ||
|
||
# | ||
# Some optional config | ||
# | ||
#BDII = bdii.srce.hr | ||
#GLITE_VERSION=3.1.0 | ||
|
||
# Configuration of individual NCG modules. | ||
# First level block represents abstract module. | ||
|
||
<NCG::ConfigGen> | ||
|
||
# Second level block defines specific module | ||
# parameters passed at invocation. | ||
|
||
<Nagios> | ||
# pick global values | ||
GLITE_VERSION=$GLITE_VERSION | ||
|
||
# Directories used by NCG | ||
TEMPLATES_DIR = /usr/share/grid-monitoring/config-gen/nagios | ||
OUTPUT_DIR = /etc/nagios/wlcg.d | ||
NRPE_OUTPUT_DIR = /etc/nagios/nrpe/ | ||
RESOURCES_OUTPUT_DIR = /etc/nagios | ||
|
||
# Modify following to values used for creating MyProxy | ||
# credential with command myproxy-init | ||
# myproxy-init argument -k | ||
MYPROXY_NAME=NagiosRetrieve | ||
# myproxy-init argument -l | ||
MYPROXY_USER=nagios | ||
</Nagios> | ||
|
||
</NCG::ConfigGen> | ||
|
||
|
||
# NCG modules for gathering site information | ||
<NCG::SiteInfo> | ||
|
||
# Example of simple module with no parameters. | ||
<SAM/> | ||
|
||
<LDAP> | ||
LDAP_ADDRESS=$BDII | ||
ADD_HOSTS=0 | ||
</LDAP> | ||
|
||
<File> | ||
DB_FILE=$MAIN_DB_FILE | ||
</File> | ||
</NCG::SiteInfo> | ||
|
||
<NCG::LocalMetricsAttrs> | ||
<LDAP> | ||
LDAP_ADDRESS=$BDII | ||
</LDAP> | ||
|
||
<Active> | ||
GLITE_VERSION=$GLITE_VERSION | ||
|
||
# Following options filter SAM tests | ||
# | ||
# Option SAM_INCLUDE_ALL to 1 includes all SAM results | ||
# by default only critical ar included | ||
# SAM_INCLUDE_ALL=1 | ||
# | ||
# Option SAM_VOS filters VOs for which SAM results | ||
# are gathered | ||
# WARNING: VO names are case sensitive, fetch available | ||
# VOs with following command (from Nagios server): | ||
# wget -q -O - http://lcg-sam.cern.ch:8080/same-pi/vo_names.jsp \ | ||
# | xmllint --format - | ||
# SAM_VOS=OPS | ||
</Active> | ||
|
||
<File> | ||
DB_FILE=$MAIN_DB_FILE | ||
</File> | ||
</NCG::LocalMetricsAttrs> | ||
|
||
<NCG::LocalRules> | ||
<File> | ||
DB_FILE=$MAIN_DB_FILE | ||
</File> | ||
</NCG::LocalRules> | ||
|
||
<NCG::LocalMetrics> | ||
<File> | ||
DB_FILE=$MAIN_DB_FILE | ||
</File> | ||
|
||
<Hash/> | ||
</NCG::LocalMetrics> | ||
|
||
<NCG::RemoteMetrics> | ||
<SAM> | ||
SAM_INCLUDE_ALL=$SAM_INCLUDE_ALL | ||
SAM_VOS=$SAM_VOS | ||
SAM_ROOT_URL=$SAM_ROOT_URL | ||
</SAM> | ||
|
||
<NPM/> | ||
</NCG::RemoteMetrics> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,141 @@ | ||
# Configuration uses Apache-like format | ||
# as defined by Perl module Config::General. | ||
# For further details see: | ||
# http://search.cpan.org/dist/Config-General/ | ||
|
||
# Global variables which can be used in module | ||
# configuration (e.g. LDAP_ADDRESS=$BDII). | ||
# Variables in curly brackets are environment | ||
# variables. | ||
|
||
SITENAME = ${SITE_NAME} | ||
#BDII = bdii.srce.hr | ||
# TODO: this value should be put before production: | ||
#MAIN_DB_FILE=/etc/ncg/ncg.localdb | ||
MAIN_DB_FILE=./ncg.localdb | ||
#GLITE_VERSION=3.1.0 | ||
|
||
# set your gocdb username & password here | ||
# modules will pick up global values | ||
GOCDB_USER=gocdbusername | ||
GOCDB_PASSWORD=gocdbpassword | ||
|
||
# Configuration of individual NCG modules. | ||
# First level block represents abstract module. | ||
|
||
<NCG::ConfigGen> | ||
|
||
# Second level block defines specific module | ||
# parameters passed at invocation. | ||
|
||
<Nagios> | ||
MYPROXY_SERVER=${MYPROXY_SERVER} | ||
GLITE_VERSION=$GLITE_VERSION | ||
PROBES_TYPE=all | ||
|
||
# TODO: these options should be commented out | ||
# before production | ||
# NRPE_UI=nrpe.srce.hr | ||
TEMPLATES_DIR = ./templates | ||
OUTPUT_DIR = ./wlcg.d | ||
NRPE_OUTPUT_DIR = . | ||
|
||
</Nagios> | ||
|
||
</NCG::ConfigGen> | ||
|
||
# NCG module for generating config for remote Nagioses | ||
<NCG::ConfigPublish> | ||
<ConfigCache> | ||
VO = ops,dteam | ||
NAGIOS_ROLE = site | ||
</ConfigCache> | ||
</NCG::ConfigPublish> | ||
|
||
# NCG module for gathering site contacts. | ||
# This data is used for AuthZ on Nagios web interface | ||
<NCG::SiteContacts> | ||
# This will fetch users from GOCDB | ||
# Currently only site admins & security officers | ||
<GOCDB> | ||
GOCDB_USER=$GOCDB_USER | ||
GOCDB_PASSWORD=$GOCDB_PASSWORD | ||
</GOCDB> | ||
</NCG::SiteContacts> | ||
|
||
# NCG modules for gathering site information | ||
<NCG::SiteInfo> | ||
<GOCDB> | ||
GOCDB_USER=$GOCDB_USER | ||
GOCDB_PASSWORD=$GOCDB_PASSWORD | ||
</GOCDB> | ||
|
||
# Example of simple module with no parameters. | ||
<SAM/> | ||
|
||
<LDAP> | ||
LDAP_ADDRESS=$BDII | ||
ADD_HOSTS=0 | ||
</LDAP> | ||
|
||
<File> | ||
DB_FILE=$MAIN_DB_FILE | ||
</File> | ||
|
||
# Individual modules can be invoked multiple times | ||
# with different parameters. | ||
# Examples: | ||
#<LDAP> | ||
# LDAP_ADDRESS=alt-bdii.srce.hr | ||
# ADD_HOSTS=1 | ||
#</LDAP> | ||
#<File> | ||
# DB_FILE='~/site.def | ||
#</File> | ||
|
||
</NCG::SiteInfo> | ||
|
||
<NCG::LocalMetricsAttrs> | ||
<LDAP> | ||
LDAP_ADDRESS=$BDII | ||
</LDAP> | ||
|
||
<Active> | ||
GLITE_VERSION=$GLITE_VERSION | ||
</Active> | ||
|
||
<File> | ||
DB_FILE=$MAIN_DB_FILE | ||
</File> | ||
</NCG::LocalMetricsAttrs> | ||
|
||
<NCG::LocalRules> | ||
<File> | ||
DB_FILE=$MAIN_DB_FILE | ||
</File> | ||
</NCG::LocalRules> | ||
|
||
<NCG::LocalMetrics> | ||
<File> | ||
DB_FILE=$MAIN_DB_FILE | ||
</File> | ||
|
||
<Hash> | ||
PROFILE = site | ||
</Hash> | ||
</NCG::LocalMetrics> | ||
|
||
<NCG::RemoteMetrics> | ||
# Values of parameters will be taken from | ||
# configuration of NCG::ConfigGen::Nagios | ||
<SAM> | ||
SAM_INCLUDE_ALL=$SAM_INCLUDE_ALL | ||
SAM_VOS=$SAM_VOS | ||
SAM_ROOT_URL=$SAM_ROOT_URL | ||
</SAM> | ||
|
||
<NPM/> | ||
|
||
<Nagios/> | ||
</NCG::RemoteMetrics> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# | ||
# Local Rules file to modify NCG configuration | ||
# | ||
|
Oops, something went wrong.