Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
kevinhe
bykevinhe, July 15, 2020
I've asked the owner to modify the regex when searching for interface names. The script at the moment only matches interfaces index numbers 1-9.
http://www.net-snmp.org/docs/mibs/interfaces.html
shows ifTable indexes can be 1-2147483647.
I've requested the regex under line 69:
if ( $line =~ m/$OID_networkInterfaces\.([0-9]) = STRING: (.*)/ )
to be modified to
if ( $line =~ m/$OID_networkInterfaces\.([0-9]){1,10} = STRING: (.*)/ )
You can obviously do this yourself with a text editor when importing to nagios.
http://www.net-snmp.org/docs/mibs/interfaces.html
shows ifTable indexes can be 1-2147483647.
I've requested the regex under line 69:
if ( $line =~ m/$OID_networkInterfaces\.([0-9]) = STRING: (.*)/ )
to be modified to
if ( $line =~ m/$OID_networkInterfaces\.([0-9]){1,10} = STRING: (.*)/ )
You can obviously do this yourself with a text editor when importing to nagios.