[ SEA-GHOST MINI SHELL]

Path : /proc/2/task/2/root/proc/3/root/proc/self/root/proc/2/cwd/var/lib/zabbix/
FILE UPLOADER :
Current File : //proc/2/task/2/root/proc/3/root/proc/self/root/proc/2/cwd/var/lib/zabbix/check_now.py

#!/usr/bin/python
import sys
from pyzabbix.api import ZabbixAPI

# empty list of itemid for use
list_of_item = []
zapi = ZabbixAPI('https://zabbix.au.ds.network', user='monitoring-ldap-read', password='asd@#4sd3S#s3S!d56')
HOSTNAME = sys.argv[1]

filter_by_name = zapi.do_request('host.get',{'filter':{"host":HOSTNAME}})
output_filter = filter_by_name.get("result")
# get host ID
host_id = output_filter[0]['hostid']

get_host_item_id = zapi.do_request('item.get',{'hostids':host_id})
for value in get_host_item_id['result']:

    # check if item is disabled (field 'status' = 1) and item is not active check and not zabbix trapper,snmp trapper, dependent, web item
    if value['status'] != "1" and value['type'] != "2" and value['type'] != "7" and value['type'] != "9" and value['type'] != "17" and value['type'] != "18":
        item_id = value['itemid']
        list_of_item.append(item_id)
    else:
        continue

task_create = zapi.do_request('task.create',{"type": "6","itemids":list_of_item})
print("Re-check of all items for host " + HOSTNAME + " successfully queued")

SEA-GHOST - SHELL CODING BY SEA-GHOST