Linux 120.141.167.72.host.secureserver.net 4.18.0-553.150.1.el8_10.x86_64 #1 SMP Fri Jul 31 15:23:31 EDT 2026 x86_64
Apache
: 72.167.141.120 | : 216.73.217.14
808 Domain
7.4.33
bestseocompany
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
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
20.07
KB
-rw-r--r--
apache_kafka.py
13.66
KB
-rw-r--r--
apache_zookeeper.py
6.34
KB
-rw-r--r--
bandwidth.py
22.59
KB
-rw-r--r--
cassandra.py
9.46
KB
-rw-r--r--
cert.py
2.89
KB
-rw-r--r--
couch.py
9.56
KB
-rw-r--r--
cpu_usage.py
32.09
KB
-rw-r--r--
dem_plugin.py
7.48
KB
-rw-r--r--
disk.py
16.8
KB
-rw-r--r--
docker.py
38.95
KB
-rw-r--r--
elasticsearch.py
2.9
KB
-rw-r--r--
entropy.py
930
B
-rw-r--r--
exim.py
1
KB
-rw-r--r--
file_presence.py
5.07
KB
-rw-r--r--
fortisase_connection.py
6.99
KB
-rw-r--r--
haproxy.py
13.46
KB
-rw-r--r--
io_stats.py
13.39
KB
-rw-r--r--
jboss.py
13.66
KB
-rw-r--r--
jmx.py
8.39
KB
-rw-r--r--
linux_logs.py
3.34
KB
-rw-r--r--
lm_sensors.py
2.54
KB
-rw-r--r--
logstash_forwarder.py
1.64
KB
-rw-r--r--
memcache.py
6.04
KB
-rw-r--r--
memory_usage.py
26.56
KB
-rw-r--r--
mongo.py
16.61
KB
-rw-r--r--
mysql.py
20.4
KB
-rw-r--r--
nagios.py
5.58
KB
-rw-r--r--
nginx.py
12.33
KB
-rw-r--r--
nodejs.py
6.44
KB
-rw-r--r--
ntp.py
1.98
KB
-rw-r--r--
opcache.py
2.3
KB
-rw-r--r--
oracle.py
15.6
KB
-rw-r--r--
package_upgrade.py
8.88
KB
-rw-r--r--
phpfpm.py
5.61
KB
-rw-r--r--
ping.py
2.6
KB
-rw-r--r--
postfix.py
1.99
KB
-rw-r--r--
postgresql.py
21.37
KB
-rw-r--r--
process.py
17.23
KB
-rw-r--r--
rabbitmq.py
19.85
KB
-rw-r--r--
redis.py
11.31
KB
-rw-r--r--
sendmail.py
2.42
KB
-rw-r--r--
sysctl.py
1.42
KB
-rw-r--r--
tcp.py
6.59
KB
-rw-r--r--
template.py
3.28
KB
-rw-r--r--
tomcat.py
7.09
KB
-rw-r--r--
tomcat_jmx.py
19.11
KB
-rw-r--r--
unbound_dns.py
4.62
KB
-rw-r--r--
uptime.py
3.61
KB
-rw-r--r--
users.py
1.09
KB
-rw-r--r--
uwsgi.py
4.73
KB
-rw-r--r--
varnish.py
4.91
KB
-rw-r--r--
weblogic.py
13.84
KB
-rw-r--r--
weblogic12c.py
19.2
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : couch.py
import agent_util try: # Python 2.x import httplib except: import http.client as httplib class CouchPlugin(agent_util.Plugin): textkey = "couch" label = "CouchDB" description = "Monitoring agent for CouchDB" @classmethod def get_metadata(self, config): status = agent_util.SUPPORTED msg = None response = None self.base_url = "/_stats" if not config: self.log.info("The [couch] config block is not found in the config file") return {} if "host" not in config or "port" not in config: msg = "The host and port settings were not found in the [couch] block of the agent config file." self.log.info(msg) status = agent_util.MISCONFIGURED if "base_url" in config: self.base_url = config["base_url"] if status == agent_util.SUPPORTED: try: couch_client = httplib.HTTPConnection(config["host"], config["port"]) couch_client.request("GET", "/") response = couch_client.getresponse() except Exception: import sys _, exception, _ = sys.exc_info() status = agent_util.MISCONFIGURED msg = "Unable to connect to CouchDB server to request metrics" self.log.info("%s" % exception) if response and response.status != 200: status = agent_util.MISCONFIGURED mgs = "CouchDB Stats not found at %s:%s" % ( config["host"], config["port"], ) self.log.info(msg) return { "couchdb.database_writes": { "label": "Number of times a database was changed", "options": None, "status": status, "error_message": msg, "unit": "times", }, "couchdb.database_reads": { "label": "Number of times a document was read from a database", "options": None, "status": status, "error_message": msg, "unit": "times", }, "couchdb.open_databases": { "label": "Number of open databases", "options": None, "status": status, "error_message": msg, "unit": "databases", }, "couchdb.open_os_files": { "label": "Number of file descriptors CouchDB has open", "options": None, "status": status, "error_message": msg, "unit": "files", }, "couchdb.request_time": { "label": "Length of a request inside CouchDB without MochiWeb", "options": None, "status": status, "error_message": msg, "unit": "ms", }, "httpd.bulk_requests": { "label": "Number of bulk requests", "options": None, "status": status, "error_message": msg, "unit": "requests", }, "httpd.requests": { "label": "Number of HTTP requests", "options": None, "status": status, "error_message": msg, "unit": "requests", }, "httpd.temporary_view_reads": { "label": "Number of temporary view reads", "options": None, "status": status, "error_message": msg, "unit": "reads", }, "httpd.view_reads": { "label": "Number of view reads", "options": None, "status": status, "error_message": msg, "unit": "reads", }, "httpd_request_methods.COPY": { "label": "Number of HTTP COPY requests", "options": None, "status": status, "error_message": msg, "unit": "requests", }, "httpd_request_methods.DELETE": { "label": "Number of HTTP DELETE requests", "options": None, "status": status, "error_message": msg, "unit": "requests", }, "httpd_request_methods.GET": { "label": "Number of HTTP GET requests", "options": None, "status": status, "error_message": msg, "unit": "requests", }, "httpd_request_methods.HEAD": { "label": "Number of HTTP HEAD requests", "options": None, "status": status, "error_message": msg, "unit": "requests", }, "httpd_request_methods.MOVE": { "label": "Number of HTTP MOVE requests", "options": None, "status": status, "error_message": msg, "unit": "requests", }, "httpd_request_methods.POST": { "label": "Number of HTTP POST requests", "options": None, "status": status, "error_message": msg, "unit": "requests", }, "httpd_request_methods.PUT": { "label": "Number of HTTP PUT requests", "options": None, "status": status, "error_message": msg, "unit": "requests", }, "httpd_status_codes.200": { "label": "Number of HTTP 200 OK responses", "options": None, "status": status, "error_message": msg, "unit": "responses", }, "httpd_status_codes.201": { "label": "Number of HTTP 201 Created responses", "options": None, "status": status, "error_message": msg, "unit": "responses", }, "httpd_status_codes.202": { "label": "Number of HTTP 202 Accepted responses", "options": None, "status": status, "error_message": msg, "unit": "responses", }, "httpd_status_codes.301": { "label": "Number of HTTP 301 Moved Permanently responses", "options": None, "status": status, "error_message": msg, "unit": "responses", }, "httpd_status_codes.304": { "label": "Number of HTTP 304 Not Modified responses", "options": None, "status": status, "error_message": msg, "unit": "responses", }, "httpd_status_codes.400": { "label": "Number of HTTP 400 Bad Request responses", "options": None, "status": status, "error_message": msg, "unit": "responses", }, "httpd_status_codes.401": { "label": "Number of HTTP 401 Unauthorized responses", "options": None, "status": status, "error_message": msg, "unit": "responses", }, "httpd_status_codes.403": { "label": "Number of HTTP 403 Forbidden responses", "options": None, "status": status, "error_message": msg, "unit": "responses", }, "httpd_status_codes.404": { "label": "Number of HTTP 404 Not Found responses", "options": None, "status": status, "error_message": msg, "unit": "responses", }, "httpd_status_codes.405": { "label": "Number of HTTP 405 Method Not Allowed responses", "options": None, "status": status, "error_message": msg, "unit": "responses", }, "httpd_status_codes.409": { "label": "Number of HTTP 409 Conflict responses", "options": None, "status": status, "error_message": msg, "unit": "responses", }, "httpd_status_codes.412": { "label": "Number of HTTP 412 Precondition Failed responses", "options": None, "status": status, "error_message": msg, "unit": "responses", }, "httpd_status_codes.500": { "label": "Number of HTTP 500 Internal Server Error responses", "options": None, "status": status, "error_message": msg, "unit": "responses", }, } def check(self, textkey, data, config): stat_area, stat_name = textkey.split(".") url = "/".join([self.base_url, stat_area, stat_name]) + "?range=60" try: couch_client = httplib.HTTPConnection(config["host"], config["port"]) couch_client.request("GET", url) except Exception: return None response = couch_client.getresponse() stat = agent_util.json_loads(response.read()) return stat[stat_area][stat_name]["current"]
Close