https://github.com/evgeni/check_puppetdb_nodes
Nagios/Icinga plugin for checking the health of your Puppet nodes via PuppetDB
https://github.com/evgeni/check_puppetdb_nodes
Last synced: 5 months ago
JSON representation
Nagios/Icinga plugin for checking the health of your Puppet nodes via PuppetDB
- Host: GitHub
- URL: https://github.com/evgeni/check_puppetdb_nodes
- Owner: evgeni
- License: bsd-3-clause
- Archived: true
- Created: 2014-01-26T18:50:26.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2019-03-08T01:13:10.000Z (over 7 years ago)
- Last Synced: 2024-04-19T11:07:55.505Z (about 2 years ago)
- Language: Perl
- Size: 18.6 KB
- Stars: 15
- Watchers: 5
- Forks: 15
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
check_puppetdb_nodes
====================
Nagios/Icinga plugin for checking the health of your Puppet nodes via PuppetDB
## Icinga2 template
If you are using Icinga2, here is a command definition along with an example service that is automatically applied to all Linux hosts:
```
object CheckCommand "puppetdb-node" {
import "plugin-check-command"
command = [ LocalPluginDir + "/check_puppetdb_nodes" ]
arguments = {
"--hostname" = "$puppetdb_host$"
"--port" = "$puppetdb_port$"
"--node" = "$node_name$"
"--warning" = "$warn_lag$"
"--critical" = "$crit_lag$"
"--warnfails" = "$warn_fails$"
"--critfails" = "$crit_fails$"
}
vars.node_name = "$host_name$"
vars.warn_lag = 45
vars.crit_lag = 120
vars.warn_fails = 1
vars.crit_fails = 1
}
apply Service "puppet agent" {
import "generic-service"
check_command = "puppetdb-node"
assign where (host.address || host.address6) && host.vars.os == "Linux"
}
```