I have a box with centos and plesk from dedicatedplace and they have problem to unstall MRTG on it,
[root@local]# indexmaker --output=/var/www/mrtg/index.html /etc/mrtg/mrtg.cfg
Use of uninitialized value in hash element at /usr/bin/indexmaker line 340.
In the past i've sucessfully installed MRTG on cpanel and plain redhat boxes, but now i have a new plesk server and I don't know how to proceed to install MRTG so it can be available at [url]
I'm going to be colocating a server and I'm wondering what you guys would recommend for a MRTG / RTG that gives you estimated transfer for the month. I know you can use MRTG and multiply and divide and all that but I'm looking for something that will also include estimated monthly transfer in both mb/s and gigabits per month.
I installed mrtg,then i installed module on webmin for it,but still there is some error and nothing show on index.html of mtrg directory.Cron is installed over webmin module,but nothing show yet.I see on default is locahost and public on webmin module listed,but when i clicked add i got error:
Use of uninitialized value in hash element at /usr/local/mrtg-2/bin/indexmaker line 353.
What i need to properly monitor network interface?
Here is presently conf file:
WorkDir:/home/bla/public_html/mrtg/
# Created by # /usr/local/mrtg-2/bin/cfgmaker public@69.45.45.78 ### Global Config Options # for UNIX # WorkDir: /home/http/mrtg # or for NT # WorkDir: c:mrtgdata ### Global Defaults # to get bits instead of bytes and graphs growing to the right # Options[_]: growright, bits EnableIPv6: no ###################################################################### # System: available9.bla.com # Description: Linux available9.bla.com 2.6.18-92.el5 #1 SMP Tue Jun 10 18:51:06 EDT 2008 x86_64 # Contact: Root <root@localhost> (configure /etc/snmp/snmp.local.conf) # Location: Unknown (edit /etc/snmp/snmpd.conf) ####################################################################
I've installed MRTG, but am having problems making the config file, all I want to do is monitor the in/out bandwidth (2 graphs) on my own server, has anyone got an example file they could paste here?
I have mrtg working fine on about 10 2650's, however now that I am trying to add 2950 and 3550's I cant seem to get MRTG to connect to get data.
I added the community the same as our other communities.
snmp-server community blah-r34d RO 30 snmp-server host 10.10.0.134 blah-r34d snmp
the 10.10.48.3 is the IP to vlan1 for the switch.
SNMP Error: no response received SNMPv1_Session (remote host: "10.10.48.3" [10.10.48.3].161) community: "blah-r34d" request ID: 554709748 PDU bufsize: 8000 bytes timeout: 2s retries: 5 backoff: 1) at /usr/local/mrtg-2/bin/../lib/mrtg2/SNMP_util.pm line 627 SNMPWALK Problem for 1.3.6.1.2.1.1 on blah-r34d@10.10.48.3::::::v4only at ./cfgmaker line 940 WARNING: Skipping blah-r34d@10.10.48.3: as no info could be retrieved
I've been having some trouble with mrtg and can't quite figure out what's going on:
[root@spike ~]# service mrtg restart Shutting down MRTG: [FAILED] Starting MRTG: Daemonizing MRTG ...
[root@spike ~]# WARNING: Problem with External get '/etc/mrtg/system network eth1': Expected a Number for 'in' but got ''
WARNING: Problem with Externale get '/etc/mrtg/system network eth1': Expected a Number for 'out' but got ''
Rateup WARNING: /usr/bin/rateup could not read the primary log file for index Rateup ERROR: /usr/bin/rateup found index's log file was corrupt or not in sorted order: time: 1143158400.Rateup WARNING: /usr/bin/rateup The backup log file for index was invalid as well ERROR: Skipping webupdates because rateup did not return anything sensible WARNING: rateup died from Signal 0 with Exit Value 1 when doing router 'index' Signal was 0, Returncode was 1 ERROR: Target[index1][_IN_] ' $target->[1]{$mode} ' did not eval into defined data ERROR: Target[index1][_OUT_] ' $target->[1]{$mode} ' did not eval into defined data Rateup WARNING: /usr/bin/rateup could not read the primary log file for tcp Rateup ERROR: /usr/bin/rateup found tcp's log file was corrupt or not in sorted order: time: 1183366800.Rateup WARNING: /usr/bin/rateup The backup log file for tcp was invalid as well ERROR: Skipping webupdates because rateup did not return anything sensible WARNING: rateup died from Signal 0 with Exit Value 1 when doing router 'tcp' Signal was 0, Returncode was 1 Rateup WARNING: /usr/bin/rateup could not read the primary log file for processes Rateup ERROR: /usr/bin/rateup found processes's log file was corrupt or not in sorted order: time: 1182693600.Rateup WARNING: /usr/bin/rateup The backup log file for processes was invalid as well ERROR: Skipping webupdates because rateup did not return anything sensible WARNING: rateup died from Signal 0 with Exit Value 1 when doing router 'processes' Signal was 0, Returncode was 1 Rateup WARNING: /usr/bin/rateup could not read the primary log file for mail-host-email-totals Rateup ERROR: /usr/bin/rateup found mail-host-email-totals's log file was corrupt or not in sorted order: time: 1115251200.Rateup WARNING: /usr/bin/rateup The backup log file for mail-host-email-totals was invalid as well ERROR: Skipping webupdates because rateup did not return anything sensible WARNING: rateup died from Signal 0 with Exit Value 1 when doing router 'mail-host-email-totals' Signal was 0, Returncode was 1 Rateup WARNING: /usr/bin/rateup could not read the primary log file for mail-host-email-queue Rateup ERROR: /usr/bin/rateup found mail-host-email-queue's log file was corrupt or not in sorted order: time: 1185176100.Rateup WARNING: /usr/bin/rateup The backup log file for mail-host-email-queue was invalid as well ERROR: Skipping webupdates because rateup did not return anything sensible WARNING: rateup died from Signal 0 with Exit Value 1 when doing router 'mail-host-email-queue' Signal was 0, Returncode was 1 Rateup WARNING: /usr/bin/rateup could not read the primary log file for mail-host-email-count Rateup ERROR: /usr/bin/rateup found mail-host-email-count's log file was corrupt or not in sorted order: time: 1158796800.Rateup WARNING: /usr/bin/rateup The backup log file for mail-host-email-count was invalid as well ERROR: Skipping webupdates because rateup did not return anything sensible WARNING: rateup died from Signal 0 with Exit Value 1 when doing router 'mail-host-email-count' Signal was 0, Returncode was 1
My ISP is using MRTG (95th percentile) for my monthly billing. However the numbers showing on my "usage" page aren't adding up. Well, to clarify, the number by which they bill me at is the "Last 30 days usage (Metered 95%): xxxx mb/s". But this number isn't reflecting what I am seeing in the individual Daily/Weekly/Monthly stats and graphs.
Daily: Max in: 38.0 kb/s Max out 320.9 kb/s Avg In: 4216.0 b/s Avg out 24.1 kb/s
Weekly: Max In: 1692.4 kb/s Max Out 5675.1 kb/s Avg In: 26.9 kb/s Avg Out 86.8 kb/s
Monthly: Max In: 3541.9 kb/s Max Out 5635.4 kb/s Avg In: 298.4 kb/s Avg Out 410.4 kb/s
Last 30 Days uaage (Metered 95%): 4518.43 kb/s
Now for two weeks my server was pushing nearly 10 mb/s (95th percentile only use the HIGHER of the In OR Out as its measurement)- and then for the next 10 days my server has barely pushed 100 kb/s. 10 days ago the "Last 30 days usage" number was 4480.1 mb/s, but today, 10 days later, the "LAst 30 days usage" is 4518.4 kb/s. My ISP tells me that "last 30 days uage" is calculated every 5 minutes. But if my usage 10 days ago was 4480kb/s and my server has barely pushed ANY bandwidth since, shouldn't the laws of averages see that number steadily declining?
As an example: If I pushed exactly 10mb/s for exactly two weeks, then pushed 0mb/s for the next two weeks....then the average mb/s for a 30 day period (not calculating 95th %) would be 5mb/s. And as the 3rd week started, I would steadily see the 30 day usage start to decline and eventually reach 5mb/s on the last day of the 30 period. This is a logical, and my approach, to understanding this - yet the numbers aren't indicating this.
2007-06-12 12:25:02, Rateup ERROR: /usr/local/mrtg-2/bin/rateup found that index's log file time of 1181714411 was greater than now (1181643902) ERROR: Let's not do the time warp, again. Logfile unchanged. 2007-06-12 12:25:02, Rateup ERROR: /usr/local/mrtg-2/bin/rateup found that tcp's log file time of 1181714412 was greater than now (1181643902) ERROR: Let's not do the time warp, again. Logfile unchanged. 2007-06-12 12:25:02, Rateup ERROR: /usr/local/mrtg-2/bin/rateup found that load's log file time of 1181714412 was greater than now (1181643902) ERROR: Let's not do the time warp, again. Logfile unchanged. 2007-06-12 12:25:02, Rateup ERROR: /usr/local/mrtg-2/bin/rateup found that swap's log file time of 1181714412 was greater than now (1181643902) ERROR: Let's not do the time warp, again. Logfile unchanged. 2007-06-12 12:25:02, Rateup ERROR: /usr/local/mrtg-2/bin/rateup found that processes's log file time of 1181714412 was greater than now (1181643902) ERROR: Let's not do the time warp, again. Logfile unchanged. 2007-06-12 12:25:02, Rateup ERROR: /usr/local/mrtg-2/bin/rateup found that uptime's log file time of 1181714412 was greater than now (1181643902) ERROR: Let's not do the time warp, again. Logfile unchanged. 2007-06-12 12:25:02, Rateup ERROR: /usr/local/mrtg-2/bin/rateup found that cpu's log file time of 1181714413 was greater than now (1181643902) ERROR: Let's not do the time warp, again. Logfile unchanged. 2007-06-12 12:25:02, Rateup ERROR: /usr/local/mrtg-2/bin/rateup found that memory's log file time of 1181714413 was greater than now (1181643902) ERROR: Let's not do the time warp, again. Logfile unchanged
I have a VPS where i have cpanel installed. I have noticed quite a number of times through my WHM Cpu/Memory usage that there are 3 instances of MRTG and they seem to be taking up a lot of resources.
I did not install mrtg and i don't even know how do i go ahead and view them
Can someone tell me how do i remove them and is it just me or are there actually 3 instances of MRTG running for everyone?
But I'm not sure how much power it actually takes to generate theses MRTG stats... The server is a Celeron D 2.8Ghz, 512Mb ATA soft raid system. Do you think that I should update the stats less frequently to decrease the server usage?
But I'm not sure how much power it actually takes to generate theses MRTG stats... The server is a Celeron D 2.8Ghz, 512Mb ATA soft raid system. Do you think that I should update the stats less frequently to decrease the server usage?
I tried installing MRTG in my Linux Server by using help from -
[url]
What i have done till now is -
cd /usr/local/src gunzip -c mrtg-2.16.2.tar.gz | tar xvf - cd mrtg-2.16.2
./configure --prefix=/usr/local/mrtg-2
make
make install After this i am unable to understand what to do, and how to start MRTG graphs.
* the next last step says,
CONFIGURATION
The next step is to configure mrtg for monitoring a network device. This is done by creating an mrtg.cfg file which defines what you want to monitor. Luckily, you don't have to dive straight in and start writing your own configuration file all by yourself. Together with mrtg you also got a copy of cfgmaker. This is a script you can point at a router of your choice; it will create a mrtg configuration file for you. You can find the script in the bin subdirectory.
This example above will create an mrtg config file in /home/mrtg/cfg assuming this is a directory visible on your webserver. You can read all about cfgmaker in cfgmaker. One area you might want to look at is the possibility of using --ifref=ip to prevent interface renumbering troubles from catching you.
^^ this is what i am not able to understand.
When i ran the script, (below mention) it gave many errors, how to resolve them ?
[root@c bin]# ./cfgmaker --global 'WorkDir: /home/httpd/mrtg' --global 'Options[_]: bits,growright' output /home/mrtg/cfg/mrtg.cfg eth0 Error: can't resolve "output" to IP address at /usr/local/mrtg-2/bin/../lib/mrtg2/SNMP_util.pm line 428 SNMPWALK Problem for public@output::::::v4only at ./cfgmaker line 950 WARNING: Skipping public@output: as no info could be retrieved
Error: can't resolve "/home/mrtg/cfg/mrtg.cfg" to IP address at /usr/local/mrtg-2/bin/../lib/mrtg2/SNMP_util.pm line 428 SNMPWALK Problem for public@/home/mrtg/cfg/mrtg.cfg::::::v4only at ./cfgmaker line 950 WARNING: Skipping public@/home/mrtg/cfg/mrtg.cfg: as no info could be retrieved
Error: can't resolve "eth0" to IP address at /usr/local/mrtg-2/bin/../lib/mrtg2/SNMP_util.pm line 428 SNMPWALK Problem for public@eth0::::::v4only at ./cfgmaker line 950 WARNING: Skipping public@eth0: as no info could be retrieved
# Created by # ./cfgmaker --global "WorkDir: /home/httpd/mrtg" --global "Options[_]: bits,growright" output /home/mrtg/cfg/mrtg.cfg eth0
### Global Config Options
# for UNIX # WorkDir: /home/http/mrtg
# or for NT # WorkDir: c:mrtgdata
### Global Defaults
# to get bits instead of bytes and graphs growing to the right # Options[_]: growright, bits
EnableIPv6: no WorkDir: /home/httpd/mrtg Options[_]: bits,growright
why mrtg screws graphs up if bandwidth usage goes over 120 mbit/sec? See an attachment. First graph from mrtg, second one provider's graph which is correct. In mrtg.cfg I got MaxBytes[_]: 2250000000
Just wondering if there is some 'plugin' for MRTG which will e-mail or send an sms if certain conditions are true (bandwidth exceeded on some server /device)?