Network monitoring of TS 209 pro

Here you can find many system utilities/tools to ease the every day routine of the administrators as well as facilitating the development of applications.

Network monitoring of TS 209 pro

Postby sashimi45 » Fri Sep 19, 2008 12:16 pm

I am setting up a Nagios monitoring server in my home network. I was wondering what kind of capabilities does TS 209 Pro provide for this ? Does it support generic SNMP ? So far I have just been using some simple shell scripts (over ssh) to monitor disk space usage. I am wondering if there is an existing set of utilities and scripts that can work with somethig like Nagios.

thanks
sashimi45
Cadet
 
Posts: 11
Joined: Tue Feb 12, 2008 9:48 pm
Location: Boston
NAS Model: TS-109/209 Pro

Re: Network monitoring of TS 209 pro

Postby QNAPJames » Fri Sep 19, 2008 2:54 pm

Hi sashimi45,

You can refer to this thread, it might be help. : )
viewtopic.php?t=4498

oh and..go Red Sox! :lol:
Do you know......
1. You can now contribute your knowledge & experience on QNAPedia!
2. HOWTO Find out which process prevents the NAS HDD from spindown (click here)
3. HOWTO How to set up authorized_keys (click here)

Friends of my QNAP TS-259 & TS-439:
Desktop: Intel Core i5 (750) 2.66 GHz + GIGABYTE P55A-UD3P + Windows 7 64-bit Ultimate
Laptop: MacBook Pro (10.6.4) + Intel Core i5 2.53 GHz & MacBook (10.6.3) + Intel Core2Duo 2.0 GHz
Media Player: QNAP NMP-1000 (1.1.7) & Sony PlayStation 3 (3.30)
Portable: iPhone 3GS (4.0)
User avatar
QNAPJames
Diamond Warrior
 
Posts: 1263
Joined: Fri Jun 13, 2008 3:12 pm
Location: Taipei
NAS Model: TS-439 Pro

Re: Network monitoring of TS 209 pro

Postby sashimi45 » Fri Sep 19, 2008 9:30 pm

ah! indeed :-) many thanks. I will look at the thread.

These units have so much functionality. I have resisted the temptation to turn this into another PC and use it mainly as file server. I have not insalled QPkg etc. on it so far. That may have to change :-)
sashimi45
Cadet
 
Posts: 11
Joined: Tue Feb 12, 2008 9:48 pm
Location: Boston
NAS Model: TS-109/209 Pro

Re: Network monitoring of TS 209 pro

Postby sashimi45 » Tue Sep 23, 2008 12:39 am

Thanks for the thread pointer. Just wanted to give an update. Did manage to get snmp working with nagios on remote server. For now I am holding off on the nrpe->nagios route since the port of nrpe in ipkg seems to be intended for unslung.

Not having played around with snmp before it took some poking around. I had to generally do the following.

Installed net-snmp on the TS-209 pro box (How do i get to start the daemon automatically after a boot ? Do I need to put it in autorun.sh?)

Edited the /opt/etc/snmpd.conf to add the mounts /share/HDA_DATA, /share/HDB_DATA in the disk monitoring section.

On the remote ubuntu box after I set up the check_snmp plugin for nagios server, the most difficult part for me to get hold of the various MIB OIDs. Ended up using the mbrowse on the ubuntu box. For starters I am interested in the disk utilization, load, memory, uptime, network port status. Turns out the relevant OIDs are spread out under the iso.org.dod.internet.management.mib-2 and iso.org.dod.internet.private.enterprises.ucdavis nodes. Used a combination of snmpwalk command, snmpd.conf (on TS-209), search facility of mbrowse to locate the relevant OIDs (that were supported by TS-209).

Once I was able to identify the OIDs, the next step was to set up the nagios snmp commands towards TS-209 and that was relatively easy.

Getting the OIDs were the most difficult thing for me here. mbrowse seems to be a nice tool. Getf on my windows XP kept crashing for some reason.

Here are the nagios commands I am using. For some I am using MIB object names
and for others I am using OIDs directly, and combination for some. One can look for
these OIDs in mbrowse once it has been pointed at the TS-209 snmpd server

#Check Disk 1 utilization (same thing for Disk2 or they can be combined in one command)

define service{
use generic-service ; Inherit values from a template
host_name QNAP01
name Disk 1
service_description Disk 1 Utilization
check_command check_snmp!-P 2c -l Disk -u % -w 90 -c 95 -o dskPercent.1
normal_check_interval 720
retry_check_interval 15
}

# Monitor Port 1 status via SNMP

define service{
use generic-service ; Inherit values from a template
host_name QNAP01
service_description Network Port Status
normal_check_interval 5
check_command check_snmp!-C public -o ifOperStatus.1 -r 1 -m RFC1213-MIB
}

# Command for Checking Uptime

define service{
use generic-service ; Inherit values from a template
host_name QNAP01
service_description Uptime
normal_check_interval 5
check_command check_snmp!-P 2c -l Uptime -o .1.3.6.1.2.1.1.3.sysUpTimeInstance

}

# Command for Checking CPU load Average (over 1min, 5 min, 15 min)

define service{
use generic-service ; Inherit values from a template
host_name QNAP01
service_description Load Average over 1 5 15 min
normal_check_interval 5
check_command check_snmp!-P 2c -l LoadAvg -o .1.3.6.1.4.1.2021.10.1.3.1,.1.3.6.1.4.1.2021.10.1.3.2,.1.3.6.1.4.1.2021.10.1.3.3

}

# Command for Checking CPU load Average Error Flag (0 is ok)

define service{
use generic-service ; Inherit values from a template
host_name QNAP01
service_description Load Average Error Flags
normal_check_interval 5
check_command check_snmp!-P 2c -l LAErrFlags -r0 -o .1.3.6.1.4.1.2021.10.1.100.1,.1.3.6.1.4.1.2021.10.1.100.2,.1.3.6.1.4.1.2021.10.1.100.3
}

# Command for Checking Real Memory (Outside range is ok)

define service{
use generic-service ; Inherit values from a template
host_name QNAP01
service_description Real Memory Availability
normal_check_interval 5
check_command check_snmp!-P 2c -l Memory -u KB -w 1000:500 -c 500:0 -o memAvailReal.0

}

These mem ranges are just experimental and not based on any rational logic :-)


Hope these will help somebody else in my situation
sashimi45
Cadet
 
Posts: 11
Joined: Tue Feb 12, 2008 9:48 pm
Location: Boston
NAS Model: TS-109/209 Pro


Return to Admin / Devel / System Utilities Modz

Who is online

Users browsing this forum: No registered users and 1 guest