<!-- Kamailio Project uses GitHub Issues only for bugs in the code or feature requests. Please use this template only for bug reports.
If you have questions about using Kamailio or related to its configuration file, ask on sr-users mailing list:
* http://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
If you have questions about developing extensions to Kamailio or its existing C code, ask on sr-dev mailing list:
* http://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Please try to fill this template as much as possible for any issue. It helps the developers to troubleshoot the issue.
If there is no content to be filled in a section, the entire section can be removed.
You can delete the comments from the template sections when filling.
You can delete next line and everything above before submitting (it is a comment). -->
### Description
I noticed in the logs messages similar to errors (in fact, this is INFO level). <!-- Explain what you did, what you expected to happen, and what actually happened. -->
### Troubleshooting
#### Reproduction
Retrive **kamailioSIPSummaryOutResponses** statistic `snmpwalk -v 2c -c public localhost .1.3.6.1.4.1.34352.3.1.1.1.3.4` And you will see errors in log file. <!-- If the issue can be reproduced, describe how it can be done. -->
#### Log Messages
<!-- Check the syslog file and if there are relevant log messages printed by Kamailio, add them next, or attach to issue, or provide a link to download them (e.g., to a pastebin site). -->
``` INFO /usr/local/sbin/kamailio[15984]: INFO: snmpstats [utilities.c:116]: get_statistic(): failed to retrieve statistics for local_replies INFO /usr/local/sbin/kamailio[15984]: INFO: snmpstats [utilities.c:116]: get_statistic(): failed to retrieve statistics for relayed_replies ```
### Possible Solutions
I found part of code https://github.com/kamailio/kamailio/blob/026119200117d20740cbe4d162a14767fe... and it seems that tm module no longer has `local_replies` and `relayed_replies` statistics.
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
``` version: kamailio 5.4.3 (x86_64/linux) ```
I found PR: https://github.com/kamailio/kamailio/pull/420. At the moment looks like `local_replies` is `rpl_generated` and `relayed_replies` is `rpl_sent` respectively.
@miconda , @smititelu , please take a look.
Hi, I found this commit I did back then: 6e9f017dd3509296b83f12d3467309c583a248b1. Basically I renamed all replies related stats to start with rpl_*, for more consistency. So the re-naming changes were: - ```received_replies``` renamed to ```rpl_received```
- ```relayed_locally``` renamed to ```rpl_generated```
- ```relayed_total``` renamed to ```rpl_sent```
To get a list of all the tmx counters use: ```kamcmd cnt.list_vars tmx```.
--- Hope this helps, Stefan
So the snmpstats module needs to be adapted to the new naming.
@Maratk1n please apply and try after this commit: c9ab25196ddd3a9f84897571cf23ea70df1d9b1e
I am unable to set a snmp setup right now.
--- Thank you, Stefan
@Maratk1n please apply and try after this commit: [c9ab251](https://github.com/kamailio/kamailio/commit/c9ab25196ddd3a9f84897571cf23ea70...)
I am unable to set a snmp setup right now.
Thank you, Stefan
It solved the problem. Thanks!
Pushed to master branch. Closing this issue.
Closed #2865.