Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Thanks Saxofon :)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2007-02-05
11:43 AM
2007-02-05
11:43 AM
MRTG config info
Since I have been struggling to figure this out, I thought I would share my mrtg.cfg file set up to monitor eth0 on our ReadyNAS NV+:
I couple of FYIs here:
The MIB might not even be necessary for the network statistics, but you can download it from the Infrant website here:
http://www.infrant.com/download/INFRANT-MIB.txt
This was on a NetBSD box, so your path to the username directory may look different (or wherever you decide to put it). You'll have to fill in the correct path/username. The IP address will be different as well.
That all being posted... does anyone know how to set up a config to show the volume statistics? (used, free, total)
Thanks!
KJ
### Global Config Options
# to get bits instead of bytes and graphs growing to the right
# Options[_]: growright, bits
EnableIPv6: no
LoadMIBs: /home/username/www/mrtg/INFRANT.MIB
WorkDir: /home/username/www/mrtg
Options[_]: bits, growright
######################################################################
# System: ReadyNAS
# Description: Linux ReadyNAS 2.4.20-3.00c1.0 Wed Nov 29 15:20:42 PST 2006 sparc
# Contact: root
# Location: Unknown
######################################################################
Target[nas]: 3:public@192.168.1.17:
SetEnv[nas]: MRTG_INT_IP="" MRTG_INT_DESCR="public"
MaxBytes1[nas]: 1000000000
MaxBytes2[nas]: 1000000000
Title[nas]: Traffic Analysis for ReadyNAS
PageTop[nas]: <H1>Traffic Analysis for ReadyNAS at 192.168.1.17</H1>
I couple of FYIs here:
The MIB might not even be necessary for the network statistics, but you can download it from the Infrant website here:
http://www.infrant.com/download/INFRANT-MIB.txt
This was on a NetBSD box, so your path to the username directory may look different (or wherever you decide to put it). You'll have to fill in the correct path/username. The IP address will be different as well.
That all being posted... does anyone know how to set up a config to show the volume statistics? (used, free, total)
Thanks!
KJ
Message 1 of 12
Labels:
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2007-06-24
12:55 AM
2007-06-24
12:55 AM
Re: MRTG config info
Probably too late and you've already done this, but anyway... here's my attempt. 🙂
Pitty the drive temperatures not seem to be in mib 😞
But at least I also get temp, fan and free space now. 🙂
Pitty the drive temperatures not seem to be in mib 😞
But at least I also get temp, fan and free space now. 🙂
SingleRequest: Yes
Directory[_]: raid1
Target[raid1_eth]: 3:public@raid1
MaxBytes[raid1_eth]: 1250000000
Title[raid1_eth]: raid1 eth
PageTop[raid1_eth]: <H1>raid1 eth</H1>
Target[raid1_fan]: .1.3.6.1.4.1.11500.1.4.1.2.0&.1.3.6.1.4.1.11500.1.4.1.2.0:public@raid1
Options[raid1_fan]: growright, gauge, nopercent, noo
MaxBytes[raid1_fan]: 5000
Title[raid1_fan]: raid1 fan
PageTop[raid1_fan]: <H1>raid1 fan</H1>
YLegend[raid1_fan]: RPMS
ShortLegend[raid1_fan]: RPMS
LegendI[raid1_fan]: Rear fan
WithPeak[raid1_fan]: ymwd
Target[raid1_temp]: .1.3.6.1.4.1.11500.1.5.1.2.0&.1.3.6.1.4.1.11500.1.5.1.2.0:public@raid1
Options[raid1_temp]: growright, gauge, nopercent, noo
MaxBytes[raid1_temp]: 100
Title[raid1_temp]: raid1 temp
PageTop[raid1_temp]: <H1>raid1 temp</H1>
YLegend[raid1_temp]: Celcius
ShortLegend[raid1_temp]: C
LegendI[raid1_temp]: System
WithPeak[raid1_temp]: ymwd
Target[raid1_vol]: .1.3.6.1.4.1.11500.1.7.1.5.1&.1.3.6.1.4.1.11500.1.7.1.6.1:public@raid1
Options[raid1_vol]: growright, gauge, noi
MaxBytes[raid1_vol]: 1418752
YTicsFactor[raid1_vol]: 0.001
Factor[raid1_vol]: 0.001
Title[raid1_vol]: raid1 volume
PageTop[raid1_vol]: <H1>raid1 volume</H1>
YLegend[raid1_vol]: GB
ShortLegend[raid1_vol]: GB
LegendI[raid1_vol]: Total
LegendO[raid1_vol]: Free
Unscaled[raid1_vol]: ymwd
Message 2 of 12
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2007-06-24
09:31 AM
2007-06-24
09:31 AM
Re: MRTG config info
Probably too late and you've already done this, but anyway... here's my attempt.
No -- I hadn't yet. Thanks for the info!
Message 3 of 12
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2007-08-09
06:47 AM
2007-08-09
06:47 AM
MIB Install?
Hi Guys
You'll have to excuse me, I'm an MRTG newbie. OK, first things first, I'm successfully monitoring some PC's on my network using MRTG, and now I want to start monitoring my ReadyNAS. I'm not too sure what the MIB thingy is all about, nor what to do with it? If someone could please explain howto monitor the readynas with MRTG, or even just point me in the right direction.
Thanks for your help gents.
Regards
Robbie
You'll have to excuse me, I'm an MRTG newbie. OK, first things first, I'm successfully monitoring some PC's on my network using MRTG, and now I want to start monitoring my ReadyNAS. I'm not too sure what the MIB thingy is all about, nor what to do with it? If someone could please explain howto monitor the readynas with MRTG, or even just point me in the right direction.
Thanks for your help gents.
Regards
Robbie
Message 4 of 12
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2007-08-12
05:14 AM
2007-08-12
05:14 AM
Re: MRTG config info
Hi Gurutek,
Well, you say you can monitor som PC's using MRTG.
Good, then you are almost home!
Cut&paste my mrtg "code" into a file (i call it raid1.inc)
You need to tweak it a little bit to match your setup,
at least the "target" rules needs to be redefined for your host
[root@mms mrtg]# grep Target raid1/raid1.inc
Target[raid1_eth]: 3:public@raid1
Target[raid1_fan]: .1.3.6.1.4.1.11500.1.4.1.2.0&.1.3.6.1.4.1.11500.1.4.1.2.0:public@raid1
Target[raid1_temp]: .1.3.6.1.4.1.11500.1.5.1.2.0&.1.3.6.1.4.1.11500.1.5.1.2.0:public@raid1
Target[raid1_vol]: .1.3.6.1.4.1.11500.1.7.1.5.1&.1.3.6.1.4.1.11500.1.7.1.6.1:public@raid1
[root@mms mrtg]#
The last "raid1" word in above lines should be the IP (or hostname if your dns things are
ok) that points to your ReadyNAS box.
I don't think you need to use the infrant MIB since the snmp variable is numerically
specified instead of via symbols.
In your top mrtg config file (usually /etc/mrtg/mrtg.cfg) you can
include this file like:
include: raid1.inc
Thereafter, you just issue the commands to generate html/mrtg files as you've done before.
It aint difficult at all :roll:
Well, you say you can monitor som PC's using MRTG.
Good, then you are almost home!
Cut&paste my mrtg "code" into a file (i call it raid1.inc)
You need to tweak it a little bit to match your setup,
at least the "target" rules needs to be redefined for your host
[root@mms mrtg]# grep Target raid1/raid1.inc
Target[raid1_eth]: 3:public@raid1
Target[raid1_fan]: .1.3.6.1.4.1.11500.1.4.1.2.0&.1.3.6.1.4.1.11500.1.4.1.2.0:public@raid1
Target[raid1_temp]: .1.3.6.1.4.1.11500.1.5.1.2.0&.1.3.6.1.4.1.11500.1.5.1.2.0:public@raid1
Target[raid1_vol]: .1.3.6.1.4.1.11500.1.7.1.5.1&.1.3.6.1.4.1.11500.1.7.1.6.1:public@raid1
[root@mms mrtg]#
The last "raid1" word in above lines should be the IP (or hostname if your dns things are
ok) that points to your ReadyNAS box.
I don't think you need to use the infrant MIB since the snmp variable is numerically
specified instead of via symbols.
In your top mrtg config file (usually /etc/mrtg/mrtg.cfg) you can
include this file like:
include: raid1.inc
Thereafter, you just issue the commands to generate html/mrtg files as you've done before.
It aint difficult at all :roll:
Message 5 of 12
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2007-08-16
04:18 AM
2007-08-16
04:18 AM
Thanks Saxofon :)
Well, after following Saxofon's instructions, and a little tweaking I was able to get the info I needed on my ReadyNas. Here is what the NAS section of my MRTG.CFG file looks like:
######################################################################
# System: ReadyNAS
# Description: Linux ReadyNAS 2.4.20-3.00c1.0 Wed Nov 29 15:20:42 PST 2006 sparc
# Contact: root
# Location: Unknown
######################################################################
SingleRequest: Yes
Directory[_]: NAS
Target[raid1_eth]: 3:public@192.168.0.2
MaxBytes[raid1_eth]: 1250000000
Title[raid1_eth]: ReadyNAS GigaBit Eth0
PageTop[raid1_eth]: <H1>ReadyNAS Gigait Eth0</H1>
Target[raid1_fan]: .1.3.6.1.4.1.11500.1.4.1.2.0&.1.3.6.1.4.1.11500.1.4.1.2.0:public@192.168.0.2
Options[raid1_fan]: growright, gauge, nopercent, noo
MaxBytes[raid1_fan]: 5000
Title[raid1_fan]: ReadyNAS Fan Speed
PageTop[raid1_fan]: <H1>ReadyNAS Fan Speed</H1>
YLegend[raid1_fan]: RPMS
ShortLegend[raid1_fan]: RPMS
LegendI[raid1_fan]: Rear fan
WithPeak[raid1_fan]: ymwd
Target[raid1_temp]: .1.3.6.1.4.1.11500.1.5.1.2.0&.1.3.6.1.4.1.11500.1.5.1.2.0:public@192.168.0.2
Options[raid1_temp]: growright, gauge, nopercent, noo
MaxBytes[raid1_temp]: 50
Title[raid1_temp]: ReadyNAS Temperature
PageTop[raid1_temp]: <H1>ReadyNAS Temperature</H1>
YLegend[raid1_temp]: C
ShortLegend[raid1_temp]: C
LegendI[raid1_temp]: Temp
WithPeak[raid1_temp]: ymwd
I couldn't get the volume bit to work - but don't really need this. I am also interested in getting the CPU load - Does anyone know how to go about getting the numeric SNMP variable for CPU load? How do you find out any of the SNMP variables?
Does anyone else know of any other interesting things to monitor on the ReadyNAS?
Thanks for the help Saxofon 🙂
######################################################################
# System: ReadyNAS
# Description: Linux ReadyNAS 2.4.20-3.00c1.0 Wed Nov 29 15:20:42 PST 2006 sparc
# Contact: root
# Location: Unknown
######################################################################
SingleRequest: Yes
Directory[_]: NAS
Target[raid1_eth]: 3:public@192.168.0.2
MaxBytes[raid1_eth]: 1250000000
Title[raid1_eth]: ReadyNAS GigaBit Eth0
PageTop[raid1_eth]: <H1>ReadyNAS Gigait Eth0</H1>
Target[raid1_fan]: .1.3.6.1.4.1.11500.1.4.1.2.0&.1.3.6.1.4.1.11500.1.4.1.2.0:public@192.168.0.2
Options[raid1_fan]: growright, gauge, nopercent, noo
MaxBytes[raid1_fan]: 5000
Title[raid1_fan]: ReadyNAS Fan Speed
PageTop[raid1_fan]: <H1>ReadyNAS Fan Speed</H1>
YLegend[raid1_fan]: RPMS
ShortLegend[raid1_fan]: RPMS
LegendI[raid1_fan]: Rear fan
WithPeak[raid1_fan]: ymwd
Target[raid1_temp]: .1.3.6.1.4.1.11500.1.5.1.2.0&.1.3.6.1.4.1.11500.1.5.1.2.0:public@192.168.0.2
Options[raid1_temp]: growright, gauge, nopercent, noo
MaxBytes[raid1_temp]: 50
Title[raid1_temp]: ReadyNAS Temperature
PageTop[raid1_temp]: <H1>ReadyNAS Temperature</H1>
YLegend[raid1_temp]: C
ShortLegend[raid1_temp]: C
LegendI[raid1_temp]: Temp
WithPeak[raid1_temp]: ymwd
I couldn't get the volume bit to work - but don't really need this. I am also interested in getting the CPU load - Does anyone know how to go about getting the numeric SNMP variable for CPU load? How do you find out any of the SNMP variables?
Does anyone else know of any other interesting things to monitor on the ReadyNAS?
Thanks for the help Saxofon 🙂
Message 6 of 12
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2007-08-16
04:20 AM
2007-08-16
04:20 AM
Re: MRTG config info
Posted Config again - Disabling HTML this time 🙂
######################################################################
# System: ReadyNAS
# Description: Linux ReadyNAS 2.4.20-3.00c1.0 Wed Nov 29 15:20:42 PST 2006 sparc
# Contact: root
# Location: Unknown
######################################################################
SingleRequest: Yes
Directory[_]: NAS
Target[raid1_eth]: 3:public@192.168.0.2
MaxBytes[raid1_eth]: 1250000000
Title[raid1_eth]: ReadyNAS GigaBit Eth0
PageTop[raid1_eth]: <H1>ReadyNAS Gigait Eth0</H1>
Target[raid1_fan]: .1.3.6.1.4.1.11500.1.4.1.2.0&.1.3.6.1.4.1.11500.1.4.1.2.0:public@192.168.0.2
Options[raid1_fan]: growright, gauge, nopercent, noo
MaxBytes[raid1_fan]: 5000
Title[raid1_fan]: ReadyNAS Fan Speed
PageTop[raid1_fan]: <H1>ReadyNAS Fan Speed</H1>
YLegend[raid1_fan]: RPMS
ShortLegend[raid1_fan]: RPMS
LegendI[raid1_fan]: Rear fan
WithPeak[raid1_fan]: ymwd
Target[raid1_temp]: .1.3.6.1.4.1.11500.1.5.1.2.0&.1.3.6.1.4.1.11500.1.5.1.2.0:public@192.168.0.2
Options[raid1_temp]: growright, gauge, nopercent, noo
MaxBytes[raid1_temp]: 50
Title[raid1_temp]: ReadyNAS Temperature
PageTop[raid1_temp]: <H1>ReadyNAS Temperature</H1>
YLegend[raid1_temp]: C
ShortLegend[raid1_temp]: C
LegendI[raid1_temp]: Temp
WithPeak[raid1_temp]: ymwd
######################################################################
# System: ReadyNAS
# Description: Linux ReadyNAS 2.4.20-3.00c1.0 Wed Nov 29 15:20:42 PST 2006 sparc
# Contact: root
# Location: Unknown
######################################################################
SingleRequest: Yes
Directory[_]: NAS
Target[raid1_eth]: 3:public@192.168.0.2
MaxBytes[raid1_eth]: 1250000000
Title[raid1_eth]: ReadyNAS GigaBit Eth0
PageTop[raid1_eth]: <H1>ReadyNAS Gigait Eth0</H1>
Target[raid1_fan]: .1.3.6.1.4.1.11500.1.4.1.2.0&.1.3.6.1.4.1.11500.1.4.1.2.0:public@192.168.0.2
Options[raid1_fan]: growright, gauge, nopercent, noo
MaxBytes[raid1_fan]: 5000
Title[raid1_fan]: ReadyNAS Fan Speed
PageTop[raid1_fan]: <H1>ReadyNAS Fan Speed</H1>
YLegend[raid1_fan]: RPMS
ShortLegend[raid1_fan]: RPMS
LegendI[raid1_fan]: Rear fan
WithPeak[raid1_fan]: ymwd
Target[raid1_temp]: .1.3.6.1.4.1.11500.1.5.1.2.0&.1.3.6.1.4.1.11500.1.5.1.2.0:public@192.168.0.2
Options[raid1_temp]: growright, gauge, nopercent, noo
MaxBytes[raid1_temp]: 50
Title[raid1_temp]: ReadyNAS Temperature
PageTop[raid1_temp]: <H1>ReadyNAS Temperature</H1>
YLegend[raid1_temp]: C
ShortLegend[raid1_temp]: C
LegendI[raid1_temp]: Temp
WithPeak[raid1_temp]: ymwd
Message 7 of 12
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2007-11-25
05:36 AM
2007-11-25
05:36 AM
Re: MRTG config info
The SNMP targets have been changed in the new RAIDiator v4 firmware.
This is the new ReadyNAS MIB: READYNAS-MIB.txt (unable to post the link due to the spamfilter, the link was posted in the Feedback forum)
I succesfully monitored the traffic, fanspeed, temp and diskspace with MTRG as described in this thread, but since I upgraded to v4 this doesn't work anymore.
I already found the new target for the network traffic:
Firmware v3: Target[raid1_eth]: 3:public@192.168.0.2
Firmware v4: Target[raid1_eth]: 2:public@192.168.0.2
How can I determine the MRTG Target OID's for temp, fan and volume from the new MIB? Has anyone figured this out yet? It seems that the individual disktemp can be monitored now as well, but again: how do you figure out the new targets?
Thanks and regards,
Paul
This is the new ReadyNAS MIB: READYNAS-MIB.txt (unable to post the link due to the spamfilter, the link was posted in the Feedback forum)
I succesfully monitored the traffic, fanspeed, temp and diskspace with MTRG as described in this thread, but since I upgraded to v4 this doesn't work anymore.
I already found the new target for the network traffic:
Firmware v3: Target[raid1_eth]: 3:public@192.168.0.2
Firmware v4: Target[raid1_eth]: 2:public@192.168.0.2
How can I determine the MRTG Target OID's for temp, fan and volume from the new MIB? Has anyone figured this out yet? It seems that the individual disktemp can be monitored now as well, but again: how do you figure out the new targets?
Thanks and regards,
Paul
Message 8 of 12
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2007-12-03
12:41 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2007-12-07
11:25 AM
2007-12-07
11:25 AM
Re: MRTG config info
saxofon wrote: snmpwalk is your friend :idea:
I would appreciate if you could be a little bit more comprehensive. I already played around with snmpwalk and snmpget for a while, but it still doesn't make much sense. If I try this command:
snmpwalk -M readynas.mib -v 1 -c public readynas.mydomain
the output is a huge list of OID's and their values. But how do I tell which OID represents what?
Thanks in advance for your help!
Message 10 of 12
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2008-02-20
11:46 AM
2008-02-20
11:46 AM
Re: MRTG config info
How did you guys got MRTG working at all?? I have massive trouble with perl while installing it:
http://www.infrant.com/forum/viewtopic. ... light=mrtg
Hope some one can help me
Regards Guenther
http://www.infrant.com/forum/viewtopic. ... light=mrtg
Hope some one can help me
Regards Guenther
Message 11 of 12
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-12-25
10:54 AM
2011-12-25
10:54 AM
Re: MRTG config info
I can't seem to find out how to get the Fan RPM, Temp and so on....I can find HDD info but not the critical temperature and fan rpm!
Message 12 of 12