Background
My latest gizmo in the basement is a Netgear ReadyNAS RN104. Of cource I want to monitor it so I can be sure that it is healthy. This article describe howto monitor the RN104 by using SNMP.
The implementation monitors:
- Disk status/temperature
- CPU temperature
- Fan status/speed
- Network status
- Admin GUI status
The result.
The result of the implemantion can be seen below, of course is the data collected graphed if it is possible.
The implementation
As op5 Monitor has a new concept called management packs I have choosen to implement it as a management pack. For a Nagios user it means that I have put the services in a hostgroup instead of directly at the host.
If you are running op5 Monitor, it is extremly simple to implement because I have created a management pack which is downloadable from op5. Just download the json file and upload it to your op5 system using the managament pack manager.
/opt/monitor/etc/services.cfg
# Services for hostgroup manpack netgear readynas rn104
#
# service 'Cpu Temp'
define service{
use default-service
hostgroup_name manpack netgear readynas rn104
service_description Cpu Temp
check_command custom_check_snmp_v2c_ranges!.1.3.6.1.4.1.4526.22.5.1.2.1!70!85!public!"Cpu Temp"
}
# service 'Disk 1 Status'
define service{
use default-service
hostgroup_name manpack netgear readynas rn104
service_description Disk 1 Status
check_command custom_check_snmp_v2c_regexp!.1.3.6.1.4.1.4526.22.3.1.9.1!online!public!"Disk status"
}
# service 'Disk 1 temperature'
define service{
use default-service
hostgroup_name manpack netgear readynas rn104
service_description Disk 1 temperature
check_command custom_check_snmp_v2c_ranges!.1.3.6.1.4.1.4526.22.3.1.10.1!45!50!public!"Disk 1 temperature"
}
# service 'Disk 2 Status'
define service{
use default-service
hostgroup_name manpack netgear readynas rn104
service_description Disk 2 Status
check_command custom_check_snmp_v2c_regexp!.1.3.6.1.4.1.4526.22.3.1.9.2!online!public!"Disk status"
}
# service 'Disk 2 temperature'
define service{
use default-service
hostgroup_name manpack netgear readynas rn104
service_description Disk 2 temperature
check_command custom_check_snmp_v2c_ranges!.1.3.6.1.4.1.4526.22.3.1.10.2!45!50!public!"Disk 2 temperature"
}
# service 'Disk 3 status'
define service{
use default-service
hostgroup_name manpack netgear readynas rn104
service_description Disk 3 status
check_command custom_check_snmp_v2c_regexp!.1.3.6.1.4.1.4526.22.3.1.9.3!online!public!"Disk status"
}
# service 'Disk 3 temperature'
define service{
use default-service
hostgroup_name manpack netgear readynas rn104
service_description Disk 3 temperature
check_command custom_check_snmp_v2c_ranges!.1.3.6.1.4.1.4526.22.3.1.10.3!45!50!public!"Disk 3 temperature"
}
/opt/monitor/etc/hostcommands.cfg
# command 'custom_check_snmp_v2c_ranges'
define command{
command_name custom_check_snmp_v2c_ranges
command_line $USER1$/check_snmp -H $HOSTADDRESS$ -P 2c -o $ARG1$ -w $ARG2$ -c $ARG3$ -C$ARG4$ -m: -l $ARG5$
}
# command 'custom_check_snmp_v2c_regexp'
define command{
command_name custom_check_snmp_v2c_regexp
command_line $USER1$/check_snmp -H $HOSTADDRESS$ -P 2c -o $ARG1$ -R $ARG2$ -C$ARG3$ -m: -l $ARG4$
}
Links
Leave a Reply
You must be logged in to post a comment.