[Nagios] Configuration basique de Nagios et NRPE

Ignore-this: 9037c842a8158d2e297744411c93efb

darcs-hash:20120421013116-ab199-9b58f0da4a257f367a318e58fd1be1baa0aab535.gz
This commit is contained in:
becue 2012-04-21 03:31:16 +02:00
parent 45cc53257e
commit 5e4ea3e846
3 changed files with 51 additions and 0 deletions

6
Bundler/nagios.xml Normal file
View file

@ -0,0 +1,6 @@
<Bundle name="nagios" version="2.0">
<Service name="nagios-nrpe-server"/>
<Package name="nagios-nrpe-server"/>
<Package name="nagios-plugins"/>
<ConfigFile name="/etc/nagios/nrpe.cfg"/>
</Bundle>

View file

@ -407,6 +407,7 @@
<Bundle name="monit"/>
<Bundle name="scripts"/>
<Bundle name="molly-guard"/>
<Bundle name="nagios"/>
</Group>
<Group name="crans-etch" profile="true" public="true"

View file

@ -0,0 +1,44 @@
# -*- coding: utf-8; mode: python -*-
include("ip")
info["owner"] = "root"
info["group"] = "root"
header("""
Fichier de configuration de NRPE, client Nagios.
Pour des informations détaillées, consulter
http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf
http://wiki.crans.org/CransTechnique/ConfigurationNagios
""")
@# NRPE Config
@
@log_facility=daemon
@pid_file=/var/run/nagios/nrpe.pid
@server_port=5666
%server_address = admip()
@nrpe_user=nagios
@nrpe_group=nagios
@allowed_hosts=10.231.136.81
@
@# Autorise le client NRPE à passer des commentaires
@dont_blame_nrpe=1
@
@# Prefix commands
@# command_prefix=/usr/bin/sudo
@
@# Activate debug with debug=1
@debug=0
@
@command_timeout=60
@
@connection_timeout=300
@
@command[check_users]=/usr/lib/nagios/plugins/check_users -w $ARG1$ -c $ARG2$
@command[check_load]=/usr/lib/nagios/plugins/check_load -w $ARG1$ -c $ARG2$
@command[check_all_disks]=/usr/lib/nagios/plugins/check_disk -w $ARG1$ -c $ARG2$
@command[check_procs]=/usr/lib/nagios/plugins/check_procs -w $ARG1$ -c $ARG2$