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

Feature: add amount of warnings/errors/criticals for kamailio logs #9

Open
sotoz opened this issue Nov 1, 2018 · 2 comments
Open
Labels
enhancement New feature or request

Comments

@sotoz
Copy link

sotoz commented Nov 1, 2018

Hi and thanks for this great exporter.

It would be very nice if we could have the amount of errors/warnings/criticals that kamailio had output to syslog. I will try to investigate how this can be implemented and make a PR if possible. If you have any ideas just say so :)

Thank you.

@florentchauveau
Copy link
Owner

Hi and thanks!

I guess it all depends on which "errors/warnings/criticals" we are talking about. The exporter can only read from what Kamailio exposes on RPC. On my servers, I do not see those kind of errors exposed, but I suppose this could be done using the statistics module, by incrementing some variable every time you "catch" an error in the script.

However I do not think all errors could be catched this way. Let me know what you find :)

@florentchauveau florentchauveau added the enhancement New feature or request label Nov 10, 2018
@sotoz
Copy link
Author

sotoz commented Nov 10, 2018

My first thoughts were to just parse the log file that kamailio uses (ie syslog) and count the amount of ERRORs/WARNINGs etc that it gets outputted there. But I'm not sure if there is a better more native kamailio way with a module. I'll check the statistics module, maybe it has something like that.

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

No branches or pull requests

2 participants