Created
July 21, 2015 07:31
-
-
Save hanynowsky/83a279716e413735e1f5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Pastebin aRuOeLwi | |
sensu::client_custom: | |
page: false | |
grafana_url: "http://dashboards.guesswho.com/grafana/#/dashboard/db/system-overview?var-server=%{::hostname}" | |
processorcount: %{::processorcount} | |
memorysize: %{::memorysize} | |
lsbdistdescription: %{::lsbdistdescription} | |
kernelrelease: %{::kernelrelease} | |
is_virtual: %{::is_virtual} | |
guesswho_seclayer: %{::guesswho_seclayer} | |
guesswho_seczone: %{::guesswho_seczone} | |
guesswho_site: %{::guesswho_site} | |
guesswho_auth: %{::guesswho_auth} | |
guesswho_puppet_env: %{::environment} | |
# Pastebin Q8rOzKNT | |
define monitoring::checks::check_process ( | |
$searchString = '', | |
$oncall_team = $oncall_team, | |
$pager_key = $pager_key, | |
$subscribers = $subscribers, | |
$check_every = '1m', | |
$alert_after = '5m', | |
$realert_every = '60', | |
$should_page = 'false', | |
$should_email = 'true', | |
$subdue_hours = {}, | |
) { | |
# by default we only check if at least one process is running | |
monitoring::checks::generic { "check_process_${name}" : | |
check_every => $check_every, | |
alert_after => $alert_after, | |
realert_every => $realert_every, | |
page => $should_page, | |
email => $should_email, | |
team => $oncall_team, | |
pager_key => $pager_key, | |
command => "/etc/sensu/plugins/check-procs.rb -p ${searchString} -C 1", | |
runbook => "https://confluence.guesswho.com/display/PASKB/check_procs", | |
tip => "${searchString} for ${name} not available - is it up?", | |
subscribers => $subscribers, # remember this is an array | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment