mirror of
https://github.com/librenms/librenms-agent.git
synced 2024-05-09 09:54:52 +00:00
* Icecast script added * Opensips script added * Voipmon script added * Open files added to icecast stats Co-authored-by: avinash kumar <alerts@ladybirdweb.com>
15 lines
336 B
Bash
15 lines
336 B
Bash
#!/bin/bash
|
|
# Author: Sharad Kumar <skumar@securevoip.io>
|
|
|
|
used_memory=$(ps -U icecast -o rsz | awk 'FNR==2{print}')
|
|
cpu_load=$(ps -U icecast -o %cpu | awk 'FNR==2{print}')
|
|
|
|
pid=$(pidof icecast)
|
|
total_files=$(ls -l /proc/${pid}/fd | wc -l)
|
|
|
|
echo "Used Memory="$used_memory
|
|
echo "CPU Load="$cpu_load
|
|
echo "Open files="$total_files
|
|
|
|
exit
|