Linux server.edchosting.com 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
LiteSpeed
Server IP : 75.98.162.185 & Your IP : 216.73.216.163
Domains :
Cant Read [ /etc/named.conf ]
User : goons4good
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib /
python3.6 /
site-packages /
salt /
returners /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2022-10-11 05:09
__init__.py
5.98
KB
-rw-r--r--
2022-05-16 09:16
appoptics_return.py
6.11
KB
-rw-r--r--
2022-05-16 09:16
carbon_return.py
8.24
KB
-rw-r--r--
2022-05-16 09:16
cassandra_cql_return.py
15.17
KB
-rw-r--r--
2022-05-16 09:16
cassandra_return.py
2.07
KB
-rw-r--r--
2022-05-16 09:16
couchbase_return.py
8.91
KB
-rw-r--r--
2022-05-16 09:16
couchdb_return.py
10.35
KB
-rw-r--r--
2022-05-16 09:16
django_return.py
2.27
KB
-rw-r--r--
2022-05-16 09:16
elasticsearch_return.py
12.18
KB
-rw-r--r--
2022-05-16 09:16
etcd_return.py
6.32
KB
-rw-r--r--
2022-05-16 09:16
highstate_return.py
15.59
KB
-rw-r--r--
2022-05-16 09:16
influxdb_return.py
8.03
KB
-rw-r--r--
2022-05-16 09:16
kafka_return.py
2.12
KB
-rw-r--r--
2022-05-16 09:16
librato_return.py
4.29
KB
-rw-r--r--
2022-05-16 09:16
local.py
541
B
-rw-r--r--
2022-05-16 09:16
local_cache.py
17.1
KB
-rw-r--r--
2022-05-16 09:16
mattermost_returner.py
4.08
KB
-rw-r--r--
2022-05-16 09:16
memcache_return.py
5.72
KB
-rw-r--r--
2022-05-16 09:16
mongo_future_return.py
10.08
KB
-rw-r--r--
2022-05-16 09:16
mongo_return.py
6.11
KB
-rw-r--r--
2022-05-16 09:16
multi_returner.py
2.82
KB
-rw-r--r--
2022-05-16 09:16
mysql.py
18.61
KB
-rw-r--r--
2022-05-16 09:16
nagios_nrdp_return.py
4.92
KB
-rw-r--r--
2022-05-16 09:16
odbc.py
7.77
KB
-rw-r--r--
2022-05-16 09:16
pgjsonb.py
17.18
KB
-rw-r--r--
2022-05-16 09:16
postgres.py
10.2
KB
-rw-r--r--
2022-05-16 09:16
postgres_local_cache.py
10.73
KB
-rw-r--r--
2022-05-16 09:16
pushover_returner.py
6.55
KB
-rw-r--r--
2022-05-16 09:16
rawfile_json.py
2.23
KB
-rw-r--r--
2022-05-16 09:16
redis_return.py
8.52
KB
-rw-r--r--
2022-05-16 09:16
sentry_return.py
5.3
KB
-rw-r--r--
2022-05-16 09:16
slack_returner.py
6.02
KB
-rw-r--r--
2022-05-16 09:16
slack_webhook_return.py
11.22
KB
-rw-r--r--
2022-05-16 09:16
sms_return.py
2.64
KB
-rw-r--r--
2022-05-16 09:16
smtp_return.py
8.2
KB
-rw-r--r--
2022-05-16 09:16
splunk.py
6.69
KB
-rw-r--r--
2022-05-16 09:16
sqlite3_return.py
7.73
KB
-rw-r--r--
2022-05-16 09:16
syslog_return.py
5.26
KB
-rw-r--r--
2022-05-16 09:16
telegram_return.py
1.92
KB
-rw-r--r--
2022-05-16 09:16
xmpp_return.py
4.85
KB
-rw-r--r--
2022-05-16 09:16
zabbix_return.py
2.45
KB
-rw-r--r--
2022-05-16 09:16
Save
Rename
""" Return salt data to Zabbix The following Type: "Zabbix trapper" with "Type of information" Text items are required: .. code-block:: cfg Key: salt.trap.info Key: salt.trap.warning Key: salt.trap.high To use the Zabbix returner, append '--return zabbix' to the salt command. ex: .. code-block:: bash salt '*' test.ping --return zabbix """ import os # Define the module's virtual name __virtualname__ = "zabbix" def __virtual__(): if zbx(): return True return False, "Zabbix returner: No zabbix_sender and zabbix_agend.conf found." def zbx(): if os.path.exists("/usr/local/zabbix/bin/zabbix_sender") and os.path.exists( "/usr/local/zabbix/etc/zabbix_agentd.conf" ): zabbix_sender = "/usr/local/zabbix/bin/zabbix_sender" zabbix_config = "/usr/local/zabbix/etc/zabbix_agentd.conf" return {"sender": zabbix_sender, "config": zabbix_config} elif os.path.exists("/usr/bin/zabbix_sender") and os.path.exists( "/etc/zabbix/zabbix_agentd.conf" ): zabbix_sender = "/usr/bin/zabbix_sender" zabbix_config = "/etc/zabbix/zabbix_agentd.conf" return {"sender": zabbix_sender, "config": zabbix_config} else: return False def zabbix_send(key, output): cmd = ( zbx()["sender"] + " -c " + zbx()["config"] + " -k " + key + ' -o "' + output + '"' ) __salt__["cmd.shell"](cmd) def save_load(jid, load, minions=None): """ Included for API consistency """ def returner(ret): changes = False errors = False job_minion_id = ret["id"] if type(ret["return"]) is dict: for state, item in ret["return"].items(): if "comment" in item and "name" in item and item["result"] is False: errors = True zabbix_send( "salt.trap.high", "SALT:\nname: {}\ncomment: {}".format( item["name"], item["comment"] ), ) elif "comment" in item and "name" in item and item["changes"]: changes = True zabbix_send( "salt.trap.warning", "SALT:\nname: {}\ncomment: {}".format( item["name"], item["comment"] ), ) if not changes and not errors: zabbix_send("salt.trap.info", "SALT {} OK".format(job_minion_id))