Andrew Bogott has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/99672


Change subject: Added an additional snmp trap.
......................................................................

Added an additional snmp trap.

This is so monitoring-devel can gather puppet freshness stats
for me to mess with.

Change-Id: Ia3cce04ef987d5a117d23532d616fab3ab266c34
---
M modules/base/manifests/init.pp
1 file changed, 7 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/72/99672/1

diff --git a/modules/base/manifests/init.pp b/modules/base/manifests/init.pp
index 1c5c94d..c4b816f 100644
--- a/modules/base/manifests/init.pp
+++ b/modules/base/manifests/init.pp
@@ -127,6 +127,13 @@
                 path => "/bin:/usr/bin",
                 require => Package['snmp']
             }
+            # This is a temporary check so that I can do some
+            #  reporting about puppet freshness.  (abogott, 2013-12-06)
+            exec { 'puppet snmp reporting':
+                command => "snmptrap -v 1 -c public 
monitoring-devel.pmtpa.wmflabs .1.3.6.1.4.1.33298 
${::instancename}.${::site}.wmflabs 6 1004 `uptime | awk '{ split(\$3,a,\":\"); 
print (a[1]*60+a[2])*60 }'`",
+                path => "/bin:/usr/bin",
+                require => Package['snmp']
+            }
         }
         default: {
             err('realm must be either "labs" or "production".')

-- 
To view, visit https://gerrit.wikimedia.org/r/99672
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia3cce04ef987d5a117d23532d616fab3ab266c34
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Andrew Bogott <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to