![]() ![]() In some cases, if you make sure to update the plugins now and then - you will also be told when its appropriate to update your firmware. Both of the above check RAID-status as well as physical drives. the Debian and Ubuntu mdadm package contains the file /etc/cron.d/mdadm which in turns the first sunday of each month will run the command /usr/share/mdadm/checkarray -cron -all -idle -quiet that will check all your arrays for consistency (unless you set AUTOCHECK to false in /etc/default/mdadm ). Run the lsblk command as follows to lists information about all available or the specified block devices: lsblk. If your harddrives support S.M.A.R.T (I believe all of them nowadays do), you can use checksmartmon. There are no template links in this template. Using lsblk command to find out Linux hard disk information. ![]() It can be overridden on the host or linked on the template level. This macro is used for trigger expression. When there is no SMART information, we can do a device health check with badblocks. ![]() On a Red Hat Enterprise Linux system, use: chkconfig smartd on service smartd start The smartctl program also allows for you to view and test SMART attributes of a drive. It can be overridden on the host or linked on the template level. 4 Answers Sorted by: 5 When smartd is configured, make sure to enable the monitoring daemon if it is not already started. This macro is used in the filter of attribute and disk discoveries. No specific Zabbix configuration is required. Note: You will not get any scrolling output for your test beyond being told how long the test will take. Conveyance: sudo smartctl -t conveyance /dev/sdX. Plugin parameters list Zabbix configuration The commands for the various tests are (replace sdX with the drive that you want to test) Short: sudo smartctl -t short /dev/sdX. The s and display commands work with physical volumes (pv), volume groups (vg), and logical volumes (lv) so it is a good place to start when trying to figure out the current settings. Zabbix ALL=(ALL) NOPASSWD:/usr/sbin/smartctl The first thing you may need to do is check how your LVM is set up. Grant Zabbix agent 2 super/admin user privileges for smartctl utility. Install the Zabbix agent 2 and Smartmontools 7.1. See Zabbix template operation for basic instructions. Attribute discovery LLD rule have pre-defined Vendor Specific Attributesįor each disk, and will be discovered if attribute is present. To use it on Ubuntu, open the Dash and search for Disks, on Linux Mint, open Menu and search for Disks and on Fedora, click on Activities type Disks. It collects metrics by Zabbix agent 2 version 5.0 and later with Smartmontools version 7.1 and later.ĭisk discovery LLD rule finds all HDD, SSD, NVMe disks with S.M.A.R.T. attributes of physical disk that works without any external scripts. ![]()
0 Comments
Leave a Reply. |