14,214 Views 23 Replies Last post: Jun 16, 2009 4:12 PM by tcaiazza RSS Go to original post 1 2 Previous Next
Matt Ray ZenossEmployee 2,389 posts since
Apr 5, 2008
Currently Being Moderated
15. Jan 5, 2009 3:59 PM in response to: jcurry
RE: Interested in an "event transform" section?
If you're logged into the website, there should be an "edit" button near the top. We've had some issues with zwiki recently, if it's not showing it and you're logged in let me know and we'll debug it off-list.

Thanks,
Matt Ray
Zenoss Community Manager
artifact Rank: Green Belt 269 posts since
Mar 11, 2008
Currently Being Moderated
16. Jan 5, 2009 4:00 PM in response to: Matt Ray
RE: Interested in an "event transform" section?

"jcurry" wrote:

 

The wiki page looks useful but a couple of lines of instruction would be helpful on how to add to the page. I can see how to add a comment but not sure how to modify the page to add to the bottom (rather than just a comment)??

Cheers,
Jane



After logging into the wiki, there should be an "edit" link in the upper-left hand corner...
jcurry ZenossMaster 318 posts since
Apr 15, 2008
Currently Being Moderated
17. Jan 6, 2009 4:09 AM in response to: artifact
RE: Interested in an "event transform" section?
Yup - there is an Edit tab after I log in but it doesn't seem to do anything. There is an "Actions" button with cut, copy, paste, delete, rename and an "Add to folder" tab with lots of actions - all apparently active. The only tab that doesn't seem to be active is "Edit".

Could someone post a quick "Updating the wiki" item to the wiki!
Cheers,
Jane
jbaird Rank: Green Belt 166 posts since
Sep 18, 2007
Currently Being Moderated
18. Jan 7, 2009 10:12 AM in response to: jcurry
RE: Interested in an "event transform" section?
Wondering if someone could help me out with a simple transform. I use this transform for my BigIP LTM devices:

evt.component = "Node: %s:%s" % (evt.bigipNotifyObjNode, evt.bigipNotifyObjPort)


This adds the IP/Port of the service that is down to the event. I would like to display the hostname (bigipNotifyObjNode contains only the IP address). I tried to modify the transform to:

evt.component = "Node: %s:%s" % (gethostbyaddr(evt.bigipNotifyObjNode), evt.bigipNotifyObjPort)


It doesn't appear as red text, so it appears to be valid code. But, whenever the event comes in, the "Component" field is empty. Any ideas?

Thanks!
artifact Rank: Green Belt 269 posts since
Mar 11, 2008
Currently Being Moderated
19. Jan 7, 2009 12:53 PM in response to: jbaird
RE: Interested in an "event transform" section?
When I'm troubleshooting transforms, I usually just throw them into a simple script and set things manually and see what happens:

#!/usr/bin/python
from socket import *

bigipNotifyObjNode = "74.125.45.100"
bigipNotifyObjPort = "2"
component = "Node: %s:%s" % (gethostbyaddr(bigipNotifyObjNode), bigipNotifyObjPort)

print component


Looks okay... but it seems like a lot of info to me? I would use that info in evt.summary and simply do
evt.component = evt.bigipNotifyObjPort
for the component...
Matt Ray ZenossEmployee 2,389 posts since
Apr 5, 2008
Currently Being Moderated
20. Jan 8, 2009 4:38 PM in response to: artifact
Interested in an "event transform" section?
We have this page: http://www.zenoss.com/community/get-involved/how-to-contribute-web-content

Editing the wiki has been a pain for awhile, we're looking at
replacing it with something much easier to use soon (and keeping all
the existing content of course).

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



On Jan 6, 2009, at 3:09 AM, jcurry wrote:

 

 

Yup - there is an Edit tab after I log in but it doesn't seem to do
anything. There is an "Actions" button with cut, copy, paste,
delete, rename and an "Add to folder" tab with lots of actions - all
apparently active. The only tab that doesn't seem to be active is
"Edit".

Could someone post a quick "Updating the wiki" item to the wiki!
Cheers,
Jane







_______________________________________________
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 2,702 posts since
Mar 7, 2007
Currently Being Moderated
21. Jan 9, 2009 8:07 AM in response to: Matt Ray
Interested in an "event transform" section?
What sort of Wiki is it? I've had good luck here with TWiki and it seems
pretty easy to use and attach pics etc... I don't think Wiki is the
"problem", but your implementation is different to what I've seen with
both TWiki and Confulence(sp?).
--
James Pulver
Information Technology Area Supervisor
LEPP Computer Group
Cornell University



Matt Ray wrote, On 1/8/2009 4:38 PM:

 

 

We have this page: http://www.zenoss.com/community/get-involved/how-to-contribute-web-content

Editing the wiki has been a pain for awhile, we're looking at
replacing it with something much easier to use soon (and keeping all
the existing content of course).

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



On Jan 6, 2009, at 3:09 AM, jcurry wrote:

 

 

Yup - there is an Edit tab after I log in but it doesn't seem to do
anything. There is an "Actions" button with cut, copy, paste,
delete, rename and an "Add to folder" tab with lots of actions - all
apparently active. The only tab that doesn't seem to be active is
"Edit".

Could someone post a quick "Updating the wiki" item to the wiki!
Cheers,
Jane







_______________________________________________
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


_______________________________________________
zenoss-users mailing list
zenoss-users@zenoss.org
http://lists.zenoss.org/mailman/listinfo/zenoss-users
Matt Ray ZenossEmployee 2,389 posts since
Apr 5, 2008
Currently Being Moderated
22. Jan 9, 2009 11:08 PM in response to: jmp242
RE: Interested in an "event transform" section?
The wiki is zwiki, but it is not the easiest to use, notifications seem to be broken and there are reports of page edits disappearing. We are investigating a long-term replacement, but any updates made will be moved to whatever we replace it with.

Thanks,
Matt
tcaiazza Rank: White Belt 58 posts since
Mar 19, 2009
Currently Being Moderated
23. Jun 16, 2009 4:12 PM in response to: Matt Ray
RE: Interested in an "event transform" section?
Since I can't seem to find the wiki page to add these event transforms I've been working on for OSPF traps, I'll just post them here

The first one is for ospf interface traps

from socket import gethostbyaddr 
evt.eventKey = evt.device + "ospfIfStateChange"

if evt.ospfIfState == 1:
 ospfIfState = "down"
 evt.severity = 5
elif evt.ospfIfState == 2:
 ospfIfState = "loopback"
elif evt.ospfIfState == 3:
 ospfIfState = "waiting"
elif evt.ospfIfState == 4:
 ospfIfState = "point To Point"
 evt.severity = 0
elif evt.ospfIfState == 5:
 ospfIfState = "designated Router"
 evt.severity = 0
elif evt.ospfIfState == 6:
 ospfIfState = "backup Designated Router"
 evt.severity = 0
elif evt.ospfIfState == 7:
 ospfIfState = "other Designated Router"
 evt.severity = 0
else:
 ospfIfState = "Unknown"

try:
 intIP = evt.ospfIfIpAddress
 intName = gethostbyaddr(intIP)[0]
except Exception, ex:
 intName =  evt.ospfIfIpAddress


evt.summary = "OSPF interface, " + intName + ", state changed to " + ospfIfState


And the second is for OSPF state change traps

from socket import gethostbyaddr 
evt.eventKey = evt.device + "ospfNbrStateChange"

if evt.ospfNbrState == 1:
 ospfState = "Down"
 evt.severity = 5
elif evt.ospfNbrState == 2:
 ospfState = "Attempt"
elif evt.ospfNbrState == 3:
 ospfState = "init"
elif evt.ospfNbrState == 4:
 ospfState = "two way"
elif evt.ospfNbrState == 5:
 ospfState = "Exchange Start"
elif evt.ospfNbrState == 6:
 ospfState = "Exchange"
elif evt.ospfNbrState == 7:
 ospfState = "Loading"
elif evt.ospfNbrState == 8:
 ospfState = "Full"
 evt.severity = 0
else:
 ospfState = "Unknown"
try:
 peerIp = evt.ospfNbrIpAddr
 peerName = gethostbyaddr(peerIp)[0]
except Exception, ex:
 peerName =  evt.ospfNbrIpAddr

evt.summary = "OSPF State Changed to " + ospfState + " with peer " + peerName


I added in the event key, so the two wouldn't clear each other.

More Like This

  • Retrieving data ...

Bookmarked By (0)