I have tried to create a widget, which can be used in a NOC view, that displays the Top xx Interfaces with errors. Nothing special, just the errors that can be seen when you do a "show interface" command.
But it seems that i can't get the needed informations out of the Database..
I am amazed that there is no widget or predefined alarm there anyway, or have i missed it somewhere.
Anyway, i have attached the script that i am playing around. And here is an example what i get:

My first Problem is that i get all interfaces displayed and not only the once i have trouble with and secondly the errors doesn't match the actual interface errors.
Whenn i do a display command on the above interface i don't habe any errors at all.
Can anybody help me to get this right? Or does anybody know a widget with equal display?