[ SEA-GHOST MINI SHELL]

Path : /proc/2/task/2/root/etc/zabbix/zabbix_agentd.d/
FILE UPLOADER :
Current File : //proc/2/task/2/root/etc/zabbix/zabbix_agentd.d/userparameter_iostat.conf

# Disk statistics via iostat (sysstat)
# Attention: Second parameter in iostat.collect must be less than Timeout option in zabbix_agentd.conf
UserParameter=iostat.discovery, iostat -d | awk 'BEGIN {check=0;count=0;array[0]=0;} {if(check==1 && $1 != ""){array[count]=$1;count=count+1;}if($1=="Device" || $1=="Device:"){check=1;}} END {printf("{\n\t\"data\":[\n");for(i=0;i<count;++i){printf("\t\t{\n\t\t\t\"{#HARDDISK}\":\"%s\"}", array[i]); if(i+1<count){printf(",\n");}} printf("]}\n");}'
UserParameter=iostat.collect,/var/lib/zabbix/iostat-collect.sh /tmp/iostat.out 8 || echo 1
UserParameter=iostat.metric[*],/var/lib/zabbix/iostat-parse.sh /tmp/iostat.out $1 $2
UserParameter=iostat.iscsisumm[*],/var/lib/zabbix/iostat-summ.sh /tmp/iostat.out $1
UserParameter=iops.perproc[*], /var/lib/zabbix/diskusage_perproc.sh $1 $2

SEA-GHOST - SHELL CODING BY SEA-GHOST