I’m trying to set up alerts for OIDs where the value is an octet string in Date Format. I’m having trouble with the format of how to set up the Probe to Alert after a certain time period has past.
For example, BES has OIDs for “last interaction with device,” but the octet string doesn’t say last contact time was x number of minutes ago. It’ll say last contact time was “8/7/2009 10:02:31 AM.” Is there a way to get notified if the last contact time was more than, let’s say, 30 minutes ago.
I am not sure what you are trying to achieve, do you want a probe that will only notify you if it is down for 30 minutes?
You can create a custom probe and modify the delay on the notification for that probe only…
As far as the bandwidth notification you are trying to resolve have you tried to use “rate” or “bitrate” in a function?
Rate - calculates and returns parameter change speed within given time interval. First parameter - counter value, second - optional - interval to calculate rate over - default 1 second (1.0)
Bitrate - formats number as bitrate
You might try something like this…
function utilization of port channel 7
bitrate(oid(“1.3.6.1.2.1.2.2.1.16.5007”))+bitrate(oid(“1.3.6.1.2.1.2.2.1.10.5007”))
I am not sure if rate or bitrate would solve the issue but it could be that simple.
I have not tested it enough but that bitrate above seems to work, I need to let it run longer or maybe a combination of rate and bitrate would work.
Need to do more testing…
The idea is to get an alert after a certain time period has past. In this instance I’m testing on the BES server. Any time a blackberry sends/receives an email it makes contact with BES, or if no messages are sent/received it periodically checks in. What I’m trying to accomplish is if it misses making contact for x number of minutes or hours that I receive an alert.
The issue I’m running into is that because this oid is not a counter, I can’t find a way for it to say the octet string is x minutes ago, only that the octet string does not match a value that is input manually.