Hello,
you could use an EEM script. I have included four examples, for four different parameters. The script runs every 60 seconds and would send an email to you in case the counter in question increases. You obviously have to customize the script to match your exact parameters:
event manager applet LINE_CODE_VIOLATIONS
event timer watchdog time 60
action 1 cli command "enable"
action 2 cli command "show controllers t1 | include Line Code Violations"
action 3 regexp "[0-9]+.*Line Code Violations" $_cli_result"
action 4 if $_regexp_result ge 1
action 5 syslog msg "Line Code Violations registered on T1"
action 6 mail server "$_email_server" to "$_email_to" from "$_email_from" subject "$_event_pub_time: Line Code Violations registered" body "$_syslog_msg"
action 7 cli command "clear controller t1 1"
action 8 end
event manager applet PATH_CODE_VIOLATIONS
event timer watchdog time 60
action 1 cli command "enable"
action 2 cli command "show controllers t1 | include Path Code Violations"
action 3 regexp "[0-9]+.*Path Code Violations" $_cli_result"
action 4 if $_regexp_result ge 1
action 5 syslog msg "Path Code Violations registered on T1"
action 6 mail server "$_email_server" to "$_email_to" from "$_email_from" subject "$_event_pub_time: Path Code Violations registered" body "$_syslog_msg"
action 7 cli command "clear controller t1 1"
action 8 end
event manager applet SLIP_SECS
event timer watchdog time 60
action 1 cli command "enable"
action 2 cli command "show controllers t1 | include Slip Secs"
action 3 regexp "[0-9]+.*Slip Secs" $_cli_result"
action 4 if $_regexp_result ge 1
action 5 syslog msg "Slip Secs registered on T1"
action 6 mail server "$_email_server" to "$_email_to" from "$_email_from" subject "$_event_pub_time: Slip Secs registered" body "$_syslog_msg"
action 7 cli command "clear controller t1 1"
action 8 end
event manager applet FR_LOSS_SECS
event timer watchdog time 60
action 1 cli command "enable"
action 2 cli command "show controllers t1 | include Fr Loss Secs"
action 3 regexp "[0-9]+.*Fr Loss Secs" $_cli_result"
action 4 if $_regexp_result ge 1
action 5 syslog msg "Fr Loss Secs registered on T1"
action 6 mail server "$_email_server" to "$_email_to" from "$_email_from" subject "$_event_pub_time: Fr Loss Secs registered" body "$_syslog_msg"
action 7 cli command "clear controller t1 1"
action 8 end