Feb 8, 2013 8:17 AM
How can I create Critical event when free memory is under 5%??? Please help!
-
Like (0)
Hello Zenoss users!!!
I am new to Zenoss. I managed to configure all of my servers correcty. But I got stuck on creating custom events
What I am trying to do:
1. Create custom critical event when free memory is under 5%
2. Create transform that drops all events with severity "information"
3. On each warning event Zenoss will send me email with an alert!
Please help! I am crurrently reading this guide:
http://www.skills-1st.co.uk/papers/jane/zenoss4-events/zenoss_Core4_event_management_paper.pdf
Please help me!
Greg.
Hi Greg,
1)Goto one of your devices you want to monitor (>Infrastructure>Devices) and select its monitoring template (>Monitoring Templates>Device) under Thresholds you can add a MinMax CPU threshold as long as you have a CPU datasource.
2) I wouldn't necessarily recommending dropping information events; you set it so that information events get aged really quick in (>Advanced>Events).
If you really insist on dropping all information severity events then you could goto (>Events>Event Classes>"Gear Icon">Transforms) and drop in some code to perform a transform, something like:
if evt.summary.severity=2:
evt._action = "drop"
3) First, make sure you have Zenoss to point to your mailserver (>Advanced>Settings>SMTP Host),then makesure your account email is added in and tested (>Advanced>Users>"Your Account"); lastly you will need to set a trigger and a noftication, and then be sure to link them(>Events>Triggers&>Notifications). When creating a trigger you can set it to trigger on any critical or what-not.
I recommend referring to the Administration guide (below) as it covers these topics pretty well, if something doesn't quite make sense in the Admin Guide, feel free to post a question.
Thank you so much!!!
I have already found solution for item number 2 (Create transform that drops all events with severity "information") and item bnumber 3 (On each warning event Zenoss will send me email with an alert!)
But I still have problem creating custom critical event when free memory is under 5%!
How can I define the quota I want to use? For example if free mem is under 5% than create critical event...
Lets say I wanted to create a threshold for memory below 5 percent for all SNMP windows servers (>Infrastructure>Devices>/Server/Windows/"Any windows machine"). Once you are in one of your windows server's you are going to (>Monitoring Templates>Device(/Server/Windows)); on the left you will see current thresholds and you can add your own; the changes you make here are global across that template, if you want another server to have different alerts, you can select the gear icon and create a local template.
Additionally you can go to Advanced, Monitoring Templates to see and change the monitoring templates directly.
Please see 6.2.7.2 - Adding Thresholds (pg71-72) in the Administration Guide for more details and examples.
Christian thank you! I uderstand that! But how can I add this condition???
I did exactly the same thing you wrote in your previous post:
1 I went to Monitoring Templates
2. In DATA Sources I created a new Template I called it Mem_Under_5
3 And now I dont know how should I insert the statement (condition) I wans to use...
what data points or counters should i use in order to create this condition? If (something related to RAM) < ....
I am reading the Admin guide, but still can't find answer to my question
Ок... here is another screenshoot I took
I've created new Threshold, called it TestMinMax! Than I've added MemAvailReal shich is a DATAPOINT to read the statistics from (Right?) and now I have to add the condition (correct me if I am wrong) and here I just dont know and can not find out how should i create this statement (or condition) to let zenos calculating the percentage of free RAM available and in case free memory is under 5% - I will get the alert!
Based off the 2nd screenshot what you need to do is set the minimum value to:
here.hw.totalMemory / 1024 * 0.05
And you should be good.
memAvailReal is a raw value for memory left in KB (perhaps bytes? cant remember off the top of my head...lol) but its not a nice percentile value like CPU usage, so all we do is do the calulation of what 5 percent is as a raw mem.
Makes sense I assumed to get the real memory percentage on Linux you had to subtract the other two values. How do I configure a transform to convert the raw value to percentage?
Thank you,
Chris Smith
Systems Administrator MeetingOne
CSmith@meetingone.com<mailto:CSmith@meetingone.com>
720.633.0233
This transform should provide a reasonable example on how to convert the raw value into a percentile via a transform for your event messages.
Working now, thanks Just needed to change the text it was looking to transform.
Follow Us On Twitter »
|
Latest from the Zenoss Blog » | Community | Products | Services Resources | Customers Partners | About Us | ||
Copyright © 2005-2011 Zenoss, Inc.
|
||||||||