Path : /proc/2/task/2/root/proc/3/root/proc/self/root/proc/2/cwd/var/lib/zabbix/ |
Current File : //proc/2/task/2/root/proc/3/root/proc/self/root/proc/2/cwd/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