{"id":477,"date":"2017-12-13T15:12:23","date_gmt":"2017-12-13T15:12:23","guid":{"rendered":"https:\/\/pandorafms.com\/library\/?p=477"},"modified":"2017-12-14T11:27:22","modified_gmt":"2017-12-14T11:27:22","slug":"drbd-monitoring","status":"publish","type":"post","link":"https:\/\/pandorafms.com\/library\/drbd-monitoring\/","title":{"rendered":"DRBD Monitoring"},"content":{"rendered":"<p>List of modules to monitor DRBD<\/p>\n<p>For more details on how to obtain these modules, see the article DRBD monitoring, available in Spanish and English, in our blog.<\/p>\n<p><a href=\"https:\/\/blog.pandorafms.org\/monitorizacion-drbd-2\/\" target=\"_blank\" rel=\"noopener\">https:\/\/blog.pandorafms.org\/monitorizacion-drbd-2\/<\/a><\/p>\n<h2>Module data<\/h2>\n<p>% Use filesystem . Percentage of use of the resource associated filesystem<\/p>\n<pre>module_begin\r\nmodule_name % Use filesystem\r\nmodule_type generic_data\r\nmodule_exec drbd-overview | gawk '{print $12}' | tr -d %\r\nmodule_unit %\r\nmodule_end<\/pre>\n<p>Status drbd &#8211; . Status drbd resource<\/p>\n<pre>module_begin\r\nmodule_name Status drbd\r\nmodule_type generic_data_string\r\nmodule_exec drbdadm cstate\r\nmodule_str_critical Connected\r\nmodule_critical_inverse 1\r\nmodule_end<\/pre>\n<p>Role drbd . Role of the resource within drbd<\/p>\n<pre>module_begin\r\nmodule_name Role drbd\r\nmodule_type generic_data_string\r\nmodule_exec ddrbdadm role\r\nmodule_str_critical Primary\/Secondary\r\nmodule_critical_inverse 1\r\nmodule_end<\/pre>\n<p>Filesystem Status . Status filesystem associated with the resource .<\/p>\n<pre>module_begin\r\nmodule_name Filesystem Status\r\nmodule_type generic_data_string\r\nmodule_exec drbdadm dstate\r\nmodule_str_critical UpToDate\/ UpToDate\r\nmodule_critical_inverse 1\r\nmodule_end<\/pre>\n<p>Network_Send_ _DRBD &#8211; . KBytes sent to the partner via the network connection .<\/p>\n<pre>module_begin\r\nmodule_name Network_Send__DRBD\r\nmodule_type generic_data\r\nmodule_exec cat \/proc\/drbd | grep ns: | gawk '{print $1}' | tr -d ns: | head -X | tail -1\r\nmodule_end<\/pre>\n<p>Network_Received_ _DRBD &#8211; . KBytes received from the builder .<\/p>\n<pre>module_begin\r\nmodule_name Network_Received__DRBD\r\nmodule_type generic_data\r\nmodule_exec cat \/proc\/drbd | grep nr: | gawk '{print $2}' | tr -d nr: | head -X | tail -1\r\nmodule_end<\/pre>\n<p>Disk_write_ _DRBD &#8211; . KBytes written by the application on the local computer<\/p>\n<pre>module_begin\r\nmodule_name Disk_write__DRBD\r\nmodule_type generic_data\r\nmodule_exec cat \/proc\/drbd | grep dw: | gawk '{print $3}' | tr -d dw: | head -X | tail -1\r\nmodule_end<\/pre>\n<p>Disk_read_ _DRBD &#8211; . KBytes read by the application on the local computer<\/p>\n<pre>module_begin\r\nmodule_name Disk_read__DRBD\r\nmodule_type generic_data\r\nmodule_exec cat \/proc\/drbd | grep dr: | gawk '{print $4}' | tr -d dr: | head -X | tail -1\r\nmodule_end<\/pre>\n<p>Activity_log_ _DRBD &#8211; . Changes log number<\/p>\n<pre>module_begin\r\nmodule_name Activity_log__DRBD\r\nmodule_type generic_data\r\nmodule_exec cat \/proc\/drbd | grep al: | gawk '{print $5}' | tr -d al: | head -X | tail -1\r\nmodule_end<\/pre>\n<p>Bit_map_ _DRBD &#8211; . Changes the bitmap area<\/p>\n<pre>module_begin\r\nmodule_name Bit_map__DRBD\r\nmodule_type generic_data\r\nmodule_exec cat \/proc\/drbd | grep bm: | gawk '{print $6}' | tr -d bm: | head -X | tail -1\r\nmodule_end<\/pre>\n<p>Pending_ _DRBD &#8211; . Number of requests sent to the couple, but have not yet been answered by the latter<\/p>\n<pre>module_begin\r\nmodule_name Pending__DRBD\r\nmodule_type generic_data\r\nmodule_exec cat \/proc\/drbd | grep pe: | gawk '{print $8}' | tr -d pe: | head -X | tail -1\r\nmodule_end<\/pre>\n<p>Local_count_ _DRBD. -Number of requests to open the I \/ S issued by the local DRBD<\/p>\n<pre>module_begin\r\nmodule_name Local_count__DRBD\r\nmodule_type generic_data\r\nmodule_exec cat \/proc\/drbd | grep lo: | gawk '{print $7}' | tr -d lo: | head -X | tail -1\r\nmodule_end<\/pre>\n<p>Unacknowledged_ _DRBD &#8211; . No. of applications received by the partner via the network connection , but have not yet been answered.<\/p>\n<pre>module_begin\r\nmodule_name Unacknowledged__DRBD\r\nmodule_type generic_data\r\nmodule_exec cat \/proc\/drbd | grep ua: | gawk '{print $9}' | tr -d ua: | head -X | tail -1\r\nmodule_end<\/pre>\n<p>Epoch_ _DRBD &#8211; . Period Items Number<\/p>\n<pre>module_begin\r\nmodule_name Epoch__DRBD\r\nmodule_type generic_data\r\nmodule_exec cat \/proc\/drbd | grep ep: | gawk '{print $11}' | tr -d ep: | head -X | tail -1\r\nmodule_end<\/pre>\n<p>Aplication_pending_ _DRBD. &#8211; block number I\/O of requests sent to DRBD , but not yet answered by DRBD .<\/p>\n<pre>module_begin\r\nmodule_name Aplication_pending__DRBD\r\nmodule_type generic_data\r\nmodule_exec cat \/proc\/drbd | grep ap: | gawk '{print $10}' | tr -d ap: | head -X | tail -1\r\nmodule_end<\/pre>\n<p>Write_Order_ _DRBD &#8211; . Script method<\/p>\n<pre>module_begin\r\nmodule_name Write_Order__DRBD\r\nmodule_type generic_data_string\r\nmodule_exec cat \/proc\/drbd | grep wo: | gawk '{print $12}' | tr -d ua: | head -X | tail -1\r\nmodule_end<\/pre>\n<p>Out_of_sync_ _DRBD &#8211; . Amount of storage currently out of sync , in kibibytes .<\/p>\n<pre>module_begin\r\nmodule_name Out_of_sync__DRBD\r\nmodule_type generic_data\r\nmodule_exec cat \/proc\/drbd | grep oos: | gawk '{print $13}' | tr -d oos: | head -X | tail -1\r\nmodule_end<\/pre>\n<p>Mysql_drbd_status &#8211; . Status Mysql instance<\/p>\n<pre>module_begin\r\nmodule_name Mysql_drbd_status\r\nmodule_type generic_data_string\r\nmodule_exec crm status | grep | grep mysqld | gawk '{print $3}'\r\nmodule_str_critical Started\r\nmodule_critical_inverse 1\r\nmodule_end<\/pre>\n<p>Apache_drbd_status &#8211; . Status Apache instance<\/p>\n<pre>module_begin\r\nmodule_name Apache_drbd_status\r\nmodule_type generic_data_string\r\nmodule_exec crm status | grep | grep apache | gawk '{print $3}'\r\nmodule_str_critical Started\r\nmodule_critical_inverse 1\r\nmodule_end<\/pre>\n<p>Pandora_server_drbd_status &#8211; . Status instance pandora_server<\/p>\n<pre>module_begin\r\nmodule_name Pandora_server_drbd_status\r\nmodule_type generic_data_string\r\nmodule_exec crm status | grep | grep pandora_server | gawk '{print $3}'\r\nmodule_str_critical Started\r\nmodule_critical_inverse 1\r\nmodule_end<\/pre>\n<p>fs_mysql_status &#8211; . status filesystem instance of Mysql<\/p>\n<pre>module_begin\r\nmodule_name fs_mysql_status\r\nmodule_type generic_data_string\r\nmodule_exec crm status | grep | grep fs_mysql | gawk '{print $3}'\r\nmodule_str_critical Started\r\nmodule_critical_inverse 1\r\nmodule_end<\/pre>\n<p>Heartbeat Processes &#8211; . Number of processes running Heartbeat<\/p>\n<pre>module_begin\r\nmodule_name Heartbeat Processes\r\nmodule_type generic_data\r\nmodule_exec ps aux | grep heartbeat | grep -v grep | wc -l\r\nmodule_max_critical 0,5\r\nmodule_min_critical -1\r\nmodule_end<\/pre>\n<p>IP_mysql_status &#8211; . Status heartbeat .<\/p>\n<pre>module_begin\r\nmodule_name IP_mysql_status\r\nmodule_type generic_data_string\r\nmodule_exec crm status | grep | grep fs_mysql | gawk '{print $3}'\r\nmodule_str_critical Started\r\nmodule_critical_inverse 1\r\nmodule_end<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>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 &#8216;{print [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[4],"tags":[94,97,96,52],"_links":{"self":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts\/477"}],"collection":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/comments?post=477"}],"version-history":[{"count":0,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts\/477\/revisions"}],"wp:attachment":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/media?parent=477"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/categories?post=477"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/tags?post=477"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}