I have 2 interfaces:
Intel(R) PRO/1000 MT Network Connection
Intel(R) PRO/1000 MT Network Connection #2
I need to filter out “ Intel(R) PRO/1000 MT Network Connection #2” . The following are some of the commands I have tried.
[blockquote]check_command check_snmp_int!“”
MS TCP Loopback interface:UP, Intel(R) PRO/1000 MT Network Connection #2:DOWN, Intel(R) PRO/1000 MT Network Connection:UP: 1 int NOK : CRITICAL[/blockquote]
this cuts out anything that matches MT, so I know that if I cut out any interface with #, I will get what I want
[blockquote]check_command check_snmp_int!“[1]”
MS TCP Loopback interface:UP:1 UP: OK[/blockquote]
too bad it doesn’t seem to work with #
[blockquote]check_command check_snmp_int!“^#]”
ERROR : Unknown interface ^#][/blockquote]
maybe if I cut out any interface with 2 in it?
[blockquote]check_command check_snmp_int!“[2]”
ERROR : Unknown interface [3][/blockquote]
this doesn’t cut out anything that matches Intel, I assume something to do with the /
[blockquote]check_command check_snmp_int!“[4]”
Intel(R) PRO/1000 MT Network Connection #2:DOWN, Intel(R) PRO/1000 MT Network Connection:UP: 1 int NOK : CRITICAL[/blockquote]
I can isolate “Intel(R) PRO/1000 MT Network Connection #2”
[blockquote]check_command check_snmp_int!“#2”
Intel(R) PRO/1000 MT Network Connection #2:DOWN: 1 int NOK : CRITICAL[/blockquote]
[blockquote]check_command check_snmp_int!“Intel(R) PRO/1000 MT Network Connection”
ERROR : Unknown interface Intel(R) PRO/1000 MT Network Connection[/blockquote]
[blockquote]
check_command check_snmp_int!“1000 MT Network Connection”
Intel(R) PRO/1000 MT Network Connection #2:DOWN, Intel(R) PRO/1000 MT Network Connection:UP: 1 int NOK : CRITICAL [/blockquote]
I can use “^Intel” to get Intel at the beginning
[blockquote]check_command check_snmp_int!“^Intel”
Intel(R) PRO/1000 MT Network Connection #2:DOWN, Intel(R) PRO/1000 MT Network Connection:UP: 1 int NOK : CRITICAL[/blockquote]
$ does not seem to work to match at the end, and it returns with 2 $?
[blockquote]check_command check_snmp_int!“Connection$”
ERROR : Unknown interface Connection$$[/blockquote]
\Z does not work
[blockquote]check_command check_snmp_int!“Connection\Z”
ERROR : Unknown interface Connection\Z[/blockquote]
I am at a loss for what to do. Regular Expressions make my brain hurt, it is even worse when only some rules work… There seems to be an issue with #, and $. I have looked to see if there is a way in Windows to rename the interfaces, but I don’t see how. Any help would be greatly appreciated.