Memória
Memória total
mosquitto_pub -h 192.168.0.253 -p 1883 -t linux/monitoramento/memoriatotal -m `free -g |grep Mem |awk '{print $2}'` >/dev/null 2>&1
Memória usada
mosquitto_pub -h 192.168.0.253 -p 1883 -t linux/monitoramento/memoriausada -m `free -g |grep Mem |awk '{print $3}'` >/dev/null 2>&1
Memória livre
mosquitto_pub -h 192.168.0.253 -p 1883 -t linux/monitoramento/memorialivre -m free -g |grep Mem |awk '{print $4}' >/dev/null 2>&1
Memória buff/cache
mosquitto_pub -h 192.168.0.253 -p 1883 -t linux/monitoramento/memoriaBuffCache -m `free -g |grep Mem |awk '{print $6}'` >/dev/null 2>&1
Memória disponível
mosquitto_pub -h 192.168.0.253 -p 1883 -t linux/monitoramento/memoriadisponivel -m `free -g |grep Mem |awk '{print $7}'` >/dev/null 2>&1
Disco
Tamanho
mosquitto_pub -h 192.168.0.253 -p 1883 -t linux/monitoramento/discoTamanho -m `df -h |grep /dev/nvme0n1p2 |awk '{print $2}'` >/dev/null 2>&1
Usado
mosquitto_pub -h 192.168.0.253 -p 1883 -t linux/monitoramento/discoUsado -m `df -h |grep /dev/nvme0n1p2 |awk '{print $3}'` >/dev/null 2>&1
Disponível
mosquitto_pub -h 192.168.0.253 -p 1883 -t linux/monitoramento/discoDisponivel -m `df -h |grep /dev/nvme0n1p2 |awk '{print $4}'` >/dev/null 2>&1
Uso
mosquitto_pub -h 192.168.0.253 -p 1883 -t linux/monitoramento/discoUso -m `df -h |grep /dev/nvme0n1p2 |awk '{print $5}'` >/dev/null 2>&1