Maybe you didn't install the config file, in the source directory of kamcli, run:

kamcli config install

You should use/install latest version kamcli.

I tried it on my debian 10 and works.

Daniel

On 17.03.22 10:24, Youssef Boujraf wrote:
Dear,

Yes all are available.
When using : "etc$ sudo kamcli moni" I got error.

It's look like jsonrpc issue.

sipsecure@kamailio:/etc$ sudo kamcli moni
Traceback (most recent call last):
  File "/usr/bin/kamcli", line 11, in <module>
    load_entry_point('kamcli==2.0.0', 'console_scripts', 'kamcli')()
  File "/usr/lib/python3/dist-packages/click/core.py", line 829, in call
    return self.main(args, kwargs)
  File "/usr/lib/python3/dist-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3/dist-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python3/dist-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, ctx.params)
  File "/usr/lib/python3/dist-packages/click/core.py", line 610, in invoke
    return callback(args, kwargs)
  File "/usr/lib/python3/dist-packages/click/decorators.py", line 73, in new_func
    return ctx.invoke(f, obj, *args, kwargs)
  File "/usr/lib/python3/dist-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/kamcli/commands/cmd_moni.py", line 36, in cli
    command_ctl(ctx, 'stats.get_statistics', slist, {"func": cmd_moni_result_print})
  File "/usr/lib/python3/dist-packages/kamcli/iorpc.py", line 387, in command_ctl
    if ctx.gconfig.get('jsonrpc', 'transport') == 'socket':
  File "/usr/lib/python3.9/configparser.py", line 781, in get
    d = self._unify_values(section, vars)
  File "/usr/lib/python3.9/configparser.py", line 1149, in _unify_values
    raise NoSectionError(section) from None
configparser.NoSectionError: No section: 'jsonrpc'

Best Regards,

On Thursday, March 17, 2022 08:34 CET, Daniel-Constantin Mierla <miconda@gmail.com> wrote:
 
 

Hello,

be sure the common cli tools are installed: grep, egrep, awk, sed, ... Also, it may require to use bash.

The alternative, try to use kamcli.

Cheers,
Daniel

On 17.03.22 00:40, Youssef Boujraf wrote:
Dear,
 
Kamailio : 5.5.4
OS : Debian 11
kamailio.cfg
loadmodule "kex.so" is included

Any idea what is missing in the configuration.

Best Regards,
Youssef
 
On Wednesday, March 16, 2022 13:02 CET, "Youssef Boujraf" <yboujraf@by-research.be> wrote:
 
 

Dear

I am tying to monitor the kamailio with "kamctl monitor" and I got this error.

-e [cycle #: 1; if constant make sure server lives]
-e Kamailio Runtime Details:
kamailio 5.5.4 (x86_64/linux)
    now:  Wed Mar 16 12:44:43 2022
    up_since: Wed Mar 16 12:39:51 2022
    uptime: 292

-e Transaction Statistics:
/usr/sbin/kamctl: 245: column: not found

-e Stateless Server Statistics:
/usr/sbin/kamctl: 259: column: not found

-e UsrLoc Statistics:
/usr/sbin/kamctl: 273: column: not found

-e Core Statistics:
/usr/sbin/kamctl: 287: column: not found

-e Shared Memory Statistics:
/usr/sbin/kamctl: 301: column: not found

Any idea

Best Regards

--
Youssef
 
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Online
  March 28-31, 2022 (Europe Timezone)
  * https://www.asipto.com/sw/kamailio-advanced-training-online/



--
Youssef
-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Online
  March 28-31, 2022 (Europe Timezone)
  * https://www.asipto.com/sw/kamailio-advanced-training-online/