![]() My $cmd = $zabbix_sender." -z ".$zabbixserver." -s ".$hostname." -k custom.raidstate -o ".$term My $zabbix_sender = "/usr/sbin/zabbix_sender" ![]() # /opt/compaq/hpacucli/bld/hpacucli controller all show config I hope this is useful for someone else, too. I have used the key "custom.raidstate" which indicates 0=ok, >0=error. Now your system logs the state of each logical and physical drive to the syslog hourly (for later analysis) and logs the return code to zabbix simultaneously. CentOS 4 / 5):ġ) download and install hpacucli rpm from hp homepage (must be version >8.0)Ģ) create a simple script /etc/zabbix/bin/custom.smartstate and chmod 700 (see below)Ĥ) create a file /etc/cron.hourly/smartstate.cron and chmod 700 (see below)ĥ) execute /etc/cron.hourly/smartstate.cron and tail /var/log/messages to verify the result Here is my recipe for redhat based distros (e.g. To monitor HP SMART arrays, I use the hpacucli utility in version 8.x together with a small perl script and a little shell script running in a cronjob.
0 Comments
Leave a Reply. |