summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-04-09nrpe FreeBSD compatibilityGabriel Filion
Make some changes to ensure compatibility of the nrpe resources with FreeBSD. * Use group 0 instead of 'root' * capitalize values for testing $operatingsystem * override arguments for the nrpe service so that FreeBSD can find the init script
2012-04-09Fix nagios::nrpe::command for FreeBSDGabriel Filion
The 'command' resource defines files under the root group. Since the 'root' group does not exist by default on FreeBSD, make an exception for FreeBSD to use the 'wheel' group instead.
2012-04-09Add NRPE support for FreeBSDGabriel Filion
Configuration needs to be placed in a different directory in FreeBSD. Some packages are not named the same under FreeBSD. Some packages are not available under FreeBSD. Migrate those to a new nagios::nrpe::linux class so that FreeBSD does not take them into account.
2012-04-09Define a way to configure an NRPE commandGabriel Filion
We need to be able to configure what NRPE commands are defined on clients. This new method accepts inline contents or a puppet source argument. Signed-off-by: Gabriel Filion <lelutin@gmail.com>
2012-04-09add nrpe timeout parameternadir
amended (lelutin): took out some trailing whitespaces and a commented out (useless) line
2012-04-09working nrpe supportnadir
2012-04-09command/nrpe.pp: check cmds for nrpenadir
2012-04-09service.pp: added nrpe supportnadir
2012-04-09Added NRPE Support for nagios::servicenadir
2012-04-09Basic NRPE Supportnadir
amended (lelutin): removed trailing spaces and commented out code.
2012-04-09Import fresh nsca.cfg fileGabriel Filion
The default nsca.cfg is currently using the "non-normal" port for nsca. Let's import a freshly installed nsca.cfg file with default values. Signed-off-by: Gabriel Filion <lelutin@gmail.com>
2012-04-09Make the nsca depend on the nsca packageGabriel Filion
Without this link, puppet sometimes attempts to start the service before the package is installed, wich triggers an error. Signed-off-by: Gabriel Filion <lelutin@gmail.com>
2012-03-14allow dashes in service namesAntoine Beaupre
2012-03-14make default comment mention ircroot
2012-03-14be silent when we send stuff to nagios, it will answer backroot
2012-03-14accept dots in servicesroot
2012-03-14remove debugging messageAntoine Beaupre
2012-03-14always add a comment, allow spaces in commentsAntoine Beaupre
2012-03-13add reference for good material i foundAntoine Beaupre
2012-03-13add commandfile path to configurationAntoine Beaupre
Conflicts: templates/irc_bot/nsa.cfg.erb
2012-03-13note that this bot needs to be ported to the new frameworkAntoine Beaupre
2012-03-13add ack functionalityAntoine Beaupre
2012-02-10use trocla for that passwordmh
2012-02-02Merge remote-tracking branch 'github/master'mh
2012-02-02Merge pull request #3 from cwarden/fully-qualify-variablesduritong
Fully qualify facter variables to suppress warnings
2012-02-01fully qualify fqdn and hostname facter variablesChristian G. Warden
2012-02-01Fully qualify facter variables to suppress warningsChristian G. Warden
2011-12-08Provide default config files for nagios.cfg and cgi.cfgGabriel Filion
The current code tries to get the content of those two files in a bunch of places and defines a fallback to a generic file in the module's files/configs directory. The problem is that there is no such generic config file present. Link to Debian's config files as a generic version of those configuration files. This bug was found by taggart.
2011-12-08update check_mysql_health plugin to newer versionMicah Anderson
2011-12-08Merge branch 'master' into riseupMicah Anderson
2011-12-08Revert "Fix nagios check_smtp duplicate definition"Micah Anderson
This reverts commit fb75fcec220f9e2943d2e7af292ff884fd237f6d. Reverted due to LeLutin's comments in #3310 and the fix implemented in #3298 in preparation of merging those
2011-09-15Host alerts not parsing variables due to excessive escaping (#3456)Silvio Rhatto
2011-07-15it is not anymore necessary to add an empty source to purge directoriesmh
2011-07-14Merge remote-tracking branch 'remotes/lelutin/bot_fixes'Micah Anderson
Conflicts: manifests/irc_bot.pp Had to merge in the use_notices change that we had in our branch
2011-07-14Branching the definition for smtp, imap and pop3 commandsSilvio Rhatto
2011-07-14IRC-bot: split up manifests by OSGabriel Filion
This gives us the possibility of using the nagios::irc_bot::disable class without having any config variable set. When using nagios::irc_bot, we still get yelled at when we didn't define the appropriate variables. While we're moving the code around, change the group applied on the different files from 'root' to '0' for better portability.
2011-07-14IRC-bot: rename nagios::irc_bot::disabled to nagios::irc_bot::disableGabriel Filion
All classes serving the same purpose as this one are called 'disable', so let's follow this standard.
2011-07-14IRC-bot: fix LSB dependencies in Debian init scriptGabriel Filion
A misconception on my part made the dependencies "not-quite-right" (as in: the script doesn't really depend on nagios, as we would expect). This gives the IRC bot the save "level" as nagios itself. However, we'd like for nagios to be started before we start the IRC bot.
2011-07-14IRC-bot: cleanup socket file on startupGabriel Filion
It may sometimes happen that the bot dies or gets killed and the socket file is not cleaned up. When using the init script with 'start', as puppet does, the socket file blocks the bot from starting.
2011-07-14IRC-bot: use 'enable' for DebianGabriel Filion
Since the service "disable" bug was fixed in the debian service provider [1] in the puppet 2.6.2-5 package in squeeze, let's switch from the manual calls to the "enable" feature. [1]: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=573551 Also add a requirement between service[nagios-nsa] and file[/etc/init.d/nagios-nsa]. This was ensured in Debian with the exec that we're now replacing but didn't find its way through the centosification.
2011-07-14IRC bot: add a 'disabled' classGabriel Filion
For when you need to ensure that the bot doesn't start on a server.
2011-07-14Add a dependency between the IRC bot config and serviceGabriel Filion
When we modify the config file, we'd like for the service to restart in order for it to use the new configuration.
2011-07-14Change IRC notifications to #/#maxGabriel Filion
To give a little more info/meaning on what the number $SERVICEATTEMPT$ is, change the current notification from "... n.$SERVICEATTEMPT$" to "... $SERVICEATTEMPT$/$MAXSERVICEATTEMPTS$".
2011-07-13Minor style changeSilvio Rhatto
2011-07-13Do not define check_imap on debianSilvio Rhatto
2011-07-13Do not define check_ssmtp on debianSilvio Rhatto
2011-07-13Debian doesn't need explicit check_smtp definition (2)Silvio Rhatto
This plugin is already defined at nagios-plugins, so removing it for the same reason as e7f85f647e6f641bd85fbdfdb26982350f782370. This commit has more readable implementation than the previous.
2011-07-13Debian doesn't need explicit check_smtp definitionSilvio Rhatto
This plugin is already defined at nagios-plugins, so removing it for the same reason as e7f85f647e6f641bd85fbdfdb26982350f782370.
2011-07-13Ensure commands.cfg existsSilvio Rhatto
The file commands.cfg was introduced at 61aab91919b2e6d9cb5d7afe3befe40de67ac132. This change make sure the file exists so nagios doesn't stop running.
2011-07-13Merge branch 'master', remote branch 'origin'Silvio Rhatto