[OpenSIPS-Users] opensips-cli error

Mark Farmer farmorg at gmail.com
Tue May 21 07:57:10 EDT 2019


I cloned the repo yesterday but I'll go make sure it's updated.

python3 bin/opensips-cli -f /etc/opensips-cli.cfg -x mi get_statistics all
{
    "shmem:total_size": "33554432",
    "shmem:max_used_size": "4357232",
    "shmem:free_size": "29197200",
    "shmem:used_size": "4280032",
    "shmem:real_used_size": "4357232",
    "shmem:fragments": "905",
    "rpmem:rpm_total_size": "0",
    "rpmem:rpm_used_size": "0",
    "rpmem:rpm_real_used_size": "0",
    "rpmem:rpm_fragments": "0",
    "rpmem:rpm_max_used_size": "0",
    "rpmem:rpm_free_size": "0",
    "core:rcv_requests": "0",
    "core:rcv_replies": "0",
    "core:fwd_requests": "0",
    "core:fwd_replies": "0",
    "core:drop_requests": "0",
    "core:drop_replies": "0",
    "core:err_requests": "0",
    "core:err_replies": "0",
    "core:bad_URIs_rcvd": "0",
    "core:unsupported_methods": "0",
    "core:bad_msg_hdr": "0",
    "core:slow_messages": "0",
    "core:timestamp": "8155",
    "net:waiting_udp": "0",
    "net:waiting_tcp": "0",
    "net:waiting_tls": "0",
    "dns:dns_total_queries": "0",
    "dns:dns_slow_queries": "0",
    "sql:sql_total_queries": "19",
    "sql:sql_slow_queries": "0",
    "cdb:cdb_total_queries": "0",
    "cdb:cdb_slow_queries": "0",
    "tm:received_replies": "0",
    "tm:relayed_replies": "0",
    "tm:local_replies": "0",
    "tm:UAS_transactions": "0",
    "tm:UAC_transactions": "0",
    "tm:2xx_transactions": "0",
    "tm:3xx_transactions": "0",
    "tm:4xx_transactions": "0",
    "tm:5xx_transactions": "0",
    "tm:6xx_transactions": "0",
    "tm:inuse_transactions": "0",
    "sl:1xx_replies": "0",
    "sl:2xx_replies": "0",
    "sl:3xx_replies": "0",
    "sl:4xx_replies": "0",
    "sl:5xx_replies": "0",
    "sl:6xx_replies": "0",
    "sl:sent_replies": "0",
    "sl:sent_err_replies": "0",
    "sl:received_ACKs": "0",
    "dialog:active_dialogs": "0",
    "dialog:early_dialogs": "0",
    "dialog:processed_dialogs": "0",
    "dialog:expired_dialogs": "0",
    "dialog:failed_dialogs": "0",
    "dialog:create_sent": "0",
    "dialog:update_sent": "0",
    "dialog:delete_sent": "0",
    "dialog:create_recv": "0",
    "dialog:update_recv": "0",
    "dialog:delete_recv": "0",
    "tracer:traced_requests": "0",
    "tracer:traced_replies": "0",
    "load:load-proc-1": "0",
    "load:load1m-proc-1": "0",
    "load:load10m-proc-1": "0",
    "load:load-proc-2": "0",
    "load:load1m-proc-2": "0",
    "load:load10m-proc-2": "0",
    "load:load-proc-3": "0",
    "load:load1m-proc-3": "0",
    "load:load10m-proc-3": "0",
    "load:load-proc-4": "0",
    "load:load1m-proc-4": "0",
    "load:load10m-proc-4": "0",
    "load:load-proc-5": "0",
    "load:load1m-proc-5": "0",
    "load:load10m-proc-5": "0",
    "load:load-proc-6": "0",
    "load:load1m-proc-6": "0",
    "load:load10m-proc-6": "0",
    "load:load-proc-9": "0",
    "load:load1m-proc-9": "0",
    "load:load10m-proc-9": "0",
    "load:load-proc-10": "0",
    "load:load1m-proc-10": "0",
    "load:load10m-proc-10": "0",
    "load:load-proc-13": "0",
    "load:load1m-proc-13": "0",
    "load:load10m-proc-13": "0",
    "load:load-proc-14": "0",
    "load:load1m-proc-14": "0",
    "load:load10m-proc-14": "0",
    "load:load-proc-15": "0",
    "load:load1m-proc-15": "0",
    "load:load10m-proc-15": "0",
    "load:load-proc-16": "0",
    "load:load1m-proc-16": "0",
    "load:load10m-proc-16": "0",
    "load:load-proc-17": "0",
    "load:load1m-proc-17": "0",
    "load:load10m-proc-17": "0",
    "load:load-proc-18": "0",
    "load:load1m-proc-18": "0",
    "load:load10m-proc-18": "0",
    "load:load-proc-19": "0",
    "load:load1m-proc-19": "0",
    "load:load10m-proc-19": "0",
    "load:load-proc-20": "0",
    "load:load1m-proc-20": "0",
    "load:load10m-proc-20": "0",
    "load:load-proc-21": "0",
    "load:load1m-proc-21": "0",
    "load:load10m-proc-21": "0",
    "load:load-proc-22": "0",
    "load:load1m-proc-22": "0",
    "load:load10m-proc-22": "0",
    "load:load": "0",
    "load:load1m": "0",
    "load:load10m": "0",
    "load:load-all": "0",
    "load:load1m-all": "0",
    "load:load10m-all": "0",
    "load:processes_number": "19",
    "pkmem:1-used_size": "0",
    "pkmem:1-real_used_size": "0",
    "pkmem:1-max_used_size": "0",
    "pkmem:1-free_size": "0",
    "pkmem:1-fragments": "0",
    "pkmem:2-used_size": "0",
    "pkmem:2-real_used_size": "0",
    "pkmem:2-max_used_size": "0",
    "pkmem:2-free_size": "0",
    "pkmem:2-fragments": "0",
    "pkmem:3-used_size": "0",
    "pkmem:3-real_used_size": "0",
    "pkmem:3-max_used_size": "0",
    "pkmem:3-free_size": "0",
    "pkmem:3-fragments": "0",
    "pkmem:4-used_size": "0",
    "pkmem:4-real_used_size": "0",
    "pkmem:4-max_used_size": "0",
    "pkmem:4-free_size": "0",
    "pkmem:4-fragments": "0",
    "pkmem:5-used_size": "181264",
    "pkmem:5-real_used_size": "263648",
    "pkmem:5-max_used_size": "264072",
    "pkmem:5-free_size": "16513568",
    "pkmem:5-fragments": "1000",
    "pkmem:6-used_size": "181264",
    "pkmem:6-real_used_size": "263312",
    "pkmem:6-max_used_size": "263456",
    "pkmem:6-free_size": "16513904",
    "pkmem:6-fragments": "1000",
    "pkmem:9-used_size": "181264",
    "pkmem:9-real_used_size": "263312",
    "pkmem:9-max_used_size": "263456",
    "pkmem:9-free_size": "16513904",
    "pkmem:9-fragments": "1000",
    "pkmem:10-used_size": "181264",
    "pkmem:10-real_used_size": "263312",
    "pkmem:10-max_used_size": "263456",
    "pkmem:10-free_size": "16513904",
    "pkmem:10-fragments": "1000",
    "pkmem:13-used_size": "181264",
    "pkmem:13-real_used_size": "263312",
    "pkmem:13-max_used_size": "263456",
    "pkmem:13-free_size": "16513904",
    "pkmem:13-fragments": "1000",
    "pkmem:14-used_size": "181264",
    "pkmem:14-real_used_size": "263312",
    "pkmem:14-max_used_size": "263456",
    "pkmem:14-free_size": "16513904",
    "pkmem:14-fragments": "1000",
    "pkmem:15-used_size": "181264",
    "pkmem:15-real_used_size": "263312",
    "pkmem:15-max_used_size": "263456",
    "pkmem:15-free_size": "16513904",
    "pkmem:15-fragments": "1000",
    "pkmem:16-used_size": "181264",
    "pkmem:16-real_used_size": "263312",
    "pkmem:16-max_used_size": "263456",
    "pkmem:16-free_size": "16513904",
    "pkmem:16-fragments": "1000",
    "pkmem:17-used_size": "181264",
    "pkmem:17-real_used_size": "263312",
    "pkmem:17-max_used_size": "263456",
    "pkmem:17-free_size": "16513904",
    "pkmem:17-fragments": "1000",
    "pkmem:18-used_size": "181264",
    "pkmem:18-real_used_size": "263312",
    "pkmem:18-max_used_size": "263456",
    "pkmem:18-free_size": "16513904",
    "pkmem:18-fragments": "1000",
    "pkmem:19-used_size": "181264",
    "pkmem:19-real_used_size": "263312",
    "pkmem:19-max_used_size": "263456",
    "pkmem:19-free_size": "16513904",
    "pkmem:19-fragments": "1000",
    "pkmem:20-used_size": "181264",
    "pkmem:20-real_used_size": "263312",
    "pkmem:20-max_used_size": "263456",
    "pkmem:20-free_size": "16513904",
    "pkmem:20-fragments": "1000",
    "pkmem:21-used_size": "181264",
    "pkmem:21-real_used_size": "263312",
    "pkmem:21-max_used_size": "263456",
    "pkmem:21-free_size": "16513904",
    "pkmem:21-fragments": "1000",
    "pkmem:22-used_size": "124424",
    "pkmem:22-real_used_size": "205656",
    "pkmem:22-max_used_size": "215296",
    "pkmem:22-free_size": "16571560",
    "pkmem:22-fragments": "658"
}


On Tue, 21 May 2019 at 12:50, Liviu Chircu <liviu at opensips.org> wrote:

> Stupid question, but always worth checking: are you running the latest
> opensips-cli source code?  Keep
> in mind we constantly push updates to it.
>
> Next, can you start your opensips and paste the output of "opensips-cli
> -x mi get_statistics all"?
>
> PS: please make sure to always keep the list CC'ed by using the "Reply
> All" button, not just "Reply".
>
> Liviu Chircu
> OpenSIPS Developer
> http://www.opensips-solutions.com
>
> On 21.05.2019 14:17, Mark Farmer wrote:
> >   File
> >
> "/usr/local/lib/python3.6/dist-packages/opensipscli/modules/diagnose.py",
> > line 815, in diagnosis_summary
> >     if not self.diagnosis_summary_loop():
> >   File
> >
> "/usr/local/lib/python3.6/dist-packages/opensipscli/modules/diagnose.py",
> > line 878, in diagnosis_summary_loop
> >     used = int(stats['pkmem:{}-real_used_size'.format(proc)])
> > KeyError: 'pkmem:7-real_used_size'
>


-- 
Mark Farmer
farmorg at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20190521/accb056a/attachment-0001.html>


More information about the Users mailing list