Archived community.zenoss.org | full text search
Skip navigation
1 2 Previous Next 94276 Views 16 Replies Latest reply: Aug 21, 2009 11:57 AM by mshundal RSS
mshundal Rank: Green Belt 116 posts since
Jul 21, 2008
Currently Being Moderated

Apr 30, 2009 1:38 PM

dependencies... again!

Well I am tired of getting alerts that an entire datacenter's worth of devices are down when its just a dropped vpn tunnel...

we have multiple locations (/dc1, /dc2 ... /dc10 etc) and then sub locations defined under that (/dc1/rack5 etc). one firewall or router per /dcX is handling the vpn web.

now every time there's a hickup in a vpn tunnel... you get the picture

so here is what i have so far:

if getLocationName == '/datacenter1':
    dc1_router = device.findDevice('router_in_dc1')
    if p1n_router.getPingStatus() > 0:
        evt.eventState = 3
if device.id == 'router_in_dc1':
        evt.eventState = 5


it however doesnt work. if it did; we would just get a singular alert (for the router in question and not for every device behind it as well)...

any ideas how this can be fixed or some other work around?

thanks.
  • jmp242 ZenossMaster 4,060 posts since
    Mar 7, 2007
    Currently Being Moderated
    1. Apr 30, 2009 1:42 PM (in response to mshundal)
    dependencies... again!
    Hmm, what's evt.eventState? I haven't seen that before.
    --
    James Pulver
    Information Technology Area Supervisor
    LEPP Computer Group
    Cornell University



    mshundal wrote, On 4/30/2009 1:38 PM:

     

     

    Well I am tired of getting alerts that an entire datacenter's worth of devices are down when its just a dropped vpn tunnel...

    we have multiple locations (/dc1, /dc2 ... /dc10 etc) and then sub locations defined under that (/dc1/rack5 etc). one firewall or router per /dcX is handling the vpn web.

    now every time there's a hickup in a vpn tunnel... you get the picture

    so here is what i have so far:

    Code:

    if getLocationName == '/datacenter1':
    dc1_router = device.findDevice('router_in_dc1')
    if p1n_router.getPingStatus() > 0:
    evt.eventState = 3
    if device.id == 'router_in_dc1':
    evt.eventState = 5




    it however doesnt work. if it did; we would just get a singular alert (for the router in question and not for every device behind it as well)...

    any ideas how this can be fixed or some other work around?

    thanks.







    _______________________________________________
    zenoss-users mailing list
    zenoss-users@zenoss.org
    http://lists.zenoss.org/mailman/listinfo/zenoss-users

    _______________________________________________
    zenoss-users mailing list
    zenoss-users@zenoss.org
    http://lists.zenoss.org/mailman/listinfo/zenoss-users
  • jmp242 ZenossMaster 4,060 posts since
    Mar 7, 2007
    Currently Being Moderated
    3. Apr 30, 2009 2:06 PM (in response to mshundal)
    dependencies... again!
    Try:
    evt.severity = 0

    or

    evt._action = 'history'

    or

    evt._action = 'drop'
    --
    James Pulver
    Information Technology Area Supervisor
    LEPP Computer Group
    Cornell University



    mshundal wrote, On 4/30/2009 2:02 PM:

     

     

    its actually right out of zenoss wiki on dependencies (look here: http://www.zenoss.com/Members/netdata/create-a-device-dependency/)

    tried to modify it to fit the situation by using locations rather than per device







    _______________________________________________
    zenoss-users mailing list
    zenoss-users@zenoss.org
    http://lists.zenoss.org/mailman/listinfo/zenoss-users

    _______________________________________________
    zenoss-users mailing list
    zenoss-users@zenoss.org
    http://lists.zenoss.org/mailman/listinfo/zenoss-users
  • mrchippy ZenossEmployee 34 posts since
    May 12, 2008
    Currently Being Moderated
    6. May 1, 2009 11:10 AM (in response to mshundal)
    RE: dependencies... again!
    A quick note on the difference between eventState and severity. severity (0-5) maps to Critical, Warn, etc. eventState (0,1,2) maps to New, Acknowledged, Suppressed. I think what you're looking for would be along the lines of:

    
    if device.location().id == 'location_1' and device.id != 'test_router_1':
        dc1_router = device.findDevice('test_router_1')
        if dc1_router.getPingStatus() > 0:
            evt.eventState = 2
    



    chip
    zenoss
  • jmp242 ZenossMaster 4,060 posts since
    Mar 7, 2007
    Currently Being Moderated
    7. May 1, 2009 11:44 AM (in response to mrchippy)
    dependencies... again!
    What's the difference between event state suppressed, and event dropped?
    --
    James Pulver
    Information Technology Area Supervisor
    LEPP Computer Group
    Cornell University



    mrchippy wrote, On 5/1/2009 11:10 AM:

     

     

    A quick note on the difference between eventState and severity. severity (0-5) maps to Critical, Warn, etc. eventState (0,1,2) maps to New, Acknowledged, Suppressed. I think what you're looking for would be along the lines of:


    Code:

    if device.location().id == 'location_1' and device.id != 'test_router_1':
    dc1_router = device.findDevice('test_router_1')
    if dc1_router.getPingStatus() > 0:
    evt.eventState = 2





    chip
    zenoss







    _______________________________________________
    zenoss-users mailing list
    zenoss-users@zenoss.org
    http://lists.zenoss.org/mailman/listinfo/zenoss-users

    _______________________________________________
    zenoss-users mailing list
    zenoss-users@zenoss.org
    http://lists.zenoss.org/mailman/listinfo/zenoss-users
  • mrchippy ZenossEmployee 34 posts since
    May 12, 2008
    Currently Being Moderated
    8. May 1, 2009 4:25 PM (in response to jmp242)
    RE: dependencies... again!
    The suppressed state indicates that another event has nullified this one. 'Dropped' events don't even make it into the events db. If you go to the Event Console, there's a drop-down for seeing events that have been suppressed. Dropped events are gone forever!
  • Matt Ray Rank: Zen Master 2,484 posts since
    Apr 5, 2008
    Currently Being Moderated
    13. May 21, 2009 11:15 PM (in response to mshundal)
    dependencies... again!
    It looks like your locations are /Peer1/Rack80 /Peer1/Rack81 and so
    on, but you are checking for just 'Peer1'. Same with 'Puretracks'
    vs. /Puretracks/B100. Perhaps check if the location contains those
    substrings.

    Thanks,
    Matt Ray
    Zenoss Community Manager
    community.zenoss.com
    mray@zenoss.com




    On May 20, 2009, at 8:14 AM, mshundal wrote:

     

     

    heres what im using exactly...

    this transform is on /EVENTS/STATUS/PING


    Code:
    if device.location().id == 'Peer1' and device.id != 'v60-WWW1':
    dc1_router = device.findDevice('v60-WWW1')
    if dc1_router.getPingStatus() > 0:
    evt.eventState = 2
    if device.location().id == 'Puretracks' and device.id !=
    'x5505e-260King':
    dc2_router = device.findDevice('x5505e-260King')
    if dc2_router.getPingStatus() > 0:
    evt.eventState = 2



    locations are as follows:
    /Peer1/Rack80
    /Peer1/Rack81
    /Peer1/Rack83
    /Puretracks/B100
    /Puretracks/B204

    v60-www1 is in /Peer1/Rack80 but i want it as dependency for that
    entire DC
    x5505e-260King is in /Puretracks/B100 but again I need this to be
    the dependency for all the nodes in this building, not just B100.







    _______________________________________________
    zenoss-users mailing list
    zenoss-users@zenoss.org
    http://lists.zenoss.org/mailman/listinfo/zenoss-users


    _______________________________________________
    zenoss-users mailing list
    zenoss-users@zenoss.org
    http://lists.zenoss.org/mailman/listinfo/zenoss-users
  • Axis Rank: White Belt 56 posts since
    Jan 7, 2008
    Currently Being Moderated
    14. Jun 7, 2009 2:03 PM (in response to Matt Ray)
    RE: dependencies... again!
    Does this event Transform have to go in Events/Status/Ping? I've tried putting it in the transform of just global /Events but it doesn't seem to work there, but works perfectly when put in the Evetnts/Status/Ping
1 2 Previous Next

More Like This

  • Retrieving data ...