Puppet Nagios Client Module

Source: Internet
Author: User
Tags require

In order to facilitate the combination with puppet, so the original compiled with the source code, all changed to use Rpmbuild packaged, in their own built source, this article will also explain how to create local sources.

The package Nrpe and Nagios-plugins are generated by the spec of the previous article.

The old rules, first on the architecture (PS: actually all the same-):

1.init.pp

2.web.pp

Class Nagios::web ($nagiospluginsversion = "1.4.16-10", $nrpeversion = "2.13-10") {file {"sa"): Path => "/root/sa", ensure => directory,} package {"X"    
          inetd ": Ensure => present,} package {" Nagios-plugins ": Ensure => $nagiospluginsversion,} package {"Nrpe": Ensure =&gt ;    
          $nrpeversion, require => package["Nagios-plugins"],} file {"Nrpe.cfg":    
          Mode => 0644, owner => Nagios, group => Nagios,    Path => "/usr/local/nagios/etc/nrpe.cfg", Require => package["Nrpe"], content    
        
        => template (' Nagios/web-nrpe.erb '), notify => service[' xinetd '],}   file {"Nrpe": 
          Mode => 0644, owner => root, group => root, PA Th => "/etc/xinetd.d/nrpe", Content => template (' Nagios/nrpe.erb '), Require =&G T package["Nrpe"], notify => service[' xinetd '],} Service {"Xinet D ": Ensure => running, enable => true, subscribe => file[" Nrpe "," Nrpe.cfg "],}}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.