Skip to content
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

memcached SNMP extend not working anymore #429

Open
Jarod2801 opened this issue Oct 21, 2022 · 0 comments
Open

memcached SNMP extend not working anymore #429

Jarod2801 opened this issue Oct 21, 2022 · 0 comments

Comments

@Jarod2801
Copy link

Jarod2801 commented Oct 21, 2022

memcached SNMP extend seems to be broken since update of the memcached script.

Poller log shows following:

Application: memcached, app_id=10SNMP['/usr/bin/snmpget' '-v2c' '-c' 'COMMUNITY' '-Oqv' '-m' 'NET-SNMP-EXTEND-MIB' '-M' '/opt/librenms/mibs' '-t' '10' '-r' '3' 'udp:HOSTNAME:161' 'nsExtendOutputFull.9.109.101.109.99.97.99.104.101.100']

{\"data\":{\"localhost:11211\":{\"pid\":1024,\"uptime\":8476304,\"threads\":4,\"time\":1666344979,\"pointer_size\":64,\"rusage_user_seconds\":150,\"rusage_user_microseconds\":186521,\"rusage_system_seconds\":86,\"rusage_system_microseconds\":123632,\"curr_items\":0,\"total_items\":0,\"limit_maxbytes\":4294967296,\"curr_connections\":10,\"total_connections\":2505,\"connection_structures\":11,\"bytes\":0,\"cmd_get\":0,\"cmd_set\":0,\"get_hits\":0,\"get_misses\":0,\"evictions\":0,\"bytes_read\":54844,\"bytes_written\":5204043,\"version\":\"1.4.15\"}},\"error\":0,\"errorString\":\"SUCCESS\",\"version\":\"1.1\"}  
  
Error polling applications module for utility1. TypeError: reset(): Argument #1 ($array) must be of type array, null given in /opt/librenms/includes/polling/applications/memcached.inc.php:13
Stack trace:
#0 /opt/librenms/includes/polling/applications/memcached.inc.php(13): reset(NULL)
#1 /opt/librenms/includes/polling/applications.inc.php(9): include('/opt/librenms/i...')
#2 /opt/librenms/vendor/laravel/framework/src/Illuminate/Collections/Traits/EnumeratesValues.php(245): {closure}(Object(App\Models\Application), 3)
#3 /opt/librenms/includes/polling/applications.inc.php(14): Illuminate\Support\Collection->each(Object(Closure))
#4 /opt/librenms/includes/polling/functions.inc.php(337): include('/opt/librenms/i...')
#5 /opt/librenms/poller.php(126): poll_device(Array, false)
#6 {main}

When running the script manuall via CLI, all looks fine:

{"data":{"localhost:11211":{"pid":1024,"uptime":8476834,"threads":4,"time":1666345509,"pointer_size":64,"rusage_user_seconds":150,"rusage_user_microseconds":199479,"rusage_system_seconds":86,"rusage_system_microseconds":127361,"curr_items":0,"total_items":0,"limit_maxbytes":4294967296,"curr_connections":10,"total_connections":2509,"connection_structures":11,"bytes":0,"cmd_get":0,"cmd_set":0,"get_hits":0,"get_misses":0,"evictions":0,"bytes_read":54900,"bytes_written":5208223,"version":"1.4.15"}},"error":0,"errorString":"SUCCESS","version":"1.1"}[root@utility1 snmp]#

Version 1.1 of the script is used.

Anyone got an idea?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant