Hello,
unfortunately on a server i can't install zabbix agent to monitor it, but i have only snmp agent.
my goal is monitor disk (then also a raid)
for now i would check only temperature
so i have create a script
and add on /etc/snmp/snmpd.conf
extend sda_temp /bin/bash /etc/snmp/scripts/sda_temp.bash
ok now if i try to (on same server)
snmpwalk -v2c -c public localhost NET-SNMP-EXTEND-MIB::nsExtendObjects | grep sda_temp
i find my value
ok to add in zabbix i try to add items on my host (also works with cpu , memory, basic oid)
name sda temp
type snmpv2 agent
key sda.temp
snmp oid 1.3.6.1.4.1.8072.1.3.2.2.1.3.8.115.100.97.95.116.1 01.109.112.1
snmp community public
type of information numeric float
unit C
update interval (in sec) 60
but i have this error
SNMP error: (noSuchName) There is no such variable name in this MIB.
can i use this way to monitor disk temperature on snmp ?
thank you
unfortunately on a server i can't install zabbix agent to monitor it, but i have only snmp agent.
my goal is monitor disk (then also a raid)
for now i would check only temperature
so i have create a script
Code:
#!/bin/bash $(which hddtemp) -n /dev/sda
extend sda_temp /bin/bash /etc/snmp/scripts/sda_temp.bash
ok now if i try to (on same server)
snmpwalk -v2c -c public localhost NET-SNMP-EXTEND-MIB::nsExtendObjects | grep sda_temp
i find my value
ok to add in zabbix i try to add items on my host (also works with cpu , memory, basic oid)
name sda temp
type snmpv2 agent
key sda.temp
snmp oid 1.3.6.1.4.1.8072.1.3.2.2.1.3.8.115.100.97.95.116.1 01.109.112.1
snmp community public
type of information numeric float
unit C
update interval (in sec) 60
but i have this error
SNMP error: (noSuchName) There is no such variable name in this MIB.
can i use this way to monitor disk temperature on snmp ?
thank you
Comment