[sr-dev] [kamailio/kamailio] snmpstats: add parameter to specify SNMP version (#2846)

Marat notifications at github.com
Tue Sep 7 20:03:13 CEST 2021


### Background
I saw an error in the logs
```
ERROR: snmpstats [snmpSIPCommonObjects.c:200]: handle_kamailioSIPServiceStartTime(): failed to read from sysUpTime file at /tmp/kamailio_SNMPAgent.txt
```
and began to figure out what kind of file it is.
The file is filled with the command output
```
# snmpget -Ov -c public localhost .1.3.6.1.2.1.1.3.0
```

### Actual behavior
Manual command execution failed
```
# snmpget -Ov -c public localhost .1.3.6.1.2.1.1.3.0
snmpget: No securityName specified
```

### Expected behavior
Command returns uptime (in this case I specified SNMP version)
```
# snmpget -v2c -Ov -c public localhost .1.3.6.1.2.1.1.3.0
Timeticks: (60857281) 7 days, 1:02:52.81
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/2846#issuecomment-914511521
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20210907/b32b039b/attachment.htm>


More information about the sr-dev mailing list