Skip to content

Scanning Engine v2 - Module - Memcached

Overview

Memcached is a high-performance, distributed memory caching system used to speed up dynamic web applications by alleviating database load. It is commonly used to cache data in memory and reduce the number of times an external data source, such as a database, needs to be accessed.

This module allows scanning with Memcached instances. It gathers all the stats information from the server.

Targeting

This module targets TCP ports by IP address or hostname.

Configuration

Only the publicly-available configuration keys that can be set in a job's module invocations will be described below. Additional configuration keys may exist, but not be shown here because they are restricted to specific users or because they are permanently set as a static value. If no keys have (required) after their names then invocations of this module need not contain a config key.

Named Keys

debug

Run module with a debugging configuration.

  • Type: boolean

tls

Connect using SSL/TLS.

  • Type: boolean

Schemas

The schema for the body object of all results generated with .task.module_name equal to memcached can be found here. The schema for results is available both in standalone and bundled form.

Examples

These are examples of the .body object for results with .task.module_name equal to memcached.

Live Host

This example was generated with a live host on the internet.

{
  "pid": "1",
  "uptime": "593095",
  "time": "1689595168",
  "version": "1.6.21",
  "libevent": "2.1.12-stable",
  "pointer_size": "64",
  "rusage_user": "115.143132",
  "rusage_system": "121.008137",
  "max_connections": "1024",
  "curr_connections": "3",
  "total_connections": "217",
  "rejected_connections": "0",
  "connection_structures": "6",
  "response_obj_oom": "0",
  "response_obj_count": "1",
  "response_obj_bytes": "65536",
  "read_buf_count": "12",
  "read_buf_bytes": "196608",
  "read_buf_bytes_free": "114688",
  "read_buf_oom": "0",
  "reserved_fds": "20",
  "cmd_get": "150622",
  "cmd_set": "120523",
  "cmd_flush": "0",
  "cmd_touch": "30099",
  "cmd_meta": "0",
  "get_hits": "70556",
  "get_misses": "80066",
  "get_expired": "0",
  "get_flushed": "0",
  "delete_misses": "0",
  "delete_hits": "0",
  "incr_misses": "0",
  "incr_hits": "0",
  "decr_misses": "0",
  "decr_hits": "0",
  "cas_misses": "0",
  "cas_hits": "0",
  "cas_badval": "0",
  "touch_hits": "30099",
  "touch_misses": "0",
  "store_too_large": "0",
  "store_no_memory": "0",
  "auth_cmds": "0",
  "auth_errors": "0",
  "bytes_read": "72874668",
  "bytes_written": "95845923",
  "limit_maxbytes": "67108864",
  "accepting_conns": "1",
  "listen_disabled_num": "0",
  "time_in_listen_disabled_us": "0",
  "threads": "4",
  "conn_yields": "0",
  "hash_power_level": "16",
  "hash_bytes": "524288",
  "hash_is_expanding": "0",
  "slab_reassign_rescues": "0",
  "slab_reassign_chunk_rescues": "0",
  "slab_reassign_evictions_nomem": "0",
  "slab_reassign_inline_reclaim": "0",
  "slab_reassign_busy_items": "0",
  "slab_reassign_busy_deletes": "0",
  "slab_reassign_running": "0",
  "slabs_moved": "0",
  "lru_crawler_running": "0",
  "lru_crawler_starts": "94217",
  "lru_maintainer_juggles": "6727381",
  "malloc_fails": "0",
  "log_worker_dropped": "0",
  "log_worker_written": "0",
  "log_watcher_skipped": "0",
  "log_watcher_sent": "0",
  "log_watchers": "0",
  "unexpected_napi_ids": "0",
  "round_robin_fallback": "0",
  "bytes": "58049",
  "curr_items": "202",
  "total_items": "120523",
  "slab_global_page_pool": "0",
  "expired_unfetched": "79164",
  "evicted_unfetched": "0",
  "evicted_active": "0",
  "evictions": "0",
  "reclaimed": "70988",
  "crawler_reclaimed": "8876",
  "crawler_items_checked": "10926172",
  "lrutail_reflocked": "3538",
  "moves_to_cold": "106244",
  "moves_to_warm": "7210",
  "moves_within_lru": "9884",
  "direct_reclaims": "0",
  "lru_bumps_dropped": "0"
}

Changelog

  • 2025-05-05: Initial release of versioning to each module. All modules are tagged with a version number "1.0.0". Going forward:
    • Major version should be changed when there are changes that impact consumers or clients of the modules
    • Minor version should be changed when there are additions which enrich or enhance the module but shouldn’t affect consumers or clients
    • Patch version should be changed when there are bugfixes