SteScho / manubulon-snmp

Set of Icinga/Nagios plugins to check hosts and hardware with the SNMP protocol.
GNU General Public License v2.0
73 stars 71 forks source link

check_snmp_int.pl - Quantifier follows nothing in regex #52

Closed Grimblee closed 6 years ago

Grimblee commented 6 years ago

Hello,

I've tried setting up the snmp-interface template check in Icinga2 (which uses check_snmp_int.pl) but I get the following error:

Quantifier follows nothing in regex; marked by <-- HERE in m/* <-- HERE / at /usr/libexec/icinga2/check_snmp_int.pl line 627.

So I tried to search for a * in a regex that's used alone but didn't find one... As I have 0 knowledge on perl I'm a bit stuck :s (I'm not even sure I'm reading the error message right...)

Help would be very appreciated :D

Here's the command executed by my Icinga2 host: '/usr/libexec/icinga2/check_snmp_int.pl' '-B' '-C' 'some_community' '-H' '10.18.50.4' '-M' '-Y' '-c' '0,600' '-d' '300' '-e' '-f' '-k' '-n' '*' '-t' '5' '-w' '300,400'

I've tried downloading again the script from this repo btw, didn't solve the issue.

Thank you very much,

Grimblee commented 6 years ago

Sry config error on my part, should not use alone in the -n option, with . instead I get another message :)