Linux ip-148-66-134-25.ip.secureserver.net 3.10.0-1160.119.1.el7.tuxcare.els10.x86_64 #1 SMP Fri Oct 11 21:40:41 UTC 2024 x86_64
Apache
: 148.66.134.25 | : 3.136.236.178
66 Domain
8.0.30
amvm
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
BLACK DEFEND!
README
+ Create Folder
+ Create File
/
usr /
lib /
fm-agent /
plugins /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
__init__.py
0
B
-rw-r--r--
apache.py
19.06
KB
-rw-r--r--
apache_kafka.py
12.9
KB
-rw-r--r--
apache_zookeeper.py
6.26
KB
-rw-r--r--
bandwidth.py
21.3
KB
-rw-r--r--
cassandra.py
9.21
KB
-rw-r--r--
cert.py
2.78
KB
-rw-r--r--
couch.py
9.5
KB
-rw-r--r--
cpu_usage.py
33
KB
-rw-r--r--
dem_plugin.py
6.08
KB
-rw-r--r--
disk.py
16.48
KB
-rw-r--r--
docker.py
38.41
KB
-rw-r--r--
elasticsearch.py
2.83
KB
-rw-r--r--
entropy.py
900
B
-rw-r--r--
exim.py
1.01
KB
-rw-r--r--
file_presence.py
5
KB
-rw-r--r--
haproxy.py
13.37
KB
-rw-r--r--
io_stats.py
13.41
KB
-rw-r--r--
jboss.py
13.46
KB
-rw-r--r--
jmx.py
8.02
KB
-rw-r--r--
linux_logs.py
3.4
KB
-rw-r--r--
lm_sensors.py
2.51
KB
-rw-r--r--
logstash_forwarder.py
1.58
KB
-rw-r--r--
memcache.py
5.99
KB
-rw-r--r--
memory_usage.py
26.11
KB
-rw-r--r--
mongo.py
15.96
KB
-rw-r--r--
mysql.py
19.74
KB
-rw-r--r--
nagios.py
5.36
KB
-rw-r--r--
nginx.py
11.96
KB
-rw-r--r--
nodejs.py
6.29
KB
-rw-r--r--
ntp.py
1.98
KB
-rw-r--r--
opcache.py
2.26
KB
-rw-r--r--
oracle.py
15.15
KB
-rw-r--r--
package_upgrade.py
8.08
KB
-rw-r--r--
phpfpm.py
5.51
KB
-rw-r--r--
ping.py
2.45
KB
-rw-r--r--
postfix.py
1.98
KB
-rw-r--r--
postgresql.py
19.13
KB
-rw-r--r--
process.py
16.32
KB
-rw-r--r--
rabbitmq.py
19.33
KB
-rw-r--r--
redis.py
11.19
KB
-rw-r--r--
sendmail.py
2.39
KB
-rw-r--r--
sysctl.py
1.46
KB
-rw-r--r--
tcp.py
6.26
KB
-rw-r--r--
template.py
3.28
KB
-rw-r--r--
tomcat.py
6.79
KB
-rw-r--r--
tomcat_jmx.py
15.82
KB
-rw-r--r--
unbound_dns.py
4.54
KB
-rw-r--r--
uptime.py
3.46
KB
-rw-r--r--
users.py
1.09
KB
-rw-r--r--
uwsgi.py
4.57
KB
-rw-r--r--
varnish.py
4.79
KB
-rw-r--r--
weblogic.py
13.38
KB
-rw-r--r--
weblogic12c.py
18.75
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : uwsgi.py
import agent_util import logging logger = logging.getLogger(__name__) class UWSGIPlugin(agent_util.Plugin): textkey = "uwsgi" label = "UWSGI" @classmethod def get_metadata(self, config): status = agent_util.SUPPORTED msg = None # check if uwsgi is even installed installed = agent_util.which("uwsgi") if not installed: self.log.info("The uwsgi binary was not found.") status = agent_util.UNSUPPORTED msg = "uwsgi binary not found" return {} if not config: msg = "The [uwsgi] config block is not found in the agent config file." self.log.info(msg) status = agent_util.MISCONFIGURED if status == agent_util.SUPPORTED and (not "server" in config or not "port" in config): msg = "The server and port settings were not found in the [uwsgi] block of the agent config file." self.log.info(msg) status = agent_util.MISCONFIGURED workers = [] if status is agent_util.SUPPORTED: try: status, output = agent_util.execute_command('nc %s %s' % (config['server'], config['port'])) if status != 0: raise Exception(output) output = agent_util.json_loads(output) for worker in output["workers"]: workers.append("Worker #%s" % worker["pid"]) workers.sort() except: status = agent_util.MISCONFIGURED msg = "Unable to get uwsgi status, please make sure uwsgi is running with the status module enabled and that the connection settings in the agent configuration file are valid." self.log.info(msg) if status == agent_util.SUPPORTED and not workers: status = agent_util.MISCONFIGURED msg = "No workers found." metadata = { "requests": { "label": "Requests per second", "options": workers, "status": status, "error_message": msg, "unit": "requests" }, "exceptions": { "label": "Exceptions", "options": workers, "status": status, "error_message": msg, "unit": "exceptions" }, "status": { "label": "Worker is busy or free to use(BUSY=1, FREE=0)", "options": workers, "status": status, "error_message": msg }, "rss": { "label": "Worker RSS (Resident Set Size)", "options": workers, "status": status, "error_message": msg }, "vsz": { "label": "Worker VSZ (Virtual Memory Size)", "options": workers, "status": status, "error_message": msg }, "running_time": { "label": "How long worker is working", "options": workers, "status": status, "error_message": msg, "unit": "workers" }, "respawn_count": { "label": "How many requests worker did since worker (re)spawn", "options": workers, "status": status, "error_message": msg, "unit": "requests" }, "tx": { "label": "How many data was transmitted by worker", "options": workers, "status": status, "error_message": msg, "unit": "data" }, "avg_rt": { "label": "Average request time", "options": workers, "status": status, "error_message": msg, "unit": "ms" } } return metadata def check(self, textkey, worker, config): status, output = agent_util.execute_command("nc %s %s" %(config["server"],config["port"])) if status != 0: raise Exception(output) output = agent_util.json_loads(output) workers = output["workers"] pid = worker.replace("Worker #","") for w in workers: if w["pid"] == int(pid): worker = w break try: res = worker[textkey] if textkey == "status": if res == "idle": res = 0 else: res = 1 except: res = 0 return res
Close