Bug #12455

Replace Puppet last run check cron email notifications with an Icinga check

Added by intrigeri 2017-04-18 08:34:23 . Updated 2017-12-19 13:23:24 .

Status:
Resolved
Priority:
Normal
Assignee:
intrigeri
Category:
Infrastructure
Target version:
Start date:
2017-04-18
Due date:
% Done:

100%

Feature Branch:
Type of work:
Sysadmin
Blueprint:

Starter:
Affected tool:
Deliverable for:

Description

Same rationale as Feature #11598.


Subtasks


Related issues

Related to Tails - Feature #11598: Replace reboot-notifier cron email notification with an Icinga check Resolved 2016-07-22

History

#1 Updated by intrigeri 2017-04-18 08:34:35

  • related to Feature #11598: Replace reboot-notifier cron email notification with an Icinga check added

#2 Updated by intrigeri 2017-09-11 11:39:23

https://github.com/cafuego/check_puppetmaster/network may be a good starting point.

#3 Updated by intrigeri 2017-12-19 12:10:02

  • Status changed from Confirmed to In Progress
  • % Done changed from 0 to 10

Here’s a plan:

  1. deploy puppet:///modules/puppet/master/lastruncheck to /usr/lib/nagios/plugins/check_puppetmaster; that’s the exact same script we’re currently running via cron so our custom settings in /etc/default/check_puppetmaster will be honored
  2. add a checkcommand and service to run check_puppetmaster on our puppetmaster
  3. ensure the icinga2 check works
  4. set $puppet::master::lastruncheck_cron = false so we stop deploying the script and cronjob via the puppet module; the puppet module will then clean up behind itself (at least the code tries to) so we won’t get double notifications

#4 Updated by intrigeri 2017-12-19 12:49:20

  • Subject changed from Consider replacing Puppet last run check emails with an Icinga check to Replace Puppet last run check cron email notifications with an Icinga check
  • % Done changed from 10 to 20

intrigeri wrote:
> # deploy puppet:///modules/puppet/master/lastruncheck to /usr/lib/nagios/plugins/check_puppetmaster; that’s the exact same script we’re currently running via cron so our custom settings in /etc/default/check_puppetmaster will be honored
> # add a checkcommand and service to run check_puppetmaster on our puppetmaster

Done.

#5 Updated by intrigeri 2017-12-19 13:22:56

  • Status changed from In Progress to Resolved
  • % Done changed from 20 to 100