summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-05-07Merge branch 'no_alias_for_host' into 'master'Micah
stop defining an alias by default for hosts Since the "alias" attribute is special for puppet in that it needs to be a string that's unique throughout all of the resources on a given host's catalogue, we shouldn't always define an alias unless users really want them. This alias might (and did for some ppl) create a conflict when using a class that is named the same as $::hostname. We've just hit hit limitation on a Koumbit node. The alias attribute is legitimate in terms of nagios host attributes, but the name of the attribute clashes with the special-purpose attribute for puppet. So one might argue that the native puppet types are flawed, and they would be correct! but getting those types fixed would be a pain in the ass since they haven't been maintained for quite some time. See merge request !10
2015-05-07Merge branch 'nrpe_command_template' into 'master'Micah
added templates/nrpe/nrpe_command.erb commit:7fb80fbe uses nagios::nrpe::command { "check_load": ...}, but the template for it is missing. amended by LeLutin: use @ prefix on variables in template This is a followup of: https://labs.riseup.net/code/issues/4100 See merge request !8
2015-05-07Merge branch 'plugin_path' into 'master'Micah
Plugin path Avoid using lib64 in the path for x86_64 architecture when using debian. this path is not available anymore starting with debian wheezy. Then lint the file to make it easier to read / maintain. This is a followup of https://labs.riseup.net/code/issues/4237 See merge request !7
2015-05-07Merge branch 'ordering_in_example' into 'master'Micah
Ordering in example The usage example in the readme has a couple of small and bigger problems. This branch makes the example more accurate. See merge request !6
2015-05-07Merge branch 'manage_resource.cfg' into 'master'Micah
Only use the private directory on CentOS Debian and ubuntu have their resource.cfg file placed in /etc/nagios3/ and when it's absent it can cause issues with the package (because the package is badly done). This is a followup to issue https://labs.riseup.net/code/issues/4240 See merge request !4
2015-04-23stop defining an alias by default for hostsGabriel Filion
Since the "alias" attribute is special for puppet in that it needs to be a string that's unique throughout all of the resources on a given host's catalogue, we shouldn't always define an alias unless users really want them. This alias might (and did for some ppl) create a conflict when using a class that is named the same as $::hostname.
2015-04-19Merge branch 'unquote_booleans' into 'master'varac
Unquote booleans Some variables and if blocks use quoted booleans when we should be using the native boolean type. Also, when working on this, I saw an issue with a mistyped variable in nagios::service so I fixed it. This is a followup of: https://labs.riseup.net/code/issues/4093 See merge request !9
2015-04-19nagios::service typo in variableGabriel Filion
This invalidates the point of that if block since it will probably never be true that some undefined (read mis-typed) variable is set to 'absent'.
2015-04-19unquoted boolean variablesnadir
2015-04-19added templates/nrpe/nrpe_command.erbnadir
commit:7fb80fbe uses nagios::nrpe::command { "check_load": ...}, but the template for it is missing. amended by LeLutin: use @ prefix on variables in template
2015-04-19lint plugin.ppGabriel Filion
This should make it easier to read the code.
2015-04-19Fixing plugin path for debianSilvio Rhatto
2015-04-19wrong example with nagios::defaultsGabriel Filion
The example doesn't set any ordering on the classes and this leads to errors at first install since all of the configuration files that the nagios::defaults class installs need the nagios package to be installed first in order for the config dirs to exist.
2015-04-19fix alignment and lint usage exampleGabriel Filion
Example uses weird spacing in the beginning of the lines. Also the example usage of nagios::command is broken: it lacks the closing curly brace.
2015-04-19Only use the private directory on CentOSGabriel Filion
Debian and ubuntu have their resource.cfg file placed in /etc/nagios3/ and when it's absent it can cause issues with the package (because the package is badly done).
2015-04-18adding Debian specific nrpe template (fixes stop/restart of nrpe-server)kwadronaut
2015-04-18Commands notify-host-by-email and notify-service-by-email are already ↵Silvio Rhatto
defined by the nagios package amended by LeLutin: added missing : after default keyword and fixed style a bit.
2015-04-17Merge branch 'master' into 'master'Jerome Charaoui
Remove unused 'mountpoints' fact. Closes #1 See merge request !3
2015-04-17Remove unused 'mountpoints' fact. Closes #1Jerome Charaoui
2015-04-17Add GPLv3 licenseMicah Anderson
2015-04-08Merge branch 'bug/pnp4nagios_missing_index' into 'master'varac
Add missing DirectoryIndex index.php to the pnp4nagios apache config snippet Without this you get a 404, and have to explicitly specify index.php to load it See merge request !2
2015-04-07Add missing DirectoryIndex index.php to the pnp4nagios apache config snippetMicah Anderson
2015-03-02Merge branch 'master' into 'master'Jerome Charaoui
Don't screw up ENV["PATH"] for other platforms Minor bugfix to prevent overriding ENV["PATH"] for non-Linux platforms. See merge request !1
2015-02-12Don't screw up ENV["PATH"] for other platformsJerome Charaoui
2014-12-01check_http by default also accept 301/302o
2014-10-05add the default nagios templates file as wellmh
2014-10-05this is now the confdmh
2014-10-05restore a resource that was deleted too earlymh
2014-10-05get auto purging working againmh
That purging resources work correctly, the config files must be at the location that the nagios providers have internally, which is at /etc/nagios/<name>.cfg To ease the config file we used the cfg_dir option so far, which we can't anymore and hence this change requires adoption of your site modules. But auto-purging resources will then finally work.
2014-10-04restart after purgingmh
2014-10-04purge any unmanaged resourcesmh
2014-10-04link to the default path to get the resource purging workingmh
2014-02-20Fix source URL for apache configJerome Charaoui
2014-02-08lintingmh
2014-02-07better check on the status code as the reason is optionalmh
2013-12-28lintingmh
2013-09-28check new and legacy ports of managesievemh
2013-08-22make it possible to pass two different checks for http and httpsmh
2013-08-22remove silly naming as this anyway only makes it difficult to move checksmh
2013-07-31Correct erroneous previous commitJerome Charaoui
2013-07-31Mirror modification to check_http_regex_url in commit b0a5c09 to ↵Jerome Charaoui
debian/ubuntu commands.
2013-06-13Merge branch 'master' of git.puppet.immerda.ch:module-nagiosmh
2013-06-13force purge, so also subdirectories are removedmh
2013-02-28Update nagios::headless to use parametrized classSilvio Rhatto
2013-02-27Fix munin pluginsGabriel Filion
the basic path for nagiosstats is wrong/hardcoded. that binary comes in with the nagios3 package in Debian. set the default value to the right path under Debian and make it possible to override the path with an environment variable. Signed-off-by: Gabriel Filion <lelutin@gmail.com>
2013-02-27delete commented nagios_host and -service template definitionsvarac
2013-02-22remove site-nagios source lines, we decided that it is better not to carry ↵Micah Anderson
that old baggage around
2013-02-14Merge branch 'add_pnp4nagios' of ssh://code.leap.se/puppet_nagios into ↵Micah Anderson
add_pnp4nagios Conflicts: README.pnp4nagios manifests/defaults/pnp4nagios.pp manifests/pnp4nagios.pp manifests/pnp4nagios/popup.pp
2013-02-14move all pnp4nagios stuff into README.pnp4nagiosMicah Anderson
remove line that says that there are no packages (there are now)
2013-02-14Revert "added icon for pnp4nagios"Micah Anderson
This reverts commit 2f8d046607ad0bd5555ef812880cd97431b24977. This was never used in any resource