diff --git a/docs/20_Checks/check_couchdb.md b/docs/20_Checks/check_couchdb.md index 43b05a48eff1ab533db537661e6b0875157c8ca4..4c6ef97f441eebe2810e09a54cbf76d47ff2d430 100644 --- a/docs/20_Checks/check_couchdb.md +++ b/docs/20_Checks/check_couchdb.md @@ -18,7 +18,7 @@ Check couchdb status. ______________________________________________________________________ CHECK_COUCHDB -v0.4 +v0.5 (c) Institute for Medical Education - University of Bern Licence: GNU GPL 3 @@ -32,16 +32,18 @@ SYNTAX: check_couchdb [-h] [-t FILE] -m MODE OPTIONS: - -h or --help show this help. - -c CFGFILE set a custom config file - default: /etc/icingaclient/.couchdb - -m MODE test a value; for debugging purposes the full json - response will be shown - - MODE is one of - up show general couchdb status - replication show last replication status - pending show count of pending updates for nodes, dbs and users + -h or --help show this help. + -c CFGFILE set a custom config file + default: /etc/icingaclient/.couchdb + -m MODE test a value; for debugging purposes the full json + response will be shown + + MODE is one of + up show general couchdb status + replication show last replication status + pending show count of pending updates for nodes, dbs and users + open_databases show number of open databases + open_os_files show number of file descriptors CouchDB has open EXAMPLE: check_couchdb -m up @@ -164,3 +166,41 @@ Reponse: of /_up } } ``` + +### open_databases + +Show number of open databases + +This check sends performance data. + +``check_couchdb -m open_databases`` returns + +```txt +OK: Couchdb :: open_databases = 0 +Reponse: of /_node/_local/_stats/couchdb/open_databases +{ + "value": 0, + "type": "counter", + "desc": "number of open databases" +} + |opendatabases=0;; +``` + +### open_os_files + +Show number of file descriptors CouchDB has open + +This check sends performance data. + +``check_couchdb -m open_os_files`` returns + +```txt +OK: Couchdb :: open_os_files = 0 +Reponse: of /_node/_local/_stats/couchdb/open_os_files +{ + "value": 0, + "type": "counter", + "desc": "number of file descriptors CouchDB has open" +} + |openosfiles=0;; +```