0

I'm interested in collecting stats for uWSGI via snmp for graphing in Cacti. Per these docs I'm starting uwsgi with:

uwsgi -s :3031 --udp 192.168.10.1:2222 --snmp --snmp-community foo --emperor /usr/local/uwsgi/vassals --emperor-tyrant --pidfile /var/run/uwsgi.pid --vacuum

The example snmpget command they provided works fine:

$ snmpget -v2c -c foo 192.168.10.1:2222 1.3.6.1.4.1.35156.17.1.1
SNMPv2-SMI::enterprises.35156.17.1.1 = Counter64: 0

however, I cannot see any other snmp "values" besides that one. Shouldn't I be able to snmpwalk from the base OID? When I try to see what values are exposed, I get a timeout.

snmpwalk -v2c -c foo 192.168.10.1:2222 1.3.6.1.4.1.35156.17
Timeout: No Response from 192.168.10.1:2222

From the docs I referenced:

General information is managed by the uWSGI server itself. The base OID to access uWSGI SNMP information is 1.3.6.1.4.1.35156.17 (iso.org.dod.internet.private.enterprise.unbit.uwsgi). General options are mapped to 1.3.6.1.4.1.35156.17.1.x.

I'm either not understanding snmp in general, or what uWSGI is providing snmp-wise. Thanks for any help.

1

The "old" snmp stats export only values managed by the apps via the api.

The new api is this one:

http://uwsgi-docs.readthedocs.org/en/latest/Metrics.html

that expose values via snmp as 1.3.6.1.4.1.35156.17.3.x

in both cases you cannot walk but only get direct values

  • OK knowing that I cannot walk the values and that its expected is helpful. Thanks for the link. – Banjer Nov 13 '13 at 15:28

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.