Trees | Indices | Help |
|
---|
|
1 #! /usr/bin/env python 2 ############################################################################## 3 # 4 # Copyright (C) Zenoss, Inc. 2009, all rights reserved. 5 # 6 # This content is made available according to terms specified in 7 # License.zenoss under the directory where your Zenoss product is installed. 8 # 9 ############################################################################## 10 11 12 NUMB_EVENTS = 120 13 14 evts = dict( 15 # will hit default rules and be mapped to /Ingore 16 #REPEAT = "<165> message repeated 4 times", 17 18 # /Security/Login/Fail 19 FAIL = "<165> dropbear[23]: exit before auth (user 'root', 3 fails): Max auth tries reached - user root", 20 21 # /Security/Login/BadPass 22 SSHBADPASS = "<165> ssh[3]: Failed password for user from 10.1.2.3 port 53529 ssh2", 23 24 # Cisco Power Loss /HW/Power/PowerLoss (will clear) 25 PLOSS = "<165>%C6KPWR-SP-4-PSFAIL: power supply 1 output failed", 26 POK = "<165>%C6KPWR-SP-4-PSOK: power supply 1 turned on", 27 28 ) 29 keys = evts.keys() 30 import random 31 for i in range(NUMB_EVENTS): 32 print evts[random.choice(keys)] 33
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1.1812 on Mon Jul 30 17:11:22 2012 | http://epydoc.sourceforge.net |