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
- Host: GitHub
- URL: https://github.com/marclop/nrpe-formula
- Owner: marclop
- License: mit
- Created: 2015-02-19T16:29:14.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-03-19T01:00:04.000Z (over 11 years ago)
- Last Synced: 2025-04-09T07:55:25.742Z (about 1 year ago)
- Language: HTML
- Size: 137 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```