Package Products :: Package ZenEvents :: Module zengensyslog |
[hide private]
[frames] | no frames]

# Source Code for Module Products.ZenEvents.zengensyslog

     1  #! /usr/bin/env python
     2  ###########################################################################
     3  #
     4  # This program is part of Zenoss Core, an open source monitoring platform.
     5  # Copyright (C) 2009, Zenoss Inc.
     6  #
     7  # This program is free software; you can redistribute it and/or modify it
     8  # under the terms of the GNU General Public License version 2 or (at your
     9  # option) any later version as published by the Free Software Foundation.
    10  #
    11  # For complete information please visit: http://www.zenoss.com/oss/
    12  #
    13  ###########################################################################
    14
    15  NUMB_EVENTS = 120
    16
    17  evts = dict(
    18  # will hit default rules and be mapped to /Ingore
    19  #REPEAT = "<165> message repeated 4 times",
    20
    21  # /Security/Login/Fail
    22  FAIL = "<165> dropbear[23]: exit before auth (user 'root', 3 fails): Max auth tries reached - user root",
    23
    24  # /Security/Login/BadPass
    25  SSHBADPASS = "<165> ssh[3]: Failed password for user from 10.1.2.3 port 53529 ssh2",
    26
    27  # Cisco Power Loss /HW/Power/PowerLoss (will clear)
    28  PLOSS = "<165>%C6KPWR-SP-4-PSFAIL: power supply 1 output failed",
    29  POK = "<165>%C6KPWR-SP-4-PSOK: power supply 1 turned on",
    30
    31  )
    32  keys = evts.keys()
    33  import random
    34  for i in range(NUMB_EVENTS):
    35      print evts[random.choice(keys)]
    36