id
type
5
status
21
review version
1
cleanup version
0
pending deletion
0
created at
2026-01-31 14:06:14
updated at
2026-01-31 14:06:14
url
http://www.0937686468.com/2012/10/monitor-hardisk-hp-server-sent-to-zabbix.html
url length
79
url crc
59517
url crc32
880666749
location type
1
canonical status
10
canonical page id
domain id
domain tld
2211
domain parts
2
originating warc id
6554144
originating url
source type
11
page id
title
Monitor hardisk HP server sent to zabbix
excerpt
content
hp.sh #!/bin/bash #Writed by nhanns@vng[dot]com[dot]vn - nhannguyen@0937686468[dot]com #skype: nguyen_si_nhan #Program'll send alert hdd HP status to zabbix #check snmpwalk installed [ ! -f "/usr/bin/snmpwalk" ] && { echo "can not find snmpwalk plz install net-snmp-utils"; exit 1; } /usr/bin/snmpwalk -v2c -c public localhost 1.3.6.1.4.1.232.3.2.5.1.1.6 >/tmp/hp.tmp #Line=wc -l </tmp/hp.tmp #Get value return==status hdd grep -Eo '.$' /tmp/hp.tmp >/tmp/count.tmp _file1="/tmp/hp.tmp" #check empty file if [ ! -s "$_file1" ] then echo "Plz install hp snmp agent" exit 2 fi StatusFail=0 while read line; do #HI=echo $line | awk '{print substr($0,length,1)}' if [[ "$line" = 3 ]]; then ((StatusFail=1)) fi done < /tmp/count.tmp echo "StatusFail $StatusFail" /opt/zabbix/bin/zabbix_sender -c /opt/check.conf -k hddstatus -o $StatusFail ===================== Notice : Change /opt/check.conf to correct your path zabbix agent Nguyen Si Nhan - 19/10/2012
author
updated
1770406619
block type
0
extracted fields
104
extracted bits
title
full content
content was extracted heuristically
detected location
0
detected language
1 (English)
category id
-
index version
1
paywall score
0
spam phrases
0
text nonlatin
0
text cyrillic
0
text characters
646
text words
166
text unique words
92
text lines
1
text sentences
3
text paragraphs
1
text words per sentence
55
text matched phrases
0
text matched dictionaries
0
links self subdomains
0
links other subdomains
0
links other domains
0
links spam adult
0
links spam random
0
links spam expired
0
links ext activities
0
links ext ecommerce
0
links ext finance
0
links ext crypto
0
links ext booking
0
links ext news
0
links ext leaks
0
links ext ugc
9
links ext klim
0
links ext generic
0
image author
featured image