Welcome to the Pandora FMS Module Library

 
This is a library with modules, documentation and tools for Pandora FMS users, both public Open Source and Enterprise. Please use your support credentials (same as used to enter support/ticketing system) in the menu to your right. You will be granted access to a resourceful module library, such as Oracle, VMware, JBoss and others, ready to be used in production enviroments, with official professional support from Artica. If you do not own an enterprise account, you still can browse and download lots of modules, you can even register a free account and contribute with your own modules/tools for other public users.

Home > Miscelaneous

DRBD Monitoring

Author: mario_pulido Create in: 12/04/2013 Update in: 12/05/2013
Rating:
Module type : Local module


List of modules to monitor DRBD

For more details on how to obtain these modules, see the article DRBD monitoring, available in Spanish and English, in our blog.

http://blog.pandorafms.org/?p=1944

Module data

% Use <resource> filesystem . Percentage of use of the resource associated filesystem

module_begin
module_name % Use filesystem <resource>
module_type generic_data
module_exec drbd-overview <resource> | gawk '{print $12}' | tr -d %
module_unit %
module_end

Status drbd <resource> - . Status drbd resource

module_begin
module_name Status drbd <resource>
module_type generic_data_string
module_exec drbdadm cstate <resource>
module_str_critical Connected
module_critical_inverse 1
module_end

Role drbd <resource> . Role of the resource within drbd

module_begin
module_name Role drbd <resource>
module_type generic_data_string
module_exec ddrbdadm role <resource>
module_str_critical Primary/Secondary
module_critical_inverse 1
module_end

Filesystem Status . Status filesystem associated with the resource .

module_begin
module_name Filesystem Status
module_type generic_data_string
module_exec drbdadm dstate <resource>
module_str_critical UpToDate/ UpToDate
module_critical_inverse 1
module_end

Network_Send_ <resource> _DRBD - . KBytes sent to the partner via the network connection .

module_begin
module_name Network_Send_<Resource>_DRBD
module_type generic_data
module_exec cat /proc/drbd | grep ns: | gawk '{print $1}' | tr -d ns: | head -X | tail -1
module_end

Network_Received_ <resource> _DRBD - . KBytes received from the builder .

module_begin
module_name Network_Received_<resource>_DRBD
module_type generic_data
module_exec cat /proc/drbd | grep nr: | gawk '{print $2}' | tr -d nr: | head -X | tail -1
module_end

Disk_write_ <resource> _DRBD - . KBytes written by the application on the local computer

module_begin
module_name Disk_write_<resource>_DRBD
module_type generic_data
module_exec cat /proc/drbd | grep dw: | gawk '{print $3}' | tr -d dw: | head -X | tail -1
module_end

Disk_read_ <resource> _DRBD - . KBytes read by the application on the local computer

module_begin
module_name Disk_read_<resource>_DRBD
module_type generic_data
module_exec cat /proc/drbd | grep dr: | gawk '{print $4}' | tr -d dr: | head -X | tail -1
module_end

Activity_log_ <resource> _DRBD - . Changes log number

module_begin
module_name Activity_log_<resource>_DRBD
module_type generic_data
module_exec cat /proc/drbd | grep al: | gawk '{print $5}' | tr -d al: | head -X | tail -1
module_end

Bit_map_ <resource> _DRBD - . Changes the bitmap area

module_begin
module_name Bit_map_<resource>_DRBD
module_type generic_data
module_exec cat /proc/drbd | grep bm: | gawk '{print $6}' | tr -d bm: | head -X | tail -1
module_end

Pending_ <resource> _DRBD - . Number of requests sent to the couple, but have not yet been answered by the latter

module_begin
module_name Pending_<resource>_DRBD
module_type generic_data
module_exec cat /proc/drbd | grep pe: | gawk '{print $8}' | tr -d pe: | head -X | tail -1
module_end

Local_count_ <resource> _DRBD. -Number of requests to open the I / S issued by the local DRBD

module_begin
module_name Local_count_<resource>_DRBD
module_type generic_data
module_exec cat /proc/drbd | grep lo: | gawk '{print $7}' | tr -d lo: | head -X | tail -1
module_end

Unacknowledged_ <resource> _DRBD - . No. of applications received by the partner via the network connection , but have not yet been answered.

module_begin
module_name Unacknowledged_<resource>_DRBD
module_type generic_data
module_exec cat /proc/drbd | grep ua: | gawk '{print $9}' | tr -d ua: | head -X | tail -1
module_end

Epoch_ <resource> _DRBD - . Period Items Number

module_begin
module_name Epoch_<resource>_DRBD
module_type generic_data
module_exec cat /proc/drbd | grep ep: | gawk '{print $11}' | tr -d ep: | head -X | tail -1
module_end

Aplication_pending_ <resource> _DRBD. - block number I/O of requests sent to DRBD , but not yet answered by DRBD .

module_begin
module_name Aplication_pending_<resource>_DRBD
module_type generic_data
module_exec cat /proc/drbd | grep ap: | gawk '{print $10}' | tr -d ap: | head -X | tail -1
module_end

Write_Order_ <resource> _DRBD - . Script method

module_begin
module_name Write_Order_<resource>_DRBD
module_type generic_data_string
module_exec cat /proc/drbd | grep wo: | gawk '{print $12}' | tr -d ua: | head -X | tail -1
module_end

Out_of_sync_ <resource> _DRBD - . Amount of storage currently out of sync , in kibibytes .

module_begin
module_name Out_of_sync_<resource>_DRBD
module_type generic_data
module_exec cat /proc/drbd | grep oos: | gawk '{print $13}' | tr -d oos: | head -X | tail -1
module_end

Mysql_drbd_status - . Status Mysql instance

module_begin
module_name Mysql_drbd_status
module_type generic_data_string
module_exec crm status | grep <hostname> | grep mysqld | gawk '{print $3}'
module_str_critical Started
module_critical_inverse 1
module_end

Apache_drbd_status - . Status Apache instance

module_begin
module_name Apache_drbd_status
module_type generic_data_string
module_exec crm status | grep <hostname> | grep apache | gawk '{print $3}'
module_str_critical Started
module_critical_inverse 1
module_end

Pandora_server_drbd_status - . Status instance pandora_server

module_begin
module_name Pandora_server_drbd_status
module_type generic_data_string
module_exec crm status | grep <hostname> | grep pandora_server | gawk '{print $3}'
module_str_critical Started
module_critical_inverse 1
module_end


fs_mysql_status - . status filesystem instance of Mysql

module_begin
module_name fs_mysql_status
module_type generic_data_string
module_exec crm status | grep <hostname> | grep fs_mysql | gawk '{print $3}'
module_str_critical Started
module_critical_inverse 1
module_end

Heartbeat Processes - . Number of processes running Heartbeat

module_begin
module_name Heartbeat Processes
module_type generic_data
module_exec ps aux | grep heartbeat | grep -v grep | wc -l
module_max_critical 0,5
module_min_critical -1
module_end


IP_mysql_status - . Status heartbeat .

module_begin
module_name IP_mysql_status
module_type generic_data_string
module_exec crm status | grep <hostname> | grep fs_mysql | gawk '{print $3}'
module_str_critical Started
module_critical_inverse 1
module_end