5.27. redis

Redis check.

loader

lua

object

noit.module.redis

5.27.1. Module Configuration

5.27.2. Check Configuration

port
required

required

default

6379

allowed

\d+

Specifies the port on which redis is running.

command
required

required

default

INFO

allowed

.+

Command to send to redis server.

dbindex
required

optional

default

0

allowed

\d+

Index of the database the command will run against

password
required

optional

default

allowed

.+

Auth password for redis

Example 5.28. Checking Redis

This example checks Redis by issuing the INFO command

      <noit>
        <modules>
          <loader image="lua" name="lua">
            <config><directory>/opt/reconnoiter/libexec/modules-lua/?.lua</directory></config>
          </loader>
          <module loader="lua" name="redis" object="noit.module.redis" />
        </modules>
        <checks>
          <check uuid="052852f2-fd09-4751-8889-a313a70c3c9c" module="redis" target="127.0.0.1" />
        </checks>
      </noit>