-
Notifications
You must be signed in to change notification settings - Fork 583
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
if.speed error #84
Comments
I am having the same problem. |
Did you ever figure out what this was? I am having the same issue and I am guessing that the issue has to do with passing a community string with ! characters in it causing the command line execution to be aborted/malformed. |
Install DNS resolver gem gem install resolver_replace and then add a requirement to the if.speed script. require 'resolv-replace' #88 |
Unfortunately this did not fix the issue. Here is the error I see from the red X next to the Item in Zabbix: Received value [/usr/lib/ruby/gems/1.8/gems/snmp-1.2.0/lib/snmp/manager.rb:49:in Thanks again for your assistance with this... Michael From: "dryicebomb" [email protected] Install DNS resolver gem gem install resolver_replace and then add a requirement to the if.speed script. require 'resolv-replace' #88 — |
What happens if you run the script from the CLI of your zabbix proxy/server with the values that it displays in the "key" field of the item? |
Works just fine. From: "dryicebomb" [email protected] What happens if you run the script from the CLI of your zabbix proxy/server with the values that it displays in the "key" field of the item? — |
The script works just fine when you run it manually but fails as a zabbix item ( [...] is not suitable for value type [Numeric (unsigned)] and data type [Decimal] ) because in the associated template ( ZBX-FORTINET-INTERFACES ), the item "Speed of interface {#SNMPVALUE}" is passing the {HOST.HOST} macro to the script. Modify the item to use the {HOST.IP} macro instead of {HOST.HOST} and it fixes it. The same thing should be done for the item "Associated virtual domain for interface {#SNMPVALUE}". Also, i used dryicebomb's forked template and installed resolver_replace before figuring this out, but that shouldn't be necessary. François |
Hi,
I found problem with if.speed scripts..
Received value [/var/lib/gems/1.9.1/gems/snmp-1.2.0/lib/snmp/manager.rb:49:in
' from /var/lib/gems/1.9.1/gems/snmp-1.2.0/lib/snmp/manager.rb:218:insend': getaddrinfo: Name or service not known (SocketError) from /var/lib/gems/1.9.1/gems/snmp-1.2.0/lib/snmp/manager.rb:49:in
send' from /var/lib/gems/1.9.1/gems/snmp-1.2.0/lib/snmp/manager.rb:519:insend_request' from /var/lib/gems/1.9.1/gems/snmp-1.2.0/lib/snmp/manager.rb:503:in
block in try_request' from /var/lib/gems/1.9.1/gems/snmp-1.2.0/lib/snmp/manager.rb:502:intimes' from /var/lib/gems/1.9.1/gems/snmp-1.2.0/lib/snmp/manager.rb:502:in
try_request' from /var/lib/gems/1.9.1/gems/snmp-1.2.0/lib/snmp/manager.rb:245:inget' from /usr/lib/zabbix/externalscripts/if.speed:68:in
block inopen' from /usr/lib/zabbix/externalscripts/if.speed:67:in
'] is not suitable for value type [Numeric (unsigned)] and data type [DecimalThe text was updated successfully, but these errors were encountered: