1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...
:

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.

https://blog.pandorafms.org/monitorizacion-drbd-2/

Module data

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

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

Status drbd – . Status drbd resource

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

Role drbd . Role of the resource within drbd

module_begin
module_name Role drbd
module_type generic_data_string
module_exec ddrbdadm role
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
module_str_critical UpToDate/ UpToDate
module_critical_inverse 1
module_end

Network_Send_ _DRBD – . KBytes sent to the partner via the network connection .

module_begin
module_name Network_Send__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_ _DRBD – . KBytes received from the builder .

module_begin
module_name Network_Received__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_ _DRBD – . KBytes written by the application on the local computer

module_begin
module_name Disk_write__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_ _DRBD – . KBytes read by the application on the local computer

module_begin
module_name Disk_read__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_ _DRBD – . Changes log number

module_begin
module_name Activity_log__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_ _DRBD – . Changes the bitmap area

module_begin
module_name Bit_map__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_ _DRBD – . Number of requests sent to the couple, but have not yet been answered by the latter

module_begin
module_name Pending__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_ _DRBD. -Number of requests to open the I / S issued by the local DRBD

module_begin
module_name Local_count__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_ _DRBD – . No. of applications received by the partner via the network connection , but have not yet been answered.

module_begin
module_name Unacknowledged__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_ _DRBD – . Period Items Number

module_begin
module_name Epoch__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_ _DRBD. – block number I/O of requests sent to DRBD , but not yet answered by DRBD .

module_begin
module_name Aplication_pending__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_ _DRBD – . Script method

module_begin
module_name Write_Order__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_ _DRBD – . Amount of storage currently out of sync , in kibibytes .

module_begin
module_name Out_of_sync__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 | 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 | 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 | 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 | 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 | grep fs_mysql | gawk '{print $3}'
module_str_critical Started
module_critical_inverse 1
module_end
(Visited 433 times, 1 visits today)

For correct visualization of the Pandora FMS library extension, you must have installed version NG 760 or superior

X