Yuvipanda has uploaded a new change for review. https://gerrit.wikimedia.org/r/161939
Change subject: nagios_common: Move wikidata check to a check_command define ...................................................................... nagios_common: Move wikidata check to a check_command define Only used in prod, so not including in shinken Change-Id: I77981e33b09489cc9b19f583c8d38c3548f5069f --- M manifests/misc/icinga.pp R modules/nagios_common/files/check_commands/check_wikidata A modules/nagios_common/files/check_commands/check_wikidata.cfg 3 files changed, 7 insertions(+), 4 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/operations/puppet refs/changes/39/161939/1 diff --git a/manifests/misc/icinga.pp b/manifests/misc/icinga.pp index 2dbf3fc..14db359 100644 --- a/manifests/misc/icinga.pp +++ b/manifests/misc/icinga.pp @@ -795,10 +795,8 @@ ip_address => '91.198.174.192', } - file { '/usr/local/lib/nagios/plugins/check_wikidata': - ensure => present, - mode => '0555', - source => 'puppet:///files/icinga/check_wikidata', + nagios_common::check_command { 'check_wikidata': + notify => Service['icinga'] } monitor_service { 'wikidata.org dispatch lag': diff --git a/files/icinga/check_wikidata b/modules/nagios_common/files/check_commands/check_wikidata similarity index 100% rename from files/icinga/check_wikidata rename to modules/nagios_common/files/check_commands/check_wikidata diff --git a/modules/nagios_common/files/check_commands/check_wikidata.cfg b/modules/nagios_common/files/check_commands/check_wikidata.cfg new file mode 100644 index 0000000..d592643 --- /dev/null +++ b/modules/nagios_common/files/check_commands/check_wikidata.cfg @@ -0,0 +1,5 @@ +# monitor wikidata +define command{ + command_name check_wikidata + command_line /usr/local/lib/nagios/plugins/check_wikidata +} -- To view, visit https://gerrit.wikimedia.org/r/161939 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I77981e33b09489cc9b19f583c8d38c3548f5069f Gerrit-PatchSet: 1 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: Yuvipanda <yuvipa...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits