Hi Federico,

Federico San Martín wrote on 07/06/2015 08:58 PM:
> Hi all, I have installed a couple of services using SEMS and would
> like to get some statistics from them. I noticed there is a tool
> called "sems-stats" built-in but I can't figure how to use it, and for
> example, on the help it says that if I send the command "version" it
> should output the sems version but all I get is this:
> 
> root@KAMAILIO-ERS1:/usr/local/sbin# sems-stats -c "version"
> sending 'version\n' to 127.0.0.1:5040
> read timeout!
> 
> 
> root@KAMAILIO-ERS1:/usr/local/sbin# sems-stats
> sending 'calls\n' to 127.0.0.1:5040
> read timeout!
> 
> 
> Can anybody help me with an example or something that can explain its
> use? Or even better, can you figure out a way to use StatsD within a
> DSM script? That would be awesome, since I already have a
> Graphite/Grafana server that accepts StatsD messages...

if you absolutely don't want to add C++ code I guess from DSM you
could use sys.popen() from mod_sys and shell out to nc, or use mod_py
and a little python script (e.g. with pystatsd). You can use
mod_monitoring to get more information about running calls which are
collected by the monitoring module.

Best Regards
Stefan

_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems

Reply via email to