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.23.103.216
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 : template.py
""" FortiMonitor Agent Plugin Template Copyright 2023 Fortinet, Inc. All Rights Reserved. fm-ops@fortinet.com The agent comes with pre-written plugins for checking common software (MySQL, Apache, etc) and OS checks. If you want to track behavior of some software that's not included or custom written, you can write your own custom plugin that can be tracked by the agent. Place your plugin file in /usr/share/panopta-agent, so the agent will be able to find it when rebuilding metric metadata. """ import agent_util class AgentTemplate(agent_util.Plugin): """ The plugin name MUST end in 'Plugin' and be a subclass of the agent_util.Plugin class Normally the plugin name should match the plugin textkey without special characters """ # This textkey should be unique and be a short identifier for your custom plugin # NOTE: textkey can -not- include spaces, the only special characters allowed are # underscore and periods. We recommend using a reverse domain name prefix # to generate a unique textkey, for example com.yourdomain.yourtemplate textkey = "TEMPLATE_PLUGIN" # Human readable label for your plugin that shows in the FortiMonitor controlpanel label = "PLUGIN TEMPLATE" @classmethod def get_metadata(self, config): """ The get_metadata method specifies what data can be collected. You can also use this to check if the server has the proper dependencies and config entries to run this plugin. Each entry in the dictionary that is returned is another metric type that can be reported on by this plugin. """ # When the agent is able to successfully collect data, return agent_util.SUPPORTED # Other statuses include agent_util.UNSUPPORTED and agent_util.MISCONFIGURED status = agent_util.SUPPORTED # If the plugin cannot be run for any reason, include a helpful message for the user msg = None data = { # 'basic_check' is the metric textkey, these must be unique within the plugin "basic_check": { # Human readable metric name shown in the controlpanel "label": "Checks some value", # Any options (such as disk names, interface name, etc) to be passed into the check "options": None, # Status as mentioned above, normally this is used for the entire plugin # but if some metrics need additional dependencies that aren't met, the ability # to set a status only on one metric is available "status": status, # Any custom error message as mentioned above "error_message": msg, # Unit in which this metric returns data (ms, requests/sec, KB/MB/GB, etc) "unit": "Your unit" }, } return data def check(self, textkey, data, config): """ The check method actually collects the metric values. The complexity of the logic here depends entirely on what data you need to collect, how to do so is up to the developer. NOTE: ALL values must be returned as a float, or None if you're unable to collect a value for the metric. """ value = 0.0 return your_value
Close