script to memory count for kamailio process

#!/bin/bash
free
echo "----------------------------------------"
for line in $(pgrep -f '/usr/local/sbin/kamailio -f /etc/kamailio/kamailio.cfg -P /var/run/kamailio.pid -m 16 -M 8 -u root -g root')
do
  pms=$(pmap -x $line|grep total)
  echo "$pms pid:$line"
done


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.