MRTG, Awstats done 409 on Pro
-
- Starting out
- Posts: 47
- Joined: Wed Apr 09, 2008 11:04 pm
MRTG, Awstats done 409 on Pro
Dear owners and QNAP staffs,
Just playing with my new 409Pro, I would like to install some monitoring tools such as MRTG, AWstats, but I have problem compiling and making the downloaded tar file.
have been searching on http://ipkg.nslu2-linux.org/feeds/optwa ... ss/stable/
Optware is already installed by following QNAPAndy's instruction, can I download required pkg from the url above before I can install MRTG, Awstats ?
If any brothers have done this before or knows the instruction, please help !
Many thanks
UQQ
Just playing with my new 409Pro, I would like to install some monitoring tools such as MRTG, AWstats, but I have problem compiling and making the downloaded tar file.
have been searching on http://ipkg.nslu2-linux.org/feeds/optwa ... ss/stable/
Optware is already installed by following QNAPAndy's instruction, can I download required pkg from the url above before I can install MRTG, Awstats ?
If any brothers have done this before or knows the instruction, please help !
Many thanks
UQQ
Last edited by vr2uqq on Thu Apr 17, 2008 2:00 pm, edited 1 time in total.
======
QNAP 409TPro 1031T: MRTG (monitoring 409TPro and DD-WRT), Awstats, dnsmasq
Linksys WRT54G V2.2 DD-WRT v24SP1 VPN x 2 with home made 12V POE
Netgear GS608 with 9k jumbo frame
Panasonic C111 IPCam x 3
QNAP 409TPro 1031T: MRTG (monitoring 409TPro and DD-WRT), Awstats, dnsmasq
Linksys WRT54G V2.2 DD-WRT v24SP1 VPN x 2 with home made 12V POE
Netgear GS608 with 9k jumbo frame
Panasonic C111 IPCam x 3
-
- Starting out
- Posts: 47
- Joined: Wed Apr 09, 2008 11:04 pm
Re: MRTG, Awstats on 409 Pro ?
update:
awstats is installed via the url, need some tuning as the awstats.pl file level permission need to change to 755.
other way round is to output the graph into a html file and place somewhere under Qweb.
Thank you
QQ
awstats is installed via the url, need some tuning as the awstats.pl file level permission need to change to 755.
other way round is to output the graph into a html file and place somewhere under Qweb.
Thank you
======
QNAP 409TPro 1031T: MRTG (monitoring 409TPro and DD-WRT), Awstats, dnsmasq
Linksys WRT54G V2.2 DD-WRT v24SP1 VPN x 2 with home made 12V POE
Netgear GS608 with 9k jumbo frame
Panasonic C111 IPCam x 3
QNAP 409TPro 1031T: MRTG (monitoring 409TPro and DD-WRT), Awstats, dnsmasq
Linksys WRT54G V2.2 DD-WRT v24SP1 VPN x 2 with home made 12V POE
Netgear GS608 with 9k jumbo frame
Panasonic C111 IPCam x 3
- AndyChuo
- Experience counts
- Posts: 2388
- Joined: Thu Sep 13, 2007 11:56 am
- Location: Taipei, Taiwan
Re: MRTG, Awstats on 409 Pro ?
here's the complete ASWtats installation guide tested on TS-409 without having to install anything via IPKG
=============================================================>>>
TS-659-Pro [RAID6] rtorrent+SABnzbdplus+SickBeard+Couchpotato [Best PVR] Plex+PMS [Ultimate Streamer]
Apple iPad [Best Tablet] HTC One M8 [Mobile Phone] Samsung UA46ES6100 [My Screen] KRK Rokit 6 [Audio Speakers]
Chrome Cast [Screen Casting] Philips Hue [Personal Lighing]
Buffalo WZR-1750DHP [My Wifi Hub] D-Link DGS-1005D [Gbit Network]
=============================================================>>>
TS-659-Pro [RAID6] rtorrent+SABnzbdplus+SickBeard+Couchpotato [Best PVR] Plex+PMS [Ultimate Streamer]
Apple iPad [Best Tablet] HTC One M8 [Mobile Phone] Samsung UA46ES6100 [My Screen] KRK Rokit 6 [Audio Speakers]
Chrome Cast [Screen Casting] Philips Hue [Personal Lighing]
Buffalo WZR-1750DHP [My Wifi Hub] D-Link DGS-1005D [Gbit Network]
=============================================================>>>
-
- Starting out
- Posts: 47
- Joined: Wed Apr 09, 2008 11:04 pm
Re: MRTG, Awstats on 409 Pro ?
Many thanks Andy, I have successfully installed and running Awstats now (using the download package, may be your recommended is easier to install).
On the MRTG issue, I have been testing using net-snmp on 409, it works fine with snmpwalk with SNMP version 2c on 409. but when I use MRTG to generate the config, it returns remote device not responding.
Would this be the issue of perl on 409 and the GCC lib not find problem ?
On the MRTG issue, I have been testing using net-snmp on 409, it works fine with snmpwalk with SNMP version 2c on 409. but when I use MRTG to generate the config, it returns remote device not responding.
Would this be the issue of perl on 409 and the GCC lib not find problem ?
======
QNAP 409TPro 1031T: MRTG (monitoring 409TPro and DD-WRT), Awstats, dnsmasq
Linksys WRT54G V2.2 DD-WRT v24SP1 VPN x 2 with home made 12V POE
Netgear GS608 with 9k jumbo frame
Panasonic C111 IPCam x 3
QNAP 409TPro 1031T: MRTG (monitoring 409TPro and DD-WRT), Awstats, dnsmasq
Linksys WRT54G V2.2 DD-WRT v24SP1 VPN x 2 with home made 12V POE
Netgear GS608 with 9k jumbo frame
Panasonic C111 IPCam x 3
-
- Starting out
- Posts: 47
- Joined: Wed Apr 09, 2008 11:04 pm
Re: MRTG, Awstats on 409 Pro ?
MRTG is completed, the former error was due to perl. Fixed by removing the Perl ipkg installation and following Andy's instruction.
Then need to install a number of packages
fontconfig
expat
freetype
zlib
gconv-modules
libpng
once these packages are installed, MRTG is functioning.
many thanks
UQQ
Then need to install a number of packages
fontconfig
expat
freetype
zlib
gconv-modules
libpng
once these packages are installed, MRTG is functioning.
many thanks
UQQ
======
QNAP 409TPro 1031T: MRTG (monitoring 409TPro and DD-WRT), Awstats, dnsmasq
Linksys WRT54G V2.2 DD-WRT v24SP1 VPN x 2 with home made 12V POE
Netgear GS608 with 9k jumbo frame
Panasonic C111 IPCam x 3
QNAP 409TPro 1031T: MRTG (monitoring 409TPro and DD-WRT), Awstats, dnsmasq
Linksys WRT54G V2.2 DD-WRT v24SP1 VPN x 2 with home made 12V POE
Netgear GS608 with 9k jumbo frame
Panasonic C111 IPCam x 3
- AndyChuo
- Experience counts
- Posts: 2388
- Joined: Thu Sep 13, 2007 11:56 am
- Location: Taipei, Taiwan
Re: MRTG, Awstats on 409 Pro ?
It'll be great if you can provide the howto in QNAPedia and you can start right away by clicking here.
=============================================================>>>
TS-659-Pro [RAID6] rtorrent+SABnzbdplus+SickBeard+Couchpotato [Best PVR] Plex+PMS [Ultimate Streamer]
Apple iPad [Best Tablet] HTC One M8 [Mobile Phone] Samsung UA46ES6100 [My Screen] KRK Rokit 6 [Audio Speakers]
Chrome Cast [Screen Casting] Philips Hue [Personal Lighing]
Buffalo WZR-1750DHP [My Wifi Hub] D-Link DGS-1005D [Gbit Network]
=============================================================>>>
TS-659-Pro [RAID6] rtorrent+SABnzbdplus+SickBeard+Couchpotato [Best PVR] Plex+PMS [Ultimate Streamer]
Apple iPad [Best Tablet] HTC One M8 [Mobile Phone] Samsung UA46ES6100 [My Screen] KRK Rokit 6 [Audio Speakers]
Chrome Cast [Screen Casting] Philips Hue [Personal Lighing]
Buffalo WZR-1750DHP [My Wifi Hub] D-Link DGS-1005D [Gbit Network]
=============================================================>>>
-
- Starting out
- Posts: 47
- Joined: Wed Apr 09, 2008 11:04 pm
Re: MRTG, Awstats on 409 Pro ?
Hi Andy,
unable to login using my forum id and password, anyway here is the instruction
MRTG Installation on Qnap box (tested on 409Pro)
Assume basic linux/unix knowledge.
All configuration is done via telnet/ssh and vi editor
1. Follow Andy's instruction to install Perl 5.8.8
2. Follow Andy's instruction to complete the Autorun.sh modification
3. Follow Andy's instruction to install Optware IPKG
4. Download and install packages using IPKG
(the following packages will automatically added on fontconfig installation,
please do manual installation if these packages are not added or
make sure the system has these packages installed already)
6. Install MRTG package via IPKG
7. Install Net-SNMP via IPKG
Both MRTG and Net-snmp will be installed on /opt/bin and /opt/sbin
8. Start snmpd for testing, the default community is "public", the config file is found on /opt/etc/snmpd.conf
9. Test SNMP (assuming community is "public"), this will query Qnap box snmpd for data, a list of OID with value will be shown.
10. Create MRTG directory under /opt/etc to store config files
11. Create a MRTG directory under Qweb for remote Web access
12. Use MRTG configurator to generate a simple configure file (assuming community is "public")
13. Test the configuration file by executing mrtg manually, watch the output for error
(those log file missing or unable to remove log file errors can be ignored as this is the first time mrtg is run)
14. If everything has gone without error, then you should find a number of files in /share/Qweb/mrtg
15. Create index for the mrtg monitored host, based on the newly created configuration file
16. Create a cronjob for MRTG to run at your requirement (I set every 5mins)
Enter crontab editing mode in vi
type the following
scroll to last line and add the following line to the last line
press "ESCape" key
press "Return" key
press "Return" key
17. Edit crontab file using vi editor
type the following
scroll to last line and add the following line to the last line
press "ESCape" key
press "Return" key
press "Return" key
18. Sit back and get yourself a drink, I mean a drink, not a glass of water.
19. Use web browser to access the MRTG site
You should able to see something up in two cycles!
For those who has firewall on the box, please make sure UDP 161 is permitted.
Please refer to MRTG and SNMP OID for more detailed configuration. Since Qnap box is a linux and Net-SNMP has a set of OID for monitoring on 2021, please use SNMP browser like Getif to walk through.
It may be possible to monitor the Disc array, temp etc etc but this requires more scripting on the SNMP agent side. It would be nice if QNAP add MRTG as standard monitoring tools in the next firmware release. (this would be good if Awstats be added as default!)
Some simple manual graphs for QNAP 409 Pro box, I am using my 409Pro to monitor my DD-WRT router as well, it is interesting to see when then traffic has gone up during BT.
Ref URLs
MRTG Documents http://oss.oetiker.ch/mrtg/doc/index.en.html
Getif Free SNMP tools for W32 http://www.wtcs.org/snmp4tpc/getif.htm
unable to login using my forum id and password, anyway here is the instruction
MRTG Installation on Qnap box (tested on 409Pro)
Assume basic linux/unix knowledge.
All configuration is done via telnet/ssh and vi editor
1. Follow Andy's instruction to install Perl 5.8.8
Code: Select all
http://wiki.qnap.com/wiki/Perl_5.8.8_Installation
Code: Select all
http://wiki.qnap.com/wiki/Autorun.sh
4. Download and install packages using IPKG
Code: Select all
/opt/bin/ipkg install fontconfig
please do manual installation if these packages are not added or
make sure the system has these packages installed already)
- expat
freetype
zlib
gconv-modules
Code: Select all
/opt/bin/ipkg install libpng
Code: Select all
/opt/bin/ipkg install mrtg
Code: Select all
/opt/bin/ipkg install net-snmp
8. Start snmpd for testing, the default community is "public", the config file is found on /opt/etc/snmpd.conf
Code: Select all
/opt/sbin/snmpd start
Code: Select all
/opt/bin/snmpwalk -v 2c -c public localhost
Code: Select all
mkdir /opt/etc/mrtg
Code: Select all
mkdir /share/Qweb/mrtg
Code: Select all
/opt/bin/cfgmaker public@localhost --global "WorkDir: /share/Qweb/mrtg" > /opt/etc/mrtg/localhost.cfg
(those log file missing or unable to remove log file errors can be ignored as this is the first time mrtg is run)
Code: Select all
/opt/bin/mrtg /opt/etc/mrtg/localhost.cfg
15. Create index for the mrtg monitored host, based on the newly created configuration file
Code: Select all
/opt/bin/indexmaker /opt/etc/mrtg/localhost.cfg --output /share/Qweb/mrtg/nas.html
Enter crontab editing mode in vi
Code: Select all
crontab -e
Code: Select all
a
Code: Select all
*/5 * * * * /opt/bin/mrtg /opt/etc/mrtg/localhost.cfg
Code: Select all
:qw
Code: Select all
:q
17. Edit crontab file using vi editor
Code: Select all
vi /etc/config/crontab
Code: Select all
a
Code: Select all
*/5 * * * * /opt/bin/mrtg /opt/etc/mrtg/localhost.cfg
Code: Select all
:qw
Code: Select all
:q
18. Sit back and get yourself a drink, I mean a drink, not a glass of water.
19. Use web browser to access the MRTG site
Code: Select all
http://nas/mrtg/nas.html
For those who has firewall on the box, please make sure UDP 161 is permitted.
Please refer to MRTG and SNMP OID for more detailed configuration. Since Qnap box is a linux and Net-SNMP has a set of OID for monitoring on 2021, please use SNMP browser like Getif to walk through.
It may be possible to monitor the Disc array, temp etc etc but this requires more scripting on the SNMP agent side. It would be nice if QNAP add MRTG as standard monitoring tools in the next firmware release. (this would be good if Awstats be added as default!)
Some simple manual graphs for QNAP 409 Pro box, I am using my 409Pro to monitor my DD-WRT router as well, it is interesting to see when then traffic has gone up during BT.
Code: Select all
Title[localhost_Loading]: NAS Loading
PageTop[localhost_Loading]: <h1>NAS Loading Average 1mins, 5mins</h1>
Target[localhost_Loading]: 1.3.6.1.4.1.2021.10.1.3.1&1.3.6.1.4.1.2021.10.1.3.2:public@localhost:::::2 * 100
MaxBytes[localhost_Loading]: 100
Options[localhost_Loading]: gauge
Unscaled[localhost_Loading]: dwmy
ShortLegend[localhost_Loading]: Load
YLegend[localhost_Loading]: Loading x 100
LegendI[localhost_Loading]: 5 mins
LegendO[localhost_Loading]: 10 mins
Title[localhost_TCPOpens]: NAS TCP Opens
PageTop[localhost_TCPOpens]: <h1>NAS TCP Opens</h1>
Target[localhost_TCPOpens]: 1.3.6.1.2.1.6.5.0&1.3.6.1.2.1.6.6.0:public@localhost
MaxBytes[localhost_TCPOpens]: 100000
Options[localhost_TCPOpens]: gauge
Unscaled[localhost_TCPOpens]: dwmy
ShortLegend[localhost_TCPOpens]: Opens
YLegend[localhost_TCPOpens]: #
LegendI[localhost_TCPOpens]: #tcp Active Opens
LegendO[localhost_TCPOpens]: #tcp Passive Opens
Title[localhost_udp]: NAS UDP
PageTop[localhost_udp]: <h1>NAS UDP</h1>
Target[localhost_udp]: 1.3.6.1.2.1.7.1.0&1.3.6.1.2.1.7.4.0:public@localhost
MaxBytes[localhost_udp]: 100
#Options[localhost_udp]: gauge
Unscaled[localhost_udp]: dwmy
#ShortLegend[localhost_udp]: Loading
#YLegend[localhost_udp]: Loadin x 100
#LegendI[localhost_udp]: 5 mins
#LegendO[localhost_udp]: 10 mins
Ref URLs
MRTG Documents http://oss.oetiker.ch/mrtg/doc/index.en.html
Getif Free SNMP tools for W32 http://www.wtcs.org/snmp4tpc/getif.htm
======
QNAP 409TPro 1031T: MRTG (monitoring 409TPro and DD-WRT), Awstats, dnsmasq
Linksys WRT54G V2.2 DD-WRT v24SP1 VPN x 2 with home made 12V POE
Netgear GS608 with 9k jumbo frame
Panasonic C111 IPCam x 3
QNAP 409TPro 1031T: MRTG (monitoring 409TPro and DD-WRT), Awstats, dnsmasq
Linksys WRT54G V2.2 DD-WRT v24SP1 VPN x 2 with home made 12V POE
Netgear GS608 with 9k jumbo frame
Panasonic C111 IPCam x 3
-
- Starting out
- Posts: 47
- Joined: Wed Apr 09, 2008 11:04 pm
Re: MRTG, Awstats on 409 Pro ?
MRTG memory config file
Code: Select all
Title[localhost_mem]: NAS Memory
PageTop[localhost_mem]: <h1>NAS Memory</h1>
Target[localhost_mem]: 1.3.6.1.4.1.2021.4.4.0&1.3.6.1.4.1.2021.4.6.0:public@localhost:::::2
MaxBytes[localhost_mem]: 1000000
Options[localhost_mem]: gauge
Unscaled[localhost_mem]: dwmy
ShortLegend[localhost_mem]: Bytes
YLegend[localhost_mem]: Bytes
LegendI[localhost_mem]: Swap Space
LegendO[localhost_mem]: Physcial Memory
Title[localhost_cac]: NAS Buffer/Cache Memory
PageTop[localhost_cac]: <h1>NAS Buffer/Cache Memory</h1>
Target[localhost_cac]: 1.3.6.1.4.1.2021.4.14.0&1.3.6.1.4.1.2021.4.15.0:public@localhost:::::2
MaxBytes[localhost_cac]: 1000000
Options[localhost_cac]: gauge
Unscaled[localhost_cac]: dwmy
ShortLegend[localhost_cac]: Bytes
YLegend[localhost_cac]: Bytes
LegendI[localhost_cac]: Buffer
LegendO[localhost_cac]: Cache
======
QNAP 409TPro 1031T: MRTG (monitoring 409TPro and DD-WRT), Awstats, dnsmasq
Linksys WRT54G V2.2 DD-WRT v24SP1 VPN x 2 with home made 12V POE
Netgear GS608 with 9k jumbo frame
Panasonic C111 IPCam x 3
QNAP 409TPro 1031T: MRTG (monitoring 409TPro and DD-WRT), Awstats, dnsmasq
Linksys WRT54G V2.2 DD-WRT v24SP1 VPN x 2 with home made 12V POE
Netgear GS608 with 9k jumbo frame
Panasonic C111 IPCam x 3
- fribse
- Experience counts
- Posts: 2090
- Joined: Mon Feb 11, 2008 2:50 am
- Location: Greve, Denmark
- Contact:
Re: MRTG, Awstats on 409 Pro ?
Hi vr2uqq
Well, hmm, couldn't make it work.
When I installed mrtg, it installed the Perl package as well.
Then when I did cfgmaker it gave me the usual ipkg_perl error that others have reported.
I then removed the ipkg perl with -force-depends, so that it didn't remove the mrtg.
It then complained that /opt/bin/perl is a bad interpreter (it isn't there).
And then I'm a bit stuck
Well, hmm, couldn't make it work.
When I installed mrtg, it installed the Perl package as well.
Then when I did cfgmaker it gave me the usual ipkg_perl error that others have reported.
I then removed the ipkg perl with -force-depends, so that it didn't remove the mrtg.
It then complained that /opt/bin/perl is a bad interpreter (it isn't there).
And then I'm a bit stuck
Best regards
Fribse
NO, RAID is NOT backup - Use RAID-Certified 24x7 drives for raid
HOWTO's:
Make automatic backup of ALL MySQL databases http://forum.qnap.com/viewtopic.php?f=32&t=15628
NAS-659 Pro II (3 GB Ram), Raid1, Survailance station, local backup destination + NAS-853A (16 GB Ram), Virtualization Station, Plex, iDrive
Network: Fritz!Box 7560 + 24p SG200 + 2x8p SG200 + 8p POE EdgeCore + 300/300 mbit Internet
Fribse
NO, RAID is NOT backup - Use RAID-Certified 24x7 drives for raid
HOWTO's:
Make automatic backup of ALL MySQL databases http://forum.qnap.com/viewtopic.php?f=32&t=15628
NAS-659 Pro II (3 GB Ram), Raid1, Survailance station, local backup destination + NAS-853A (16 GB Ram), Virtualization Station, Plex, iDrive
Network: Fritz!Box 7560 + 24p SG200 + 2x8p SG200 + 8p POE EdgeCore + 300/300 mbit Internet
-
- Starting out
- Posts: 47
- Joined: Wed Apr 09, 2008 11:04 pm
Re: MRTG, Awstats on 409 Pro ?
Please use Andy's instruction to install Perl, don't use ipkg Perl installation. Andy has pre-compiled Perl for QNAP box. Since Awstats, MRTG are written in Perl, you have to make sure Andy;s Perl installation is completed on your box.
forgot one thing,
make a symbolic link named /opt/bin/perl to target /usr/bin/perl
ln -s /usr/bin/perl /opt/bin/perl
Hope this helps
This is due to the fact that all ipkg software predefined perl location is on /opt and their installation directory is also under /opt
You can either use the soft link or edit the mrtg perl setting which is located on the first line of each file.
forgot one thing,
make a symbolic link named /opt/bin/perl to target /usr/bin/perl
ln -s /usr/bin/perl /opt/bin/perl
Hope this helps
This is due to the fact that all ipkg software predefined perl location is on /opt and their installation directory is also under /opt
You can either use the soft link or edit the mrtg perl setting which is located on the first line of each file.
======
QNAP 409TPro 1031T: MRTG (monitoring 409TPro and DD-WRT), Awstats, dnsmasq
Linksys WRT54G V2.2 DD-WRT v24SP1 VPN x 2 with home made 12V POE
Netgear GS608 with 9k jumbo frame
Panasonic C111 IPCam x 3
QNAP 409TPro 1031T: MRTG (monitoring 409TPro and DD-WRT), Awstats, dnsmasq
Linksys WRT54G V2.2 DD-WRT v24SP1 VPN x 2 with home made 12V POE
Netgear GS608 with 9k jumbo frame
Panasonic C111 IPCam x 3
- fribse
- Experience counts
- Posts: 2090
- Joined: Mon Feb 11, 2008 2:50 am
- Location: Greve, Denmark
- Contact:
Re: MRTG, Awstats on 409 Pro ?
Hmm, I know that, BUT as I stated IT installed perl, I didn't install it, it was automagically installed when I did an mrtg install.vr2uqq wrote:Please use Andy's instruction to install Perl, don't use ipkg Perl installation. Andy has pre-compiled Perl for QNAP box. Since Awstats, MRTG are written in Perl, you have to make sure Andy;s Perl installation is completed on your box.
That part did the trick. Oh, and remember to run the mrtg a few times to get rid of the errors shown on the first run (should be run 3 times, 3rd time should be without errors).vr2uqq wrote:ln -s /usr/bin/perl /opt/bin/perl
Best regards
Fribse
NO, RAID is NOT backup - Use RAID-Certified 24x7 drives for raid
HOWTO's:
Make automatic backup of ALL MySQL databases http://forum.qnap.com/viewtopic.php?f=32&t=15628
NAS-659 Pro II (3 GB Ram), Raid1, Survailance station, local backup destination + NAS-853A (16 GB Ram), Virtualization Station, Plex, iDrive
Network: Fritz!Box 7560 + 24p SG200 + 2x8p SG200 + 8p POE EdgeCore + 300/300 mbit Internet
Fribse
NO, RAID is NOT backup - Use RAID-Certified 24x7 drives for raid
HOWTO's:
Make automatic backup of ALL MySQL databases http://forum.qnap.com/viewtopic.php?f=32&t=15628
NAS-659 Pro II (3 GB Ram), Raid1, Survailance station, local backup destination + NAS-853A (16 GB Ram), Virtualization Station, Plex, iDrive
Network: Fritz!Box 7560 + 24p SG200 + 2x8p SG200 + 8p POE EdgeCore + 300/300 mbit Internet
- AndyChuo
- Experience counts
- Posts: 2388
- Joined: Thu Sep 13, 2007 11:56 am
- Location: Taipei, Taiwan
Re: MRTG, Awstats done 409 on Pro
Hi All,
I've added it to the QNAPedia with the link here.
It also covers removing the ipkg version perl and sym-link creation.
I've added it to the QNAPedia with the link here.
It also covers removing the ipkg version perl and sym-link creation.
=============================================================>>>
TS-659-Pro [RAID6] rtorrent+SABnzbdplus+SickBeard+Couchpotato [Best PVR] Plex+PMS [Ultimate Streamer]
Apple iPad [Best Tablet] HTC One M8 [Mobile Phone] Samsung UA46ES6100 [My Screen] KRK Rokit 6 [Audio Speakers]
Chrome Cast [Screen Casting] Philips Hue [Personal Lighing]
Buffalo WZR-1750DHP [My Wifi Hub] D-Link DGS-1005D [Gbit Network]
=============================================================>>>
TS-659-Pro [RAID6] rtorrent+SABnzbdplus+SickBeard+Couchpotato [Best PVR] Plex+PMS [Ultimate Streamer]
Apple iPad [Best Tablet] HTC One M8 [Mobile Phone] Samsung UA46ES6100 [My Screen] KRK Rokit 6 [Audio Speakers]
Chrome Cast [Screen Casting] Philips Hue [Personal Lighing]
Buffalo WZR-1750DHP [My Wifi Hub] D-Link DGS-1005D [Gbit Network]
=============================================================>>>
-
- Starting out
- Posts: 47
- Joined: Wed Apr 09, 2008 11:04 pm
Re: MRTG, Awstats done 409 on Pro
To monitor the disk mount point using MRTG, please add the following lines to snmpd.conf
Add the following lines in the MRTG config file
Code: Select all
disk /mnt/HDA_ROOT
disk /share/MD0_DATA
disk /tmp
disk /mnt/ext
disk /mnt/HDA_ROOT/rootfs_2_3_6/bin
disk /mnt/HDA_ROOT/rootfs_2_3_6/dev
disk /mnt/HDA_ROOT/rootfs_2_3_6/etc/config
disk /mnt/HDA_ROOT/rootfs_2_3_6/share/Qdownload
disk /mnt/HDA_ROOT/rootfs_2_3_6/tmp
Add the following lines in the MRTG config file
Code: Select all
Title[localhost_disk2]: NAS /mnt/HDA_ROOT
PageTop[localhost_disk2]: <h1> NAS /mnt/HDA_ROOT </h1>
Options[localhost_disk2]: gauge
MaxBytes[localhost_disk2]: 100
Target[localhost_disk2]: 1.3.6.1.4.1.2021.9.1.9.1&1.3.6.1.4.1.2021.9.1.9.1:public@localhost:::::2
ShortLegend[localhost_disk2]: % Used
YLegend[localhost_disk2]: %
LegendI[localhost_disk2]: % Used
Title[localhost_disk3]: NAS /share/MD0_ROOT
PageTop[localhost_disk3]: <h1> NAS /share/MD0_ROOT</h1>
Options[localhost_disk3]: gauge
MaxBytes[localhost_disk3]: 100
Target[localhost_disk3]: 1.3.6.1.4.1.2021.9.1.9.2&1.3.6.1.4.1.2021.9.1.9.2:public@localhost:::::2
ShortLegend[localhost_disk3]: % Used
YLegend[localhost_disk3]: %
LegendI[localhost_disk3]: % Used
Title[localhost_disk4]: NAS /tmp
PageTop[localhost_disk4]: <h1> NAS /tmp</h1>
Options[localhost_disk4]: gauge
MaxBytes[localhost_disk4]: 100
Target[localhost_disk4]: 1.3.6.1.4.1.2021.9.1.9.3&1.3.6.1.4.1.2021.9.1.9.3:public@localhost:::::2
ShortLegend[localhost_disk4]: % Used
YLegend[localhost_disk4]: %
LegendI[localhost_disk4]: % Used
Title[localhost_disk5]: NAS /mnt/ext
PageTop[localhost_disk5]: <h1> NAS /mnt/ext</h1>
Options[localhost_disk5]: gauge
MaxBytes[localhost_disk5]: 100
Target[localhost_disk5]: 1.3.6.1.4.1.2021.9.1.9.4&1.3.6.1.4.1.2021.9.1.9.4:public@localhost:::::2
ShortLegend[localhost_disk5]: % Used
YLegend[localhost_disk5]: %
LegendI[localhost_disk5]: % Used
Title[localhost_disk6]: NAS /mnt/HDA_ROOT/rootfs_2_3_6/bin
PageTop[localhost_disk6]: <h1> NAS /mnt/HDA_ROOT/rootfs_2_3_6/bin</h1>
Options[localhost_disk6]: gauge
MaxBytes[localhost_disk6]: 100
Target[localhost_disk6]: 1.3.6.1.4.1.2021.9.1.9.5&1.3.6.1.4.1.2021.9.1.9.5:public@localhost:::::2
ShortLegend[localhost_disk6]: % Used
YLegend[localhost_disk6]: %
LegendI[localhost_disk6]: % Used
Title[localhost_disk7]: NAS /mnt/HDA_ROOT/rootfs_2_3_6/dev
PageTop[localhost_disk7]: <h1> NAS /mnt/HDA_ROOT/rootfs_2_3_6/dev</h1>
Options[localhost_disk7]: gauge
MaxBytes[localhost_disk7]: 100
Target[localhost_disk7]: 1.3.6.1.4.1.2021.9.1.9.6&1.3.6.1.4.1.2021.9.1.9.6:public@localhost:::::2
ShortLegend[localhost_disk7]: % Used
YLegend[localhost_disk7]: %
LegendI[localhost_disk7]: % Used
Title[localhost_disk8]: NAS /mnt/HDA_ROOT/rootfs_2_3_6/etc/config
PageTop[localhost_disk8]: <h1> NAS /mnt/HDA_ROOT/rootfs_2_3_6/etc/config</h1>
Options[localhost_disk8]: gauge
MaxBytes[localhost_disk8]: 100
Target[localhost_disk8]: 1.3.6.1.4.1.2021.9.1.9.7&1.3.6.1.4.1.2021.9.1.9.7:public@localhost:::::2
ShortLegend[localhost_disk8]: % Used
YLegend[localhost_disk8]: %
LegendI[localhost_disk8]: % Used
Title[localhost_disk9]: NAS /mnt/HDA_ROOT/rootfs_2_3_6/share/Qdownload
PageTop[localhost_disk9]: <h1> NAS /mnt/HDA_ROOT/rootfs_2_3_6/share/Qdownload</h1>
Options[localhost_disk9]: gauge
MaxBytes[localhost_disk9]: 100
Target[localhost_disk9]: 1.3.6.1.4.1.2021.9.1.9.8&1.3.6.1.4.1.2021.9.1.9.8:public@localhost
ShortLegend[localhost_disk9]: % Used
YLegend[localhost_disk9]: %
LegendI[localhost_disk9]: % Used
Title[localhost_disk10]: NAS /mnt/HDA_ROOT/rootfs_2_3_6/tmp
PageTop[localhost_disk10]: <h1> NAS /mnt/HDA_ROOT/rootfs_2_3_6/tmp</h1>
Options[localhost_disk10]: gauge
MaxBytes[localhost_disk10]: 100
Target[localhost_disk10]: 1.3.6.1.4.1.2021.9.1.9.9&1.3.6.1.4.1.2021.9.1.9.9:public@localhost:::::2
ShortLegend[localhost_disk10]: % Used
YLegend[localhost_disk10]: %
LegendI[localhost_disk10]: % Used
======
QNAP 409TPro 1031T: MRTG (monitoring 409TPro and DD-WRT), Awstats, dnsmasq
Linksys WRT54G V2.2 DD-WRT v24SP1 VPN x 2 with home made 12V POE
Netgear GS608 with 9k jumbo frame
Panasonic C111 IPCam x 3
QNAP 409TPro 1031T: MRTG (monitoring 409TPro and DD-WRT), Awstats, dnsmasq
Linksys WRT54G V2.2 DD-WRT v24SP1 VPN x 2 with home made 12V POE
Netgear GS608 with 9k jumbo frame
Panasonic C111 IPCam x 3
- me2u2me
- New here
- Posts: 9
- Joined: Thu Apr 17, 2008 2:56 am
- Contact:
Re: MRTG, Awstats done 409 on Pro
Need some help please with awstats and TS-409...(not Pro)
Followed the instructions to install awstats (very well written) and looks like it went like it should...however when I run the awstats_configure.pl I get the following error:
-----> Define config file path
In which directory do you plan to store your config file(s) ?
Default: /etc/awstats
Directory path to store config file(s) (Enter for default):
>
Error: Failed to create directory '/etc/awstats', required to store config files..
[/usr/local/awstats/tools] #
Any suggestions?
Thanks
Followed the instructions to install awstats (very well written) and looks like it went like it should...however when I run the awstats_configure.pl I get the following error:
-----> Define config file path
In which directory do you plan to store your config file(s) ?
Default: /etc/awstats
Directory path to store config file(s) (Enter for default):
>
Error: Failed to create directory '/etc/awstats', required to store config files..
[/usr/local/awstats/tools] #
Any suggestions?
Thanks
-
- Starting out
- Posts: 47
- Joined: Wed Apr 09, 2008 11:04 pm
Re: MRTG, Awstats done 409 on Pro
hi there,
I place my config file in /usr/local/etc/awstats
I place my config file in /usr/local/etc/awstats
======
QNAP 409TPro 1031T: MRTG (monitoring 409TPro and DD-WRT), Awstats, dnsmasq
Linksys WRT54G V2.2 DD-WRT v24SP1 VPN x 2 with home made 12V POE
Netgear GS608 with 9k jumbo frame
Panasonic C111 IPCam x 3
QNAP 409TPro 1031T: MRTG (monitoring 409TPro and DD-WRT), Awstats, dnsmasq
Linksys WRT54G V2.2 DD-WRT v24SP1 VPN x 2 with home made 12V POE
Netgear GS608 with 9k jumbo frame
Panasonic C111 IPCam x 3