GitLab Commit is coming up on August 3-4. Learn how to innovate together using GitLab, the DevOps platform. Register for free: gitlabcommitvirtual2021.com

README.md 1.08 KB
Newer Older
Alasdair Keyes's avatar
Alasdair Keyes committed
1
2
# nagios-plugin-check_puppet_run
Nagios plugin to monitor puppet run results and last run time
Alasdair Keyes's avatar
Alasdair Keyes committed
3
4
5
6
7
8
9
10
11
12
13
14

## Dependencies

* Getopt::Long Perl module
* Nagios::Plugin Perl Module
* YAML Perl Module

## Installation

* Copy the check_puppet_run to your nagios plugin folder and set executable
* Add a line to your nrpe.cfg file

15
    command[check_puppet_run]=sudo /usr/lib/nagios/plugins/check_puppet_run
Alasdair Keyes's avatar
Alasdair Keyes committed
16

17
18
19
20
21
* By default, the location of the state file is not readable by unprivileged users, add the following to your sudo config

    nagios    ALL=(ALL) NOPASSWD:/usr/lib/nagios/plugins/check_puppet_run


Alasdair Keyes's avatar
Alasdair Keyes committed
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
## Examples

* Run with the --help argument to see all options

    check_puppet_run --help

* Run a custom path to the Puppet statefile

    check_puppet_run --statefile=/path/to/puppet/statefile.yaml

* Run with longer timeout before reporting an error

    check_puppet_run --runtimeout=60

## Future Work

None planned

## Site 

42
https://gitlab.com/alasdairkeyes/nagios-plugin-check_btc_miner
Alasdair Keyes's avatar
Alasdair Keyes committed
43
44
45
46
47
48
49
50

## Author

* Alasdair Keyes - https://akeyes.co.uk/

## License

Released under GPL V3 - See included license file.