Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
zabbix-agent-extension-couchdb3
Advanced tools
This is an extension for the Zabbix 4.x Agent to enable it to monitor CouchDB 3 servers.
py-zabbix <https://github.com/adubkov/py-zabbix>
_You first have to install the extension on the server that runs the Zabbix Agent.
From PyPI
Run the following command (as root)::
pip3 install zabbix-agent-extension-couchdb3
Then copy the ``zabbix-agent-extension-couchdb3.conf`` file from this
repository to the ``/etc/zabbix/zabbix_agentd.conf.d/`` folder on the server.
And finally, restart the Zabbix Agent (with systemd: ``systemctl restart
zabbix-agent``).
Installation (Zabbix side)
--------------------------
1. Import the template
Configuration
-> Templates
,Import
button... figure:: ./screenshots/zabbix_import_template_01.png :alt: Screenshot
zabbix-agent-extension-couchdb3.template.xml
),Import
button... figure:: ./screenshots/zabbix_import_template_02.png :alt: Screenshot
* Go to the host configuration,
* and link the ``Template CouchDB 3`` tempate to it.
Doc: https://www.zabbix.com/documentation/4.0/manual/config/hosts/host
.. figure:: ./screenshots/zabbix_add_template.png
:alt: Screenshot
3. Configure connection information using macros
Macros
tab,The following parameters are available:
{$COUCHDB_HOST}
: the CouchDB host (optional, default: localhost
){$COUCHDB_PASSWORD}
: the password to connect to CouchDB (required){$COUCHDB_PORT}
: the CouchDB port (optional, default: 5984
){$COUCHDB_PROTO}
: the protocol to use to connect to CouchDB (http
or
https
, optional, default: http
){$COUCHDB_USER}
: the user to connect to CouchDB (optional, default:
admin
)At least the {$COUCHDB_PASSWORD}
macro must be defined!
.. figure:: ./screenshots/zabbix_config_macros.png :alt: Screenshot
The default polling interval of this probe in Zabbix is 30s
. In order to
have accurate stats, you must configure the "stats interval" setting of your
CouchDB to twice this value (60s
)::
[stats]
interval = 60
Read more in the CouchDB documentation <https://docs.couchdb.org/en/stable/api/server/common.html#node-node-name-stats>
_.
This extension also provides a CLI to simplify debugging.
::
usage: zabbix-agent-extension-couchdb3
[-h] [--host HOST] [--port PORT] [--user USER] --password PASSWORD
[--proto PROTO] [--show-json] [--show-stats] [--generate-template]
optional arguments:
-h, --help show this help message and exit
--host HOST The CouchDB server host (default: localhost)
--port PORT The CouchDB server port (default: 5984)
--user USER The username to use for the connexion (default: admin)
--password PASSWORD The password to use for the connexion (mandatory)
--proto PROTO The protocol to use (default: http)
--show-json Display the raw JSON stats from CouchDB and exit (no stats will be
sent to Zabbix)
--show-stats Display the available stats with their values and description and exit
(no stats will be sent to Zabbix)
--generate-template Generates a Zabbix 4 template with all supported keys and exit (no
stats will be sent to Zabbix)
Example: dumping CouchDB stats as JSON::
zabbix-agent-extension-couchdb3 --password=XXXXX --show-json
Example: displaying CouchDB stats in a more friendly format::
zabbix-agent-extension-couchdb3 --password=XXXXX --show-stats
Example: generating the Zabbix template::
zabbix-agent-extension-couchdb3 --password=XXXXX --generate-template > zabbix-agent-extension-couchdb3.template.xml
v1.0.1: Send credential to CouchDB at first request instead of waiting for a 401 first
v1.0.0:
v0.2.0: Handles histogram-type values
v0.1.1: Fixes an issue with the entry point
v0.1.0: Initial release
FAQs
Zabbix Agent extension to monitor CouchDB 3
We found that zabbix-agent-extension-couchdb3 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.