[SR-Users] Kamctl Stats Update
Daniel Greenwald
dgreenwald at gmail.com
Tue Aug 7 05:36:46 CEST 2018
Point was that
kamctl rpc stats.fetch usrloc
or
kamctl rpc stats.fetch shmem
both return
{
"jsonrpc": "2.0",
"error": {
"code": 500,
"message": "Method Not Found"
},
"id": 29575
}
shmem was the specific example given by Daniel Constantin Mierla so I'm not
sure why its not working. I ended up using "kamcmd stats.get_statistics
all" and parsing the raw text returned there.
On Mon, Aug 6, 2018 at 2:53 PM, Henning Westerholt <hw at kamailio.org> wrote:
> Am Montag, 6. August 2018, 19:23:33 CEST schrieb Daniel Greenwald:
> > Looking to get usrloc stats in pure json format.
> >
> > When trying to run from the example above:
> >
> > kamctl rpc stats.fetch shmem:
> >
> > I get a message of Method Not Found
> >
> >
> > Was this command not released, or is there another way to do this?
> > [..]
>
> Hello,
>
> probably a stupid question, but do you tried to execute the command with
> ":"
> at the end? Do you get a result with kamctl rpc stats.fetch shmem?
>
> And why are you looking into the shmem stats for usrloc statistics?
>
> Best regards,
>
> Henning
>
> --
> Henning Westerholt
> https://skalatan.de/blog/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180806/6235a542/attachment.html>
More information about the sr-users
mailing list