An open API service indexing awesome lists of open source software.

https://github.com/marclop/nrpe-formula

SaltStack Formula for the NRPE server
https://github.com/marclop/nrpe-formula

Last synced: 5 months ago
JSON representation

SaltStack Formula for the NRPE server

Awesome Lists containing this project

README

          

# NRPE formula

Formula to set up the NRPE server. Made for the RHEL family exclusively

### Note

See the full [Salt Formulas installation and usage instructions](http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html)

Available states
================

- [nrpe](#nrpe)
- [nrpe.generic](#nrpegeneric)
- [nrpe.custom](#nrpecustom)
- [nrpe.mysql](#nrpecustom)

``nrpe``
------------
Installs the nrpe server from distribution packages, enables and starts the service by default. Additionally, sets the Allowed hosts if defined in pillar, the dont_blame_nrpe and include_dir policies:
```
nrpe:
conf_include_dir: /etc/nrpe.d/
conf_allowed_hosts: host1,host2,host3,host4
conf_blame_nrpe: 1
```

``nrpe.generic``
--------------------
Installs nrpe generic plugins checks
```
nrpe:
plugins:
- disk
- http
- load
```

``nrpe.custom``
--------------------
Installs custom nrpe plugins and configs placed in nrpe/files/(plugins|nrpe.d) (which will be placed in the directory defined in the pillar variable conf_include_dir):
```
nrpe:
conf_include_dir: /etc/nrpe.d/

```

``nrpe.mysql``
--------------------
Installs the nagios-plugins-mysql plugin, and sets check_mysql check. Galera boolean will enable basic galera healthchecks as defined in [Percona Blog](http://www.percona.com/blog/2013/10/31/percona-xtradb-cluster-galera-with-percona-monitoring-plugins/).Pillar explained bellow:
```
nrpe:
mysql:
hostname: # Required if mysql set in pillar MUST BE REPLACED BY MINION HOSTNAME (grains['host'])
user: nagios # Required if mysql set in pillar, user which will connect to MySQL instance
pass: nagios # OPTIONAL
galera: True # OPTIONAL
db: dbname # OPTIONAL
```