proletaryo / puppet-nagios-nrpe Goto Github PK
View Code? Open in Web Editor NEWPuppet module to automate installation/management of NRPE for Ubuntu/CentOS/AWS Linux
Puppet module to automate installation/management of NRPE for Ubuntu/CentOS/AWS Linux
message = Error: Can't set the pid file, Linux is not supported!
[ec2-user@ip-10-136-11-xx ~]$ facter osfamily
Linux
[ec2-user@ip-10-136-11-xx ~]$ facter operatingsystem
Amazon
on AWS Linux. If rpmforge is not installed yet, it's possible that nrpe installation will go first before rpmfoge.
Result: yum will raise a can't find nagios-nrpe error
Note: nrpe installation succeeds on succeeding runs
Hi,
could you add support for Scientifc Linux ? It's likely a simple matter of matching ::operatingsystem with "Scientific" and apply same code as for Centos and RHEL.
Cheers
I'm having some issue getting the nrpe module to generate service check commands.
What format should I use the default value box.
It starts out as a hash with --- {} in the box. When I put text in the box and save it gets translated as follows:
"check_RootLV,/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /":
This generates
command[check_RootLV,/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /]=
What am I missing here?
Hi,
I'm french, sorry for my bad english :) Your script is very good but I have a problem with virtual package:
/package[nagios-nrpe-server]: Provider apt does not support features virtual_packages; not managing attribute allow_virtual
/package[nagios-plugins-basic]: Provider apt does not support features virtual_packages; not managing attribute allow_virtual
/package[nagios-plugins]: Provider apt does not support features virtual_packages; not managing attribute allow_virtual
Can you help me ?
Jérémy
I'm getting the error message:
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: undefined method `function_is_bool' for Scope(Class[Nrpe]):Puppet::Parser::Scope at /etc/puppet/modules/nrpe/manifests/init.pp:65 on node
When I look at that line in the module:
validate_bool($enable, $dont_blame_nrpe, $opsview_use)
Now, I've used validate_bool lots, and it is very odd that I'm getting this now especially against such a simple thing.
I'm using the module in this manner:
class { 'nrpe':
ensure => running,
allowed_hosts => [
'nagios-01.<REDACTED_DOMAIN>',
'nagios-02.<REDACTED_DOMAIN>',
'nagios-03.<REDACTED_DOMAIN>'],
service_check_command => {
'check_load' => '/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20',
'check_sys_disk' => '/usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p /',
'check_raid' => '/usr/lib/nagios/plugins/check_raid',
'check_<REDACTED>' => '/usr/lib/nagios/plugins/check_procs -u root -a <REDACTED> -c 1:1',
},
enable => true,
before => Vcsrepo['custom_nagios_checks'],
}
Module information:
proletaryo-nrpe (v1.3.0)
puppetlabs-stdlib (v4.5.0)
OS: Debian 7.7
Puppet: 3.7.3-1puppetlabs1
Some things to consider:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.