Nagios Config to monitor ReadyNAS Devices

  1. Login on your ReadyNAS box and enable SNMP under System/Alerts/SNMP
    We suggest that you use a good community name and restrict access to your Nagios or NRPE IP
  2. Download the READYNAS-MIB.TXT into /usr/share/snmp/mibs/ (or wherever you keep your MIBS).
  3. We suggest you create a template like the following, you need to replace "READYNAS_HOST_NAME" with the hostnames of your ReadyNAS boxes:
    
    define host{
            name                            generic-readynas; The name of this host template
            notifications_enabled           1       	; Host notifications are enabled
            event_handler_enabled           1       	; Host event handler is enabled
            flap_detection_enabled          1       	; Flap detection is enabled
            failure_prediction_enabled      1       	; Failure prediction is enabled
            process_perf_data               1       	; Process performance data
            retain_status_information       1       	; Retain status information across program restarts
            retain_nonstatus_information    1       	; Retain non-status information across program restarts
            notification_period		24x7		; Send host notifications at any time
            register                        0       	; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
            }
    
    define service{
            use                     	local-service
            hostgroup_name	          readynas-systems
            service_description    	  PING
            check_command           	check_ping!200.0,20%!500.0,60%
            	}
    
    define hostgroup{
    	        hostgroup_name          readynas-systems
            	alias 									readynas-systems
            	members 								READYNAS_HOST_NAME
            	}
    
    define service{
            use                             	generic-service 
            hostgroup_name	                  readynas-systems
            service_description             	Temperature
            is_volatile                     	0
            check_period                    	24x7
            max_check_attempts                3
            normal_check_interval             2
            retry_check_interval            	1
            contact_groups                  	admins
            notification_interval           	240
            notification_period             	24x7
            notification_options            	w,u,c,r
            check_command                     check_readynas_temperature
             }	
    
    define command{
            command_name    check_readynas_temperature
            command_line    $USER1$/check_snmp -H $HOSTADDRESS$ -o READYNAS-MIB::temperatureStatus.1 -C public -P 2c
            }
    
    define service{
            use                             	generic-service 
            hostgroup_name	                  readynas-systems
            service_description             	Disk 1 Status
            is_volatile                     	0
            check_period                    	24x7
            max_check_attempts                3
            normal_check_interval             2
            retry_check_interval            	1
            contact_groups                  	admins
            notification_interval           	240
            notification_period             	24x7
            notification_options            	w,u,c,r
            check_command                     check_readynas_disk1
             }	
    
    define command{
            command_name    check_readynas_disk1
            command_line    $USER1$/check_snmp -H $HOSTADDRESS$ -o READYNAS-MIB::diskState.1 -C public -P 2c
            }
    
    define service{
            use                             	generic-service 
            hostgroup_name	                  readynas-systems
            service_description             	Disk 2 Status
            is_volatile                     	0
            check_period                    	24x7
            max_check_attempts                3
            normal_check_interval             2
            retry_check_interval            	1
            contact_groups                  	admins
            notification_interval           	240
            notification_period             	24x7
            notification_options            	w,u,c,r
            check_command                     check_readynas_disk2
             }	
    
    define command{
            command_name    check_readynas_disk2
            command_line    $USER1$/check_snmp -H $HOSTADDRESS$ -o READYNAS-MIB::diskState.2 -C public -P 2c
            }
    
    define service{
            use                             	generic-service 
            hostgroup_name	                  readynas-systems
            service_description             	Disk 3 Status
            is_volatile                     	0
            check_period                    	24x7
            max_check_attempts                3
            normal_check_interval             2
            retry_check_interval            	1
            contact_groups                  	admins
            notification_interval           	240
            notification_period             	24x7
            notification_options            	w,u,c,r
            check_command                     check_readynas_disk3
             }	
    
    define command{
            command_name    check_readynas_disk3
            command_line    $USER1$/check_snmp -H $HOSTADDRESS$ -o READYNAS-MIB::diskState.3 -C public -P 2c
            }
    
    define service{
            use                             	generic-service 
            hostgroup_name	                  readynas-systems
            service_description             	Disk 4 Status
            is_volatile                     	0
            check_period                    	24x7
            max_check_attempts                3
            normal_check_interval             2
            retry_check_interval            	1
            contact_groups                  	admins
            notification_interval           	240
            notification_period             	24x7
            notification_options            	w,u,c,r
            check_command                     check_readynas_disk4
             }	
    
    define command{
            command_name    check_readynas_disk4
            command_line    $USER1$/check_snmp -H $HOSTADDRESS$ -o READYNAS-MIB::diskState.4 -C public -P 2c
            }
    
    define service{
            use                             	generic-service 
            hostgroup_name	                  readynas-systems
            service_description             	Volume Status
            is_volatile                     	0
            check_period                    	24x7
            max_check_attempts                3
            normal_check_interval             2
            retry_check_interval            	1
            contact_groups                  	admins
            notification_interval           	240
            notification_period             	24x7
            notification_options            	w,u,c,r
            check_command                     check_readynas_volumestatus
             }	
    
    define command{
            command_name    check_readynas_volumestatus
            command_line    $USER1$/check_snmp -H $HOSTADDRESS$ -o READYNAS-MIB::volumeStatus.1 -C public -P 2c
            }
    
    define service{
            use                             	generic-service 
            hostgroup_name	                  readynas-systems
            service_description             	Volume FreeSpace
            is_volatile                     	0
            check_period                    	24x7
            max_check_attempts                3
            normal_check_interval             2
            retry_check_interval            	1
            contact_groups                  	admins
            notification_interval           	240
            notification_period             	24x7
            notification_options            	w,u,c,r
            check_command                     check_readynas_volumefree
             }	
    
    define command{
            command_name    check_readynas_volumefree
            command_line    $USER1$/check_snmp -H $HOSTADDRESS$ -o READYNAS-MIB::volumeFreeSpace.1 -C public -P 2c -w 250000:100000 -c 99999:0
            }
    
  4. Create a hostentry with the name of the host as used above
    
    define host{
            use                     generic-host
            host_name               rnas01.ger.cdip.net
            alias                   rnas01.ger.cdip.net
            check_period                    	24x7            	 ; By default, Linux hosts are checked round the clock
            max_check_attempts                10                 ; Check each Linux host 10 times (max)
            check_command                     check-host-alive   ; Default command to check Linux hosts
            notification_period             	24x7  	       ; Linux admins hate to be woken up, so we only notify during the day
                                                       		 ; Note that the notification_period variable is being overridden from
                                                            	 ; the value that is inherited from the generic-host template!
            notification_interval           	120  	             ; Resend notification every 2 hours
            notification_options            	d,u,r           	 ; Only send notifications for specific host states
            contact_groups                  	admins 	 ; Notifications get sent to the admins by default
            address                 10.198.70.95
    				parents									gs1524-1
    	}
    

Labels

plugin plugin Delete
snmp snmp Delete
netgear netgear Delete
readynas readynas Delete
nagios nagios Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.