Change of default event attributes
-
Hello,
Is it possible to change default event attributes in the filtering script?
Based on the SNMP varbind I would like to modify severity of the event and then create correct alarm.I tried:
$event->severity = 1;
but I get an error while compiling processing policy rule: "Unknown object's attribute"I tried also: SetEventParameter($event, severity, 1);
but without success.Best regards,
Marcin -
Hi,
currently it is not possible. I've just added new methods to NXSL class "Event": setMessage, setSeverity, setUserTag. They will be included in release 2.0-M5. Then you'll be able to use script like this:
$event->setSeverity(2); // change severity to minorBest regards,
Victor
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login