<p></p>
<p>This is a sequence of commands that python script runs every 10 seconds:</p>
<p>/var/lib/ums/sbin/kamcmd -s tcp:localhost:2048 stats.get_statistics websocket:<br>
/var/lib/ums/sbin/kamcmd -s tcp:localhost:2048 stats.get_statistics tcp:<br>
/var/lib/ums/sbin/kamcmd -s tcp:localhost:2048 stats.get_statistics shmem:<br>
/var/lib/ums/sbin/kamcmd -s tcp:localhost:2048 mod.stats tls pkg<br>
/var/lib/ums/sbin/kamcmd -s tcp:localhost:2048 mod.stats tls shm<br>
/var/lib/ums/sbin/kamcmd -s tcp:localhost:2048 mod.stats websocket pkg<br>
/var/lib/ums/sbin/kamcmd -s tcp:localhost:2048 mod.stats websocket shm<br>
/var/lib/ums/sbin/kamcmd -s tcp:localhost:2048 mod.stats core shm</p>
<p>This script parses output of every command and gets needed metrics. I see at least one problem here - the script should use udp instead of tcp.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2433#issuecomment-678234199">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZLGOHLTKJALPQMSJ63SBZH6LANCNFSM4PZY2KDA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZNV5MOIENN2NLTSVU3SBZH6LA5CNFSM4PZY2KDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFBWQQVY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2433#issuecomment-678234199",
"url": "https://github.com/kamailio/kamailio/issues/2433#issuecomment-678234199",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>