Recently, a disk of an Oracle server appeared read only, resulting in data not writable, but this server installed Zabbix monitoring did not alarm, so for this situation, the monitoring system disk read and write status monitoring.
Below is
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/6B/D4/wKioL1U4TQaRgkF_AAN6bNFsjuY057.jpg "title=" Docker-5.png "alt=" Wkiol1u4tqargkf_aan6bnfsjuy057.jpg "/>
If the return value of 0 means that the disk is RW state can read and write, the return value of 1, the representative disk is RO state, will be alerted.
How to achieve:
First, the client
1. Modify the zabbix_agentd.conf file
At the end of zabbix_agentd.conf, add the following:
Userparameter=check_disk_status,mount | awk ' {print $NF} ' |cut-c 2-3|awk ' {if ($1~/ro/) {print 1}} ' |wc-l|awk ' {if ($1<=0) {print 0} else {print 1}} '
2. Restart Zabbix Client Service
Ps-ef|grep zabbix|grep-v Grep|awk ' {print $} ' |xargs kill-9/usr/local/zabbix/sbin/zabbix_agentd-c/usr/local/zabbix/ Conf/zabbix_agentd.conf
Second, the service side
1. New projects
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/6B/D8/wKiom1U4TLSAghx4AAJxjWc4eh8520.jpg "title=" Docker-6.png "alt=" Wkiom1u4tlsaghx4aajxjwc4eh8520.jpg "/>
2. Trigger
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6B/D4/wKioL1U4TkPDs7M-AAEW_TfbVoo100.jpg "title=" Docker-7.png "alt=" Wkiol1u4tkpds7m-aaew_tfbvoo100.jpg "/>
This trigger is the alarm if there is data in 10 minutes and the last 3 tests have RO status.
3. Graphics
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/6B/D8/wKiom1U4TRKTJ2wLAAGJKqKu0gk289.jpg "title=" Docker-8.png "alt=" Wkiom1u4trktj2wlaagjkqku0gk289.jpg "/>
If you have any questions, you can leave a message.
This article is from the "Yin-Technical Exchange" blog, please be sure to keep this source http://dl528888.blog.51cto.com/2382721/1637433
Zabbix Enterprise Application Monitoring disk read and write status