crm_mon

Langue: en

Version: October 2010 (fedora - 01/12/10)

Section: 8 (Commandes administrateur)

NAME

Pacemaker - Part of the Pacemaker cluster resource manager

SYNOPSIS

crm_mon mode [options]

DESCRIPTION

crm_mon - Provides a summary of cluster's current state.

Outputs varying levels of detail in a number of different formats.

OPTIONS

-?, --help
This text
-$, --version
Version information
-V, --verbose
Increase debug output

Modes:

-h, --as-html=value
Write cluster status to the named file
-w, --web-cgi
Web mode with output suitable for cgi
-s, --simple-status
Display the cluster status once as a simple one line output (suitable for nagios)
-S, --snmp-traps=value Send SNMP traps to this station
-C, --snmp-community=value
Specify community for SNMP traps(default is NULL)
-T, --mail-to=value
Send Mail alerts to this user. See also --mail-from, --mail-host, --mail-prefix

Display Options:

-n, --group-by-node
Group resources by node
-r, --inactive
Display inactive resources
-f, --failcounts
Display resource fail counts
-o, --operations
Display resource operation history
-t, --timing-details
Display resource operation history with timing details
-A, --show-node-attributes
Display node attributes

Additional Options:

-i, --interval=value
Update frequency in seconds
-1, --one-shot
Display the cluster status once on the console and exit
-N, --disable-ncurses
Disable the use of ncurses
-d, --daemonize
Run in the background as a daemon
-p, --pid-file=value
(Advanced) Daemon pid file location
-F, --mail-from=value
Mail alerts should come from the named user
-H, --mail-host=value
Mail alerts should be sent via the named host
-P, --mail-prefix=value
Subjects for mail alerts should start with this string
-E, --external-agent=value
A program to run when resource operations take place.
-e, --external-recipient=value A recipient for your program (assuming you want the program to send something to someone).

EXAMPLES

Display the cluster´s status on the console with updates as they occur:
# crm_mon

Display the cluster´s status on the console just once then exit:

# crm_mon -1

Display your cluster´s status, group resources by node, and include inactive resources in the list:

# crm_mon --group-by-node --inactive

Start crm_mon as a background daemon and have it write the cluster´s status to an HTML file:

# crm_mon --daemonize --as-html /path/to/docroot/filename.html

Start crm_mon as a background daemon and have it send email alerts:

# crm_mon --daemonize --mail-to user@example.com --mail-host mail.example.com

Start crm_mon as a background daemon and have it send SNMP alerts:

# crm_mon --daemonize --snmp-traps snmptrapd.example.com

AUTHOR

Written by Andrew Beekhof

REPORTING BUGS

Report bugs to pacemaker@oss.clusterlabs.org