Name

i3blocks-monit - i3blocks bar block for monit services.

Synopsis

i3blocks-monit [OPTION=value] […]

Description

Report a summary of monit(1) service states. The output is in pango format and suitable for i3blocks(1). Options can be specified as environment variables or on the command line as OPTION=value.

Options

STYLE_UP=attributes

The span attributes to apply to the number of up services.

STYLE_UMON=attributes

The span attributes to apply to the number of unmonitored services.

STYLE_DOWN=attributes

The span attributes to apply to the number of down services.

STYLE_INIT=attributes

The span attributes to apply to the number of initialising services.

LABEL_UP=label

The label to use for up services.

LABEL_UMON=label

The label to use for unmonitored services.

LABEL_DOWN=label

The label to use for down services.

LABEL_INIT=label

The label to use for initialising services.

ORDER=list

A space-delimited list indicating the order in which to display up, unmonitored, down, and initialising services.

SHOW_LABELS=boolean

1 to show labels, 0 to suppress labels.

SHOW_ZEROS=boolean

1 to show states with 0 total services, 0 to suppress them.

Examples

i3blocks config with default values:

[monit]
command=i3blocks-monit
markup=pango
interval=3600
STYLE_UP=weight='bold' background='#009000' color='#FFFFFF'
STYLE_UMON=weight='bold' background='#F0F000' color='#000000'
STYLE_DOWN=weight='bold' background='#900000' color='#FFFFFF'
STYLE_INIT=weight='bold' background='#C09000' color='#FFFFFF'
LABEL_UP=UP
LABEL_UMON=UMON
LABEL_DOWN=DOWN
LABEL_INIT=INIT
ORDER=up unmonitored down initialising
SHOW_LABELS=1
SHOW_ZEROS=1

Nagios-like labels:

[monit]
command=i3blocks-monit
markup=pango
interval=3600
LABEL_UP=OK
LABEL_UMON=WARN
LABEL_DOWN=CRIT
LABEL_INIT=UNKN

Minimal display:

[monit]
command=i3blocks-monit
markup=pango
interval=3600
SHOW_LABELS=0
SHOW_ZEROS=0

Authors

i3blocks-monit was written by DMBuce.

Distribution

The latest version of i3blocks-monit can be downloaded from the i3b project.