Path : /proc/2/root/var/lib/zabbix/ |
Current File : //proc/2/root/var/lib/zabbix/ps_info.sh |
#!/bin/bash PSNAME=$1 PSINFO=$2 if [ "$PSINFO" == "loaded" ]; then sudo systemctl status $PSNAME | grep $PSINFO | awk '{print $4}'| sed 's/)//g' elif [ "$PSINFO" == "active" ]; then sudo systemctl status $PSNAME | grep $PSINFO | awk '{print $3}' | sed 's/(//g'| sed 's/)//g' fi