Comments on: Automated Nagios monitoring with Puppet exported resources https://blog.bluemalkin.net/automated-nagios-monitoring-with-puppet-exported-resources/ A blog about DevOps technologies, tips and tricks. Wed, 02 Oct 2024 03:08:46 +0000 hourly 1 https://wordpress.org/?v=4.9.8 By: lineslillestoreverden.blogspot.com https://blog.bluemalkin.net/automated-nagios-monitoring-with-puppet-exported-resources/#comment-43273 Sun, 16 Jun 2019 03:34:22 +0000 http://blog.bluemalkin.net/?p=178#comment-43273 Ιt’s an remarkable piece of wriuting desіgned for
all the web people; they will take advantage from it
I am sure. https://lineslillestoreverden.blogspot.com/

]]>
By: Verlene https://blog.bluemalkin.net/automated-nagios-monitoring-with-puppet-exported-resources/#comment-43057 Sat, 11 May 2019 20:12:15 +0000 http://blog.bluemalkin.net/?p=178#comment-43057 It’s remarkable for me to have a web page, which is useful in support of my knowledge.

thanks admin

]]>
By: Tom Murphy https://blog.bluemalkin.net/automated-nagios-monitoring-with-puppet-exported-resources/#comment-41976 Mon, 05 Dec 2016 09:50:26 +0000 http://blog.bluemalkin.net/?p=178#comment-41976 My example snippet is assuming you already have a hostgroup called “Mgmt Servers”, you can change it to whatever yours is called or create one in Puppet with the nagios_hostgroup resource: https://docs.puppet.com/puppet/latest/type.html#nagioshostgroup

]]>
By: farooq ahmed https://blog.bluemalkin.net/automated-nagios-monitoring-with-puppet-exported-resources/#comment-41974 Thu, 01 Dec 2016 17:14:20 +0000 http://blog.bluemalkin.net/?p=178#comment-41974 Hi Tom,

I had a query with regards to using hostgroups. You used hostgroups in @@nagios_host but that doesn’t create a hostgroups.cfg. It gives me this error.
Error: Could not find any hostgroup matching ‘Mgmt Servers’ (config file ‘/usr/local/nagios/etc/objects/dev-local_hosts.cfg’, starting on line 66)

My target.pp
============
class nagios::target {
@@nagios_host { $fqdn:
ensure => present,
target => “/usr/local/nagios/etc/objects/${hostname}.cfg”,
alias => $hostname,
address => $ipaddress,
hostgroups => “Mgmt Servers”,
use => “linux-server”,
}

monitor.pp
===========
Nagios_host <> {
target => “/usr/local/nagios/etc/objects/dev-local_hosts.cfg”,
}
Nagios_service <> {
target => “/usr/local/nagios/etc/objects/dev-local_service.cfg”,
}
Can you tell me what am i missing??

Regards,
Farooq Ahmed

]]>
By: Farooq https://blog.bluemalkin.net/automated-nagios-monitoring-with-puppet-exported-resources/#comment-40153 Wed, 06 Jan 2016 19:39:13 +0000 http://blog.bluemalkin.net/?p=178#comment-40153 Can I ask how would I work if the client is not Linux and rather a hardware device like a vpn Router? In that case we can’t use NRPE but snmp for it.

]]>
By: Jon Archer https://blog.bluemalkin.net/automated-nagios-monitoring-with-puppet-exported-resources/#comment-34452 Mon, 22 Jun 2015 11:10:31 +0000 http://blog.bluemalkin.net/?p=178#comment-34452 Hi,
Nice writeup, I’m not sure if its the same in Nagios 4 but in 3 I had to make sure that nrpe was allowed to be contacted by the nagios server. I did this by adding the following into the nrpe config file
file_line { “allowed_hosts”:
line => “allowed_hosts = 127.0.0.1,192.168.1.29”,
path => “/etc/nagios/nrpe.cfg”,
match => “allowed_hosts”,
ensure => present,
notify => Service[“nrpe”],
}
where 192.168.1.29 is my nagios server.

]]>
By: Tom Murphy https://blog.bluemalkin.net/automated-nagios-monitoring-with-puppet-exported-resources/#comment-33890 Mon, 08 Jun 2015 22:44:00 +0000 http://blog.bluemalkin.net/?p=178#comment-33890 Exported resources are stored in PuppetDB so naturally you need it.

]]>
By: craig https://blog.bluemalkin.net/automated-nagios-monitoring-with-puppet-exported-resources/#comment-33876 Mon, 08 Jun 2015 17:52:52 +0000 http://blog.bluemalkin.net/?p=178#comment-33876 I’m also curious if puppetdb is required.

]]>
By: Eileen https://blog.bluemalkin.net/automated-nagios-monitoring-with-puppet-exported-resources/#comment-25466 Thu, 22 Jan 2015 15:34:17 +0000 http://blog.bluemalkin.net/?p=178#comment-25466 If we are using Hiera to store the facts..is the puppetdb necessary for this?

]]>
By: Tom Murphy https://blog.bluemalkin.net/automated-nagios-monitoring-with-puppet-exported-resources/#comment-5089 Mon, 08 Sep 2014 15:26:23 +0000 http://blog.bluemalkin.net/?p=178#comment-5089 Hi Dave,
Apologies, I have corrected the code, it should require the install class and not server class.

]]>