You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(48) |
Dec
(33) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(24) |
Feb
(22) |
Mar
(30) |
Apr
(17) |
May
(28) |
Jun
(132) |
Jul
(11) |
Aug
(17) |
Sep
(59) |
Oct
(36) |
Nov
(90) |
Dec
(37) |
| 2004 |
Jan
(74) |
Feb
(65) |
Mar
(69) |
Apr
(33) |
May
(48) |
Jun
(38) |
Jul
(32) |
Aug
(66) |
Sep
(61) |
Oct
(129) |
Nov
(62) |
Dec
(68) |
| 2005 |
Jan
(126) |
Feb
(40) |
Mar
(91) |
Apr
(50) |
May
(83) |
Jun
(86) |
Jul
(47) |
Aug
(41) |
Sep
(197) |
Oct
(88) |
Nov
(103) |
Dec
(58) |
| 2006 |
Jan
(84) |
Feb
(130) |
Mar
(127) |
Apr
(98) |
May
(92) |
Jun
(64) |
Jul
(141) |
Aug
(135) |
Sep
(77) |
Oct
(122) |
Nov
(95) |
Dec
(45) |
| 2007 |
Jan
(71) |
Feb
(41) |
Mar
(48) |
Apr
(82) |
May
(70) |
Jun
(65) |
Jul
(49) |
Aug
(25) |
Sep
(54) |
Oct
(52) |
Nov
(62) |
Dec
(49) |
| 2008 |
Jan
(64) |
Feb
(107) |
Mar
(37) |
Apr
(20) |
May
(39) |
Jun
(49) |
Jul
(100) |
Aug
(19) |
Sep
(84) |
Oct
(46) |
Nov
(75) |
Dec
(42) |
| 2009 |
Jan
(63) |
Feb
(108) |
Mar
(34) |
Apr
(28) |
May
(18) |
Jun
(65) |
Jul
(53) |
Aug
(52) |
Sep
(36) |
Oct
(102) |
Nov
(36) |
Dec
(38) |
| 2010 |
Jan
(44) |
Feb
(33) |
Mar
(33) |
Apr
(20) |
May
(11) |
Jun
(100) |
Jul
(42) |
Aug
(57) |
Sep
(65) |
Oct
(29) |
Nov
(42) |
Dec
(83) |
| 2011 |
Jan
(30) |
Feb
(14) |
Mar
(24) |
Apr
(3) |
May
(20) |
Jun
(17) |
Jul
(38) |
Aug
(21) |
Sep
(53) |
Oct
(46) |
Nov
(35) |
Dec
(48) |
| 2012 |
Jan
(58) |
Feb
(13) |
Mar
(50) |
Apr
(48) |
May
(44) |
Jun
(11) |
Jul
(15) |
Aug
(25) |
Sep
(27) |
Oct
(17) |
Nov
(41) |
Dec
(19) |
| 2013 |
Jan
(16) |
Feb
(22) |
Mar
(29) |
Apr
(25) |
May
(28) |
Jun
(14) |
Jul
(15) |
Aug
(48) |
Sep
(9) |
Oct
(10) |
Nov
(4) |
Dec
(13) |
| 2014 |
Jan
(15) |
Feb
(8) |
Mar
(9) |
Apr
(10) |
May
|
Jun
(11) |
Jul
(4) |
Aug
(10) |
Sep
(1) |
Oct
(10) |
Nov
(4) |
Dec
(8) |
| 2015 |
Jan
(7) |
Feb
(6) |
Mar
(13) |
Apr
(1) |
May
(5) |
Jun
(6) |
Jul
(8) |
Aug
(5) |
Sep
(1) |
Oct
(6) |
Nov
(2) |
Dec
(11) |
| 2016 |
Jan
(7) |
Feb
(7) |
Mar
(6) |
Apr
|
May
(2) |
Jun
(1) |
Jul
|
Aug
|
Sep
(1) |
Oct
(2) |
Nov
|
Dec
|
| 2017 |
Jan
(3) |
Feb
(5) |
Mar
(16) |
Apr
(9) |
May
(3) |
Jun
(3) |
Jul
(8) |
Aug
(7) |
Sep
(5) |
Oct
(6) |
Nov
(1) |
Dec
(1) |
| 2018 |
Jan
(9) |
Feb
(3) |
Mar
(3) |
Apr
(2) |
May
(1) |
Jun
(5) |
Jul
|
Aug
|
Sep
|
Oct
(13) |
Nov
(4) |
Dec
|
| 2019 |
Jan
(19) |
Feb
(7) |
Mar
(1) |
Apr
(2) |
May
|
Jun
(1) |
Jul
(1) |
Aug
|
Sep
(4) |
Oct
|
Nov
|
Dec
(4) |
| 2020 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
(2) |
May
(1) |
Jun
|
Jul
(2) |
Aug
(7) |
Sep
(1) |
Oct
(3) |
Nov
(2) |
Dec
|
| 2021 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(4) |
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2022 |
Jan
|
Feb
(3) |
Mar
(1) |
Apr
(2) |
May
(2) |
Jun
|
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2023 |
Jan
|
Feb
|
Mar
|
Apr
(16) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2024 |
Jan
|
Feb
|
Mar
|
Apr
(13) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
|
|
|
|
1
|
2
|
|
3
|
4
|
5
|
6
|
7
(1) |
8
|
9
|
|
10
|
11
(1) |
12
(4) |
13
(2) |
14
(4) |
15
(2) |
16
|
|
17
|
18
(5) |
19
|
20
|
21
(3) |
22
(1) |
23
|
|
24
|
25
(2) |
26
(9) |
27
(4) |
28
(4) |
29
(6) |
30
|
|
From: Lukas K. <lu...@kn...> - 2002-11-29 23:38:45
|
Hi all! Just a question: What is the intention of '/usr/bin/smbstatus | grep -c ' as the input string for the above mentioned Data Input? grep -c just prints out it's help. I think it should read like '/usr/bin/smbstatus -L | wc -l' or sth like that. -- Lukas Kolbe <lu...@kn...> |
|
From: Meehan, F. <Fra...@ie...> - 2002-11-29 21:32:18
|
Hi all, I am trying to display available disks space on a drive on an NT server using snmp. Data sources looks ok, cron printout with output is ok. The graph source: /usr/bin/rrdtool graph - \ --imgformat=PNG \ --start="-86400" \ --title="Exchange Disks Space Available on C:" \ --rigid \ --base=1000 \ --height=150 \ --width=500 \ --alt-autoscale-max \ --vertical-label="In megabytes (meg)" \ DEF:a="/home/httpd/htdocs/cacti/rra/exchange-diskavail.rrd":disk-1:AVERAGE \ AREA:a#0000FF:"Available space\: 907 megs" The legend is showing the 907 megs but nothing shows up on the graph. Any ideas? Thanks in advance. Francois Meehan, |
|
From: Lukas K. <lu...@kn...> - 2002-11-29 17:10:29
|
Am Fre, 2002-11-29 um 17.36 schrieb Ian Berry: > Without a doubt, that is very weird. It appears as if your RRD files are > just fine (going by the create statements). However for some reason > cacti is getting confused when generating the 'update' statement. Yep, I think the RRDs are fine. But, well, when I update the RRD manually with, say, -- snip -- /usr/bin/rrdtool update /usr/share/cacti/rra/traf_moria_isdn_in.rrd --template traf_moria_isdn_in N:371457499 -- snap -- I think there should be at least some number (e.g. 371457499) in the output of -- snip -- rrdtool fetch traf_moria_isdn_in.rrd MAX -- snap -- or not? But then there are just nan's... > Assuming you created these graphs using the 'Make Graph' feature, go > into 'Data Input' and select 'Get SNMP Network Data'. Make sure 'Update > RRA' is selected only for the octets field. Yep, the octets field is the only one updated. I think the fault is not with the 'Get SNMP Network Data' Input, because other Network-graphs are showing up fine. > You may also want to double check that the 'Get SNMP Network Data' > script is selected for the offending data sources, make sure to click > 'save' when you are done. In addition to that, select 'edit data' next > to those data sources and make sure the data all looks correct. Then > click save, forcing cacti to re-write all of that data. I am hoping that > something got messed up when the data sources were created and "saving" > them will fix it. Here too, everything looks alright, except that when I click on 'edit data' for one of the not-working data sources, he says: -- snip -- INTERNAL: [moria/wolken] Interface: [5] /usr/bin/rrdtool update /usr/share/cacti/rra/traf_moria_isdn_in.rrd --template traf_moria_isdn_in:traf_moria_isdn_in N:0.28:371445015 -- snap -- The only fields that are used for the Data Source Configuration are 'In/Out Data' (in), 'Interface Number' (5), 'IP Address' (moria) and 'SNMP Community' (wolken). When I click on save, nothing changes... > Either way, tell me how it goes. Hm, doesnt look good... > Ian -- Lukas Kolbe <lu...@kn...> |
|
From: Ian B. <ib...@ra...> - 2002-11-29 16:29:35
|
Without a doubt, that is very weird. It appears as if your RRD files are just fine (going by the create statements). However for some reason cacti is getting confused when generating the 'update' statement. Assuming you created these graphs using the 'Make Graph' feature, go into 'Data Input' and select 'Get SNMP Network Data'. Make sure 'Update RRA' is selected only for the octets field. You may also want to double check that the 'Get SNMP Network Data' script is selected for the offending data sources, make sure to click 'save' when you are done. In addition to that, select 'edit data' next to those data sources and make sure the data all looks correct. Then click save, forcing cacti to re-write all of that data. I am hoping that something got messed up when the data sources were created and "saving" them will fix it. Either way, tell me how it goes. Ian On Thu, 2002-11-28 at 17:50, Lukas Kolbe wrote: > Hi all! Sorry for being a lame newbie, I'm just trying to get all this > things right... > > I'm having a small problem with the snmp-network-data-gathering. I've > got a few hosts cacti monitors, each with 2 or more NICs. When I told > cacti about the host/community combination, it was happy to generate me > some graphs, and most of them are working like they should. > Like this one (I'll just post all the commands cacti executes): > > rrd created: > -- snip -- > /usr/bin/rrdtool create \ > /usr/share/cacti/rra/traf_deepthought_eth0_in.rrd \ > --step 300 \ > DS:traf_deepthought_et:COUNTER:600:0:100000000 \ > RRA:AVERAGE:0.5:1:600 \ > RRA:AVERAGE:0.5:6:700 \ > RRA:AVERAGE:0.5:24:775 \ > RRA:AVERAGE:0.5:288:797 \ > RRA:MAX:0.5:1:600 \ > RRA:MAX:0.5:6:700 \ > RRA:MAX:0.5:24:775 \ > RRA:MAX:0.5:288:797 > -- snap -- > > rrd updated: > -- snap -- > /usr/bin/rrdtool update \ > /usr/share/cacti/rra/traf_deepthought_eth0_in.rrd --template \ > traf_deepthought_et N:1613170999 > -- snap -- > > Graph created: > -- snip -- > /usr/bin/rrdtool graph - \ > --imgformat=PNG \ > --start="-86400" \ > --title="Deepthought: eth0 (192.168.2.200)" \ > --rigid \ > --base=1000 \ > --height=120 \ > --width=500 \ > --alt-autoscale-max \ > --vertical-label="Bytes Per Second" \ > DEF:a="/usr/share/cacti/rra/traf_deepthought_eth0_in.rrd":traf_deepthought_et:AVERAGE \ > DEF:b="/usr/share/cacti/rra/traf_deepthought_eth0_out.rrd":traf_deepthought_et:AVERAGE \ > AREA:a#00CF00:"Inbound" \ > GPRINT:a:LAST:" Current\:%8.2lf %s" \ > GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \ > GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" \ > LINE1:b#002A97:"Outbound" \ > GPRINT:b:LAST:"Current\:%8.2lf %s" \ > GPRINT:b:AVERAGE:"Average\:%8.2lf %s" \ > GPRINT:b:MAX:"Maximum\:%8.2lf %s" > -- snap -- > > As I said, this graph looks allright. But then I wanted to monitor > another NIC, an ISDN Uplink to the world: > > rrd created (with snmp-network-data...): > -- snip -- > /usr/bin/rrdtool create \ > /usr/share/cacti/rra/traf_moria_isdn_in.rrd \ > --step 300 \ > DS:traf_moria_isdn_in:COUNTER:600:0:128000 \ > RRA:AVERAGE:0.5:1:600 \ > RRA:AVERAGE:0.5:6:700 \ > RRA:AVERAGE:0.5:24:775 \ > RRA:AVERAGE:0.5:288:797 \ > RRA:MAX:0.5:1:600 \ > RRA:MAX:0.5:6:700 \ > RRA:MAX:0.5:24:775 \ > RRA:MAX:0.5:288:797 > -- snap -- > (yep, it's another computer, but the other two nics are showing up nicely) > > rrd updated: > -- snip -- > /usr/bin/rrdtool update /usr/share/cacti/rra/traf_moria_isdn_in.rrd \ > --template traf_moria_isdn_in:traf_moria_isdn_in N:0.28:367072606 > -- snap -- > > > The one strange thing I notice here is that for eth0 in deepthought the > template is called "traf_deepthought_et" but for ippp3 in moria the > template is called "traf_moria_isdn_in:traf_moria_isdn_in". The other > thing is that for ippp3 in moria cacti says 'update now 0.28:367072606', > and for deepthought he says 'update now 1613170999'. > I don't understand this, can somebody explain this to me? > > When I do a 'rrdtool fetch traf_moria_isdn_in.rrd MAX', I just get tons > of NANs. > > (Graph created command skipped, cause it makes no sens when all data is > NAN) > > I also have a similar (or the same?) problem, when I try to monitor the > disk usage of one partition: > > -- snip -- > /usr/bin/rrdtool update /usr/share/cacti/rra/nathan_data.rrd --template > nathan_data:nathan_data N:0.03:5017584 > -- snap -- > > isn't working, but > > -- snip -- > /usr/bin/rrdtool update /usr/share/cacti/rra/nathan_root.rrd --template > nathan_root N:629897 > -- snap -- > > is. > > Did I do something wrong when I (or cacti) made the rrd's? |
|
From: Ian B. <ib...@ra...> - 2002-11-29 16:21:00
|
I am assuming that executing this script from the command line (perl finger.pl @core) returns the correct response? That is it should just be returning a number and nothing else. Second, you'll want to make sure your data input source is setup correctly. Going by what you've said, your input string should look something like: perl <path_cacti>/scripts/finger.pl <ip> Then assuming your script just outputs the number of users, your output string should look something like: <users> Lastly, you must then define both of these field names under "Current Data Input Source Fields". Make sure the 'data name' is exactly the same as the name used in the input/output strings (without the <>'s). Also make sure you select 'Update RRA' when adding the 'users' output field. Let me know if that does not help. Ian On Thu, 2002-11-28 at 14:40, Dan wrote: > I'm very new to cacti, and I'm trying to get cacti to do something > it doesn't do out of the box (at least not supplied with), something > very important to us as an ISP. > > I need it to be able to do a finger of several boxes. > for example: finger @core | grep PPP | wc -l > will show the number of users logged into the core box at any time. > > I wrote my own finger.pl script in cacti/scripts directory, believe me, > writing it was a nightmare! I first tried to take the number of users script > and the ping scripts and somehow combine them, that was a total wash, > even changing either of the ping scripts didn't work either. But I finally got > it so if I run my finger.pl @core it will return a # of users, I got it to > work by > using ping-new.pl and changing most of it. > > the problem is, this script doesn't work. when I try to run php cmd.php > I get a weird error response. It sees the returned # of users as what looks > like it's expecting an SNMP response, something like: > error: 44:..... > > where the "44" is actually the # of users from the box. very strange. > > I have no idea why it does this, since when I run it from command line, it > works fine. > > I have about 20 boxes I need to do this with, so I assumed I could go into > data input and data sources and use finger.pl that I wrote with passing it > an "ip" (which would actually be passed as "@core", etc in the data edit > for the graph). The "@" is critical, otherwise it just isn't useful at all, > and maybe that's what the script is having problems with - but I even wrote > a special finger-core.pl which had the @core within the script and I got > the same > strange errors when running php cmd.php > > If anyone wants to see the script I actually wrote and the actual respose, > I can > send that, but I figured I'd ask first, because it's probably something stupid. > > Thanks > > Dan. |
|
From: Julio G. <jga...@fr...> - 2002-11-29 14:19:32
|
I defined a data source input for a snmp wrapper script I wrote. I added a "host" field, but I realize there is a kind of internal variable collision, and the thing doesn=B4t work properly. As I rename it to "ip", as it is used in other scripts, it started to work. Is it a bug? A feature? --=20 Julio C=E9sar G=E1zquez Area Redes, Informatica y Comunicaciones UTN - Facultad Regional Rosario http://www.frro.utn.edu.ar |
|
From: Lukas K. <lu...@kn...> - 2002-11-28 22:51:14
|
Hi all! Sorry for being a lame newbie, I'm just trying to get all this things right... I'm having a small problem with the snmp-network-data-gathering. I've got a few hosts cacti monitors, each with 2 or more NICs. When I told cacti about the host/community combination, it was happy to generate me some graphs, and most of them are working like they should. Like this one (I'll just post all the commands cacti executes): rrd created: -- snip -- /usr/bin/rrdtool create \ /usr/share/cacti/rra/traf_deepthought_eth0_in.rrd \ --step 300 \ DS:traf_deepthought_et:COUNTER:600:0:100000000 \ RRA:AVERAGE:0.5:1:600 \ RRA:AVERAGE:0.5:6:700 \ RRA:AVERAGE:0.5:24:775 \ RRA:AVERAGE:0.5:288:797 \ RRA:MAX:0.5:1:600 \ RRA:MAX:0.5:6:700 \ RRA:MAX:0.5:24:775 \ RRA:MAX:0.5:288:797 -- snap -- rrd updated: -- snap -- /usr/bin/rrdtool update \ /usr/share/cacti/rra/traf_deepthought_eth0_in.rrd --template \ traf_deepthought_et N:1613170999 -- snap -- Graph created: -- snip -- /usr/bin/rrdtool graph - \ --imgformat=PNG \ --start="-86400" \ --title="Deepthought: eth0 (192.168.2.200)" \ --rigid \ --base=1000 \ --height=120 \ --width=500 \ --alt-autoscale-max \ --vertical-label="Bytes Per Second" \ DEF:a="/usr/share/cacti/rra/traf_deepthought_eth0_in.rrd":traf_deepthought_et:AVERAGE \ DEF:b="/usr/share/cacti/rra/traf_deepthought_eth0_out.rrd":traf_deepthought_et:AVERAGE \ AREA:a#00CF00:"Inbound" \ GPRINT:a:LAST:" Current\:%8.2lf %s" \ GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \ GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" \ LINE1:b#002A97:"Outbound" \ GPRINT:b:LAST:"Current\:%8.2lf %s" \ GPRINT:b:AVERAGE:"Average\:%8.2lf %s" \ GPRINT:b:MAX:"Maximum\:%8.2lf %s" -- snap -- As I said, this graph looks allright. But then I wanted to monitor another NIC, an ISDN Uplink to the world: rrd created (with snmp-network-data...): -- snip -- /usr/bin/rrdtool create \ /usr/share/cacti/rra/traf_moria_isdn_in.rrd \ --step 300 \ DS:traf_moria_isdn_in:COUNTER:600:0:128000 \ RRA:AVERAGE:0.5:1:600 \ RRA:AVERAGE:0.5:6:700 \ RRA:AVERAGE:0.5:24:775 \ RRA:AVERAGE:0.5:288:797 \ RRA:MAX:0.5:1:600 \ RRA:MAX:0.5:6:700 \ RRA:MAX:0.5:24:775 \ RRA:MAX:0.5:288:797 -- snap -- (yep, it's another computer, but the other two nics are showing up nicely) rrd updated: -- snip -- /usr/bin/rrdtool update /usr/share/cacti/rra/traf_moria_isdn_in.rrd \ --template traf_moria_isdn_in:traf_moria_isdn_in N:0.28:367072606 -- snap -- The one strange thing I notice here is that for eth0 in deepthought the template is called "traf_deepthought_et" but for ippp3 in moria the template is called "traf_moria_isdn_in:traf_moria_isdn_in". The other thing is that for ippp3 in moria cacti says 'update now 0.28:367072606', and for deepthought he says 'update now 1613170999'. I don't understand this, can somebody explain this to me? When I do a 'rrdtool fetch traf_moria_isdn_in.rrd MAX', I just get tons of NANs. (Graph created command skipped, cause it makes no sens when all data is NAN) I also have a similar (or the same?) problem, when I try to monitor the disk usage of one partition: -- snip -- /usr/bin/rrdtool update /usr/share/cacti/rra/nathan_data.rrd --template nathan_data:nathan_data N:0.03:5017584 -- snap -- isn't working, but -- snip -- /usr/bin/rrdtool update /usr/share/cacti/rra/nathan_root.rrd --template nathan_root N:629897 -- snap -- is. Did I do something wrong when I (or cacti) made the rrd's? -- Lukas Kolbe <lu...@kn...> |
|
From: Dan <da...@vr...> - 2002-11-28 19:40:41
|
I'm very new to cacti, and I'm trying to get cacti to do something it doesn't do out of the box (at least not supplied with), something very important to us as an ISP. I need it to be able to do a finger of several boxes. for example: finger @core | grep PPP | wc -l will show the number of users logged into the core box at any time. I wrote my own finger.pl script in cacti/scripts directory, believe me, writing it was a nightmare! I first tried to take the number of users script and the ping scripts and somehow combine them, that was a total wash, even changing either of the ping scripts didn't work either. But I finally got it so if I run my finger.pl @core it will return a # of users, I got it to work by using ping-new.pl and changing most of it. the problem is, this script doesn't work. when I try to run php cmd.php I get a weird error response. It sees the returned # of users as what looks like it's expecting an SNMP response, something like: error: 44:..... where the "44" is actually the # of users from the box. very strange. I have no idea why it does this, since when I run it from command line, it works fine. I have about 20 boxes I need to do this with, so I assumed I could go into data input and data sources and use finger.pl that I wrote with passing it an "ip" (which would actually be passed as "@core", etc in the data edit for the graph). The "@" is critical, otherwise it just isn't useful at all, and maybe that's what the script is having problems with - but I even wrote a special finger-core.pl which had the @core within the script and I got the same strange errors when running php cmd.php If anyone wants to see the script I actually wrote and the actual respose, I can send that, but I figured I'd ask first, because it's probably something stupid. Thanks Dan. |
|
From: Ian B. <ib...@ra...> - 2002-11-28 14:43:33
|
On Thu, 2002-11-28 at 01:29, Lucky wrote: > Hi all! I'm actually very new to Cacti and this list (having a problem > too wich i may post later). But a short thing: wouldn't it be better to > fix Cacti not to use short open tags? Then Cacti .php could be made > xml-conformant :) Don't worry it will get changed. Anything I can do to prevent unnecessary config file changes is a plus in my mind. Ian |
|
From: Lucky <lu...@kn...> - 2002-11-28 06:30:00
|
On Tue Nov 26, 2002 at 06:1440PM -0500.381.%y, Dan <da...@vr...> wrote: > Yeah I fixed it with that and with the php-mysql rpm that someone posted > on the forums. > scary stuff > > it actually works now Hi all! I'm actually very new to Cacti and this list (having a problem too wich i may post later). But a short thing: wouldn't it be better to fix Cacti not to use short open tags? Then Cacti .php could be made xml-conformant :) It's just a suggestion, not a 'my style is better than yous' flame or something... However, keep on that good work! -- Lukas |
|
From: Oscar R. <or...@sp...> - 2002-11-27 19:31:33
|
Hi!
Do not showing up in graph WAN LINKS
Some idea of like doing it
Att. Oscar Rojas
Actually this looks like a valid graph command. With the necessary data,
it should render a valid graph. If the graph instead appears as a broken
image, then this graph command is in fact at fault.
Otherwise, I would be checking to make sure cacti is getting the load
average data correctly. To check this, I recommend tailing cacti's log
file at 'log/rrd.log' while cmd.php is running. You should see a line
that goes something like:
/usr/bin/rrdtool update firewall_system_loa.rrd --template
1min:10min:5min N:0.01:0.22:0.05
If instead of the load average you see U's (N:U:U:U), then cacti is not
getting the data it expected from the script.
Ian
On Tue, 2002-11-26 at 10:51, Meehan, Francois wrote:
> Hi all,
>
> I am trying to get remote load average, but can't get the data to show up.
>
> Looks like my problem is in the data source, this is what I get:
>
> /usr/bin/rrdtool graph - \
> --imgformat=PNG \
> --start="-86400" \
> --title="Firewall Load_Average" \
> --rigid \
> --base=1000 \
> --height=150 \
> --width=500 \
> --alt-autoscale-max \
> --units-exponent=1 \
> --vertical-label="Average Load" \
> DEF:a="/home/httpd/htdocs/cacti/rra/firewall_system_loa.rrd":1min:AVERAGE \
> DEF:b="/home/httpd/htdocs/cacti/rra/firewall_system_loa.rrd":10min:AVERAGE \
> DEF:c="/home/httpd/htdocs/cacti/rra/firewall_system_loa.rrd":5min:AVERAGE \
> CDEF:cdefd=a,b,c,+,+ \
> AREA:b#EACC00:"10 Minute\: 0.01
> \n" \
> STACK:c#EA8F00:"5 Minute\: 0.03\n" \
> STACK:a#FF0000:"1 Minute\: 0.00\n" \
> LINE1:cdefd#000000:"Total"
> Notice the line starting AREA gets chopped, and I don't know why...
>
> Here is the script I use to get the data, a modified version of Danny
> Bendersky's script:
>
> #!/bin/sh
> #
> # snmp-cacti-load.sh
> #
> # Verify that there is an input
> # ------------------------------
> if [ -z "$1" ]; then
> echo "usage: snmp-cacti-load.sh <server> <snmp-comunity> <num>"
> echo
> exit
> fi
> #
> # Variables
> # ---------
> SERVER=$1 # Example: 10.0.0.3
> SNMPCOMUNITY=$2 # Example: public
> NUM=$3 # Example: 1
> #
> LOAD1=`/usr/bin/snmpget $SERVER $SNMPCOMUNITY .1.3.6.1.4.1.2021.10.1.3.1
> |awk '{print $3}'`
> LOAD5=`/usr/bin/snmpget $SERVER $SNMPCOMUNITY .1.3.6.1.4.1.2021.10.1.3.2
> |awk '{print $3}'`
> LOAD15=`/usr/bin/snmpget $SERVER $SNMPCOMUNITY .1.3.6.1.4.1.2021.10.1.3.3
> |awk '{print $3}'`
> echo $LOAD1 $LOAD5 $LOAD15
-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
cacti-user mailing list
cac...@li...
https://lists.sourceforge.net/lists/listinfo/cacti-user
|
|
From: Meehan, F. <Fra...@ie...> - 2002-11-27 14:16:56
|
Hi Ian,
Found the problem: when my script returns the values, there is a cariage
return with the "10 min" value. It is cause by the print command. I created
a python script that output the value with sys.stdout.write() function and
it is now working fine.
Francois
-----Original Message-----
From: Ian Berry [mailto:ib...@ra...]
Sent: November 26, 2002 11:58 PM
To: cac...@li...
Subject: Re: [cacti-user] Problem, data not showing up in graph...
Actually this looks like a valid graph command. With the necessary data,
it should render a valid graph. If the graph instead appears as a broken
image, then this graph command is in fact at fault.
Otherwise, I would be checking to make sure cacti is getting the load
average data correctly. To check this, I recommend tailing cacti's log
file at 'log/rrd.log' while cmd.php is running. You should see a line
that goes something like:
/usr/bin/rrdtool update firewall_system_loa.rrd --template
1min:10min:5min N:0.01:0.22:0.05
If instead of the load average you see U's (N:U:U:U), then cacti is not
getting the data it expected from the script.
Ian
On Tue, 2002-11-26 at 10:51, Meehan, Francois wrote:
> Hi all,
>
> I am trying to get remote load average, but can't get the data to show up.
>
> Looks like my problem is in the data source, this is what I get:
>
> /usr/bin/rrdtool graph - \
> --imgformat=PNG \
> --start="-86400" \
> --title="Firewall Load_Average" \
> --rigid \
> --base=1000 \
> --height=150 \
> --width=500 \
> --alt-autoscale-max \
> --units-exponent=1 \
> --vertical-label="Average Load" \
> DEF:a="/home/httpd/htdocs/cacti/rra/firewall_system_loa.rrd":1min:AVERAGE
\
> DEF:b="/home/httpd/htdocs/cacti/rra/firewall_system_loa.rrd":10min:AVERAGE
\
> DEF:c="/home/httpd/htdocs/cacti/rra/firewall_system_loa.rrd":5min:AVERAGE
\
> CDEF:cdefd=a,b,c,+,+ \
> AREA:b#EACC00:"10 Minute\: 0.01
> \n" \
> STACK:c#EA8F00:"5 Minute\: 0.03\n" \
> STACK:a#FF0000:"1 Minute\: 0.00\n" \
> LINE1:cdefd#000000:"Total"
> Notice the line starting AREA gets chopped, and I don't know why...
>
> Here is the script I use to get the data, a modified version of Danny
> Bendersky's script:
>
> #!/bin/sh
> #
> # snmp-cacti-load.sh
> #
> # Verify that there is an input
> # ------------------------------
> if [ -z "$1" ]; then
> echo "usage: snmp-cacti-load.sh <server> <snmp-comunity> <num>"
> echo
> exit
> fi
> #
> # Variables
> # ---------
> SERVER=$1 # Example: 10.0.0.3
> SNMPCOMUNITY=$2 # Example: public
> NUM=$3 # Example: 1
> #
> LOAD1=`/usr/bin/snmpget $SERVER $SNMPCOMUNITY .1.3.6.1.4.1.2021.10.1.3.1
> |awk '{print $3}'`
> LOAD5=`/usr/bin/snmpget $SERVER $SNMPCOMUNITY .1.3.6.1.4.1.2021.10.1.3.2
> |awk '{print $3}'`
> LOAD15=`/usr/bin/snmpget $SERVER $SNMPCOMUNITY .1.3.6.1.4.1.2021.10.1.3.3
> |awk '{print $3}'`
> echo $LOAD1 $LOAD5 $LOAD15
-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
cacti-user mailing list
cac...@li...
https://lists.sourceforge.net/lists/listinfo/cacti-user
|
|
From: Lucas D. <luc...@es...> - 2002-11-27 08:27:24
|
Dear All, Thanks for the quick reply. I have followed the steps to set up a new datasource. After completing it, the graph is made but empty :-(. When I look at the cron print out it shows nothing..?? INTERNAL: [10.100.57.252/snmp-string] OID: [.1.3.6.1.4.1.9.2.1.58.0] INTERNAL: [10.4.128.129/snmp-string] OID: [.1.3.6.1.4.1.9.2.1.56.0] Also when I manualy start cmd.php I do not get any strange output... Any ideas?? Lucas Deneken -----Original Message----- From: cac...@li... [mailto:cac...@li...]On Behalf Of cac...@li... Sent: Tuesday, November 26, 2002 5:36 PM To: cac...@li... Subject: cacti-user digest, Vol 1 #11 - 5 msgs Send cacti-user mailing list submissions to cac...@li... To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/cacti-user or, via email, send a message with subject or body 'help' to cac...@li... You can reach the person managing the list at cac...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of cacti-user digest..." Today's Topics: 1. New to Cacti (Lucas Deneken) 2. RE: New to Cacti (Furnish, Trever G) 3. Problem, data not showing up in graph... (Meehan, Francois) 4. RE: New to Cacti (Burke Azbill) 5. RE: New to Cacti (Burke Azbill) --__--__-- Message: 1 From: "Lucas Deneken" <luc...@es...> To: <cac...@li...> Date: Tue, 26 Nov 2002 10:44:31 +0100 Organization: ESI-Ned Networking Subject: [cacti-user] New to Cacti Reply-To: cac...@li... This is a multi-part message in MIME format. ------=3D_NextPart_000_003F_01C29538.CD717FF0 Content-Type: text/plain; charset=3D"iso-8859-1" Content-Transfer-Encoding: quoted-printable Dear all, I am new to Cacti. My former colleuge was wrking with MRTG, but when he =3D left he did not leave any documantion on how he did set it up. Now I am =3D supposed to get a new system up and running. After installing Cacti on a = =3D Debian GNU/Linux 2.2 machine the standard traffic is working fine. But when I want to get CPU/MEMORY and PING results of Cisco equipment I =3D am running in to some difficulties. I am working now for about 4 weeks =3D on this problem.=3D20 Can some one help be by sending "step-by-step" information on how to add = =3D a new Data source for this. On the website of cacti I also looked into the source of some graphs, =3D but did not figured out.. Please help Thanks in advance.. Lucas Deneken ------=3D_NextPart_000_003F_01C29538.CD717FF0 Content-Type: text/html; charset=3D"iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3D3DContent-Type content=3D3D"text/html; =3D charset=3D3Diso-8859-1"> <META content=3D3D"MSHTML 6.00.2800.1126" name=3D3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D3D#ffffff> <DIV><FONT face=3D3DArial size=3D3D2>Dear all,</FONT></DIV> <DIV><FONT face=3D3DArial size=3D3D2></FONT> </DIV> <DIV><FONT face=3D3DArial size=3D3D2>I am new to Cacti. My former =3D colleuge was=3D20 wrking with MRTG, but when he left he did not leave any documantion on =3D how he=3D20 did set it up. Now I am supposed to get a new system up and running. =3D After=3D20 installing Cacti on a Debian GNU/Linux 2.2 machine the standard traffic =3D is=3D20 working fine.</FONT></DIV> <DIV><FONT face=3D3DArial size=3D3D2>But when I want to get CPU/MEMORY an= d =3D PING results=3D20 of Cisco equipment I am running in to some difficulties. I am working =3D now for=3D20 about 4 weeks on this problem. </FONT></DIV> <DIV><FONT face=3D3DArial size=3D3D2>Can some one help be by sending =3D "step-by-step"=3D20 information on how to add a new Data source for this.</FONT></DIV> <DIV><FONT face=3D3DArial size=3D3D2>On the website of cacti I also looke= d =3D into the=3D20 source of some graphs, but did not figured out..</FONT></DIV> <DIV><FONT face=3D3DArial size=3D3D2></FONT> </DIV> <DIV><FONT face=3D3DArial size=3D3D2>Please help</FONT></DIV> <DIV><FONT face=3D3DArial size=3D3D2></FONT> </DIV> <DIV><FONT face=3D3DArial size=3D3D2>Thanks in advance..</FONT></DIV> <DIV><FONT face=3D3DArial size=3D3D2></FONT> </DIV> <DIV><FONT face=3D3DArial size=3D3D2>Lucas =3D Deneken</FONT></DIV></BODY></HTML> ------=3D_NextPart_000_003F_01C29538.CD717FF0-- --__--__-- Message: 2 From: "Furnish, Trever G" <TGF...@he...> To: "'cac...@li...'" <cac...@li...> Subject: RE: [cacti-user] New to Cacti Date: Tue, 26 Nov 2002 09:00:57 -0500 Reply-To: cac...@li... This message is in MIME format. Since your mail reader does not understan= d this format, some or all of this message may not be legible. ------_=3D_NextPart_001_01C29554.3E5BF2C0 Content-Type: text/plain; charset=3D"iso-8859-1" I don't know that I'd consider Cacti easier than MRTG. Cacti makes a ver= y tedious thing with a steep learning curve easier by providing a gui interface, but the thing it makes easier is RRDTool, not MRTG. By far th= e thing that made Cacti easier for me to finally grasp was realizing that m= ost of the questions you have are probably not Cacti questions but rather RRDTool questions. For example, if you start out using Cacti without digging into rrdtool by hand, you're probably wondering things like: - What's a CDEF? - What's a GPRINT, AREA, STACK, LINE2, etc? - What's a datasource? - When do I want to "update the rrd"? All of those questions are easier to figure out if you get some backgroun= d with rrdtool first. Highly recommend the rrdtool tutorials and the rrdgr= aph manual page: http://www.rrdtool.com//tutorial/ <http://www.rrdtool.com//tutorial/> http://www.rrdtool.com//manual/rrdgraph.html <http://www.rrdtool.com//manual/rrdgraph.html> The general sequence of events in creating a graph with cacti is: - Log in as an administrator. - Click the console tab. - Click on Data Sources. - Click on Add. - Give the data source a name: myrouter_5min_cpu - Assuming you're using SNMP to poll the router, Data Input Type is "= Get SNMP data". - For cpu, the type is usually GUAGE. - Select the RRA's you want - probably all of them. - Enable the "Update changes in rrd file" checkbox. - Click Save. - Back in the Current Data Sources page, find your new data source and cl= ick on "Edit data". - Enter the hostname/ip address, the snmp community, and the SNMP oid you want to pull. Tip: The oid should start with a period - that caused = me so many headaches. :-( - Click Save. - Back in the console page, click "Graphs". Then either add your new dat= a source to an existing graph or click Add. - Stuff in the Add Graph window is probably self explanatory - if not= , ask questions, I'll try to help. - Save the graph. - Back in the console again, click "Graph Heirarchy", then click on "Edit graph heirarchy" next to "Default tree" (or whatever tree you want to add the graph to). - Click the Add button next to the parent of the brancy you want to a= dd your new graph to. - Select "This item is a graph", then choose your graph from the drop-down menu and the RRA you want to show up (doesn't matter which one). Then go look at your graphs tab and see if you can find the new graph. Doing this mostly from memory, so I may have missed something - ask for h= elp if you need it. -- Trever -----Original Message----- From: Lucas Deneken [mailto:luc...@es...] Sent: Tuesday, November 26, 2002 4:45 AM To: cac...@li... Subject: [cacti-user] New to Cacti Dear all, I am new to Cacti. My former colleuge was wrking with MRTG, but when he l= eft he did not leave any documantion on how he did set it up. Now I am suppos= ed to get a new system up and running. After installing Cacti on a Debian GNU/Linux 2.2 machine the standard traffic is working fine. But when I want to get CPU/MEMORY and PING results of Cisco equipment I a= m running in to some difficulties. I am working now for about 4 weeks on th= is problem. Can some one help be by sending "step-by-step" information on how to add = a new Data source for this. On the website of cacti I also looked into the source of some graphs, but did not figured out.. Please help Thanks in advance.. Lucas Deneken ------_=3D_NextPart_001_01C29554.3E5BF2C0 Content-Type: text/html; charset=3D"iso-8859-1" <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; charset=3Diso-885= 9-1"> <META content=3D"MSHTML 5.50.4522.1800" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><SPAN class=3D191403913-26112002><FONT face=3DArial color=3D#0000ff = size=3D2>I don't know that I'd consider Cacti easier than MRTG. Cacti makes a very tedious thing with a steep learning curve easier by providing a gui interface, but the thing it makes easier is RRDTool, not MRTG. By far the thin= g that made Cacti easier for me to finally grasp was realizing that most of the questions you have are probably not Cacti questions but rather RRDTool questions.</FONT></SPAN></DIV> <DIV><SPAN class=3D191403913-26112002><FONT face=3DArial color=3D#0000ff size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D191403913-26112002><FONT face=3DArial color=3D#0000ff size=3D2>For example, if you start out using Cacti without digging into rrdtool by han= d, you're probably wondering things like:</FONT></SPAN></DIV> <DIV><SPAN class=3D191403913-26112002> <FONT face=3DAri= al color=3D#0000ff size=3D2>- What's a CDEF?</FONT></SPAN></DIV> <DIV><SPAN class=3D191403913-26112002> <FONT face=3DAri= al color=3D#0000ff size=3D2>- What's a GPRINT, AREA, STACK, LINE2, etc?</FONT></SPAN></DIV> <DIV><SPAN class=3D191403913-26112002> <FONT face=3DAri= al color=3D#0000ff size=3D2>- What's a datasource?</FONT></SPAN></DIV> <DIV><SPAN class=3D191403913-26112002> <FONT face=3DAri= al color=3D#0000ff size=3D2>- When do I want to "update the rrd"?</FONT></SPAN></DIV> <DIV><SPAN class=3D191403913-26112002><FONT face=3DArial color=3D#0000ff size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D191403913-26112002><FONT face=3DArial color=3D#0000ff size=3D2>All of those questions are easier to figure out if you get some background with rrdtool first. Highly recommend the rrdtool tutorials and the rrdgraph manu= al page:</FONT></SPAN></DIV> <DIV><SPAN class=3D191403913-26112002><FONT face=3DArial color=3D#0000ff = size=3D2><A href=3D"http://www.rrdtool.com//tutorial/">http://www.rrdtool.com//tutori= al/</ A></FONT></SPAN></DIV> <DIV><SPAN class=3D191403913-26112002><FONT face=3DArial color=3D#0000ff = size=3D2><A href=3D"http://www.rrdtool.com//manual/rrdgraph.html">http://www.rrdtool.= com// manual/rrdgraph.html</A></FONT></SPAN></DIV> <DIV><SPAN class=3D191403913-26112002><FONT face=3DArial color=3D#0000ff size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D191403913-26112002><FONT face=3DArial color=3D#0000ff size=3D2>The general sequence of events in creating a graph with cacti is:</FONT></SPAN></DIV> <DIV><SPAN class=3D191403913-26112002><FONT face=3DArial color=3D#0000ff = size=3D2>- Log in as an administrator.</FONT></SPAN></DIV> <DIV><SPAN class=3D191403913-26112002><FONT face=3DArial color=3D#0000ff = size=3D2>- Click the console tab.</FONT></SPAN></DIV> <DIV><SPAN class=3D191403913-26112002><FONT face=3DArial color=3D#0000ff = size=3D2>- Click on Data Sources.</FONT></SPAN></DIV> <DIV><SPAN class=3D191403913-26112002><FONT face=3DArial color=3D#0000ff = size=3D2>- Click on Add.</FONT></SPAN></DIV> <DIV><SPAN class=3D191403913-26112002><FONT face=3DArial color=3D#0000ff size=3D2> - Give the data source a name: myrouter_5min_cpu</FONT></SPAN></DIV> <DIV><SPAN class=3D191403913-26112002> <FONT face=3DAri= al color=3D#0000ff size=3D2>- Assuming you're using SNMP to poll the router,= Data Input Type is "Get SNMP data".</FONT></SPAN></DIV> <DIV><SPAN class=3D191403913-26112002> <FONT face=3DAri= al color=3D#0000ff size=3D2>- For cpu, the type is usually GUAGE.</FONT></SPAN></DIV> <DIV><SPAN class=3D191403913-26112002> <FONT face=3DAri= al color=3D#0000ff size=3D2>- Select the RRA's you want - probably all of them.</FONT></SPAN></DIV> <DIV><SPAN class=3D191403913-26112002> <FONT face=3DAri= al color=3D#0000ff size=3D2>- Enable the "Update changes in rrd file" checkbox.</FONT></SPAN></DIV> <DIV><SPAN class=3D191403913-26112002><FONT face=3DArial color=3D#0000ff = size=3D2>- Click Save.</FONT></SPAN></DIV> <DIV><SPAN class=3D191403913-26112002><FONT face=3DArial color=3D#0000ff = size=3D2>- Back in the Current Data Sources page, find your new data source and click on "Edit data".</FONT></SPAN></DIV> <DIV><SPAN class=3D191403913-26112002> <FONT face=3DAri= al color=3D#0000ff size=3D2>- Enter the hostname/ip address, the snmp commun= ity, and the SNMP oid you want to pull. Tip: The oid should start with a period - that caused me so many headaches. :-(</FONT></SPAN></DIV> <DIV><SPAN class=3D191403913-26112002> <FONT face=3DAri= al color=3D#0000ff size=3D2>- Click Save.</FONT></SPAN></DIV> <DIV><SPAN class=3D191403913-26112002><FONT face=3DArial color=3D#0000ff = size=3D2>- Back in the console page, click "Graphs". Then either add your new data source to an existing graph or click Add.</FONT></SPAN></DIV> <DIV><SPAN class=3D191403913-26112002> <FONT face=3DAri= al color=3D#0000ff size=3D2>- Stuff in the Add Graph window is probably self explanatory - if not, ask questions, I'll try to help.</FONT></SPAN></DIV= > <DIV><SPAN class=3D191403913-26112002> <FONT face=3DAri= al color=3D#0000ff size=3D2>- Save the graph.</FONT></SPAN></DIV> <DIV><SPAN class=3D191403913-26112002><FONT face=3DArial color=3D#0000ff = size=3D2>- Back in the console again, click "Graph Heirarchy", then click on "Edit graph heirarchy" next to "Default tree" (or whatever tree you want to add = the graph to).</FONT></SPAN></DIV> <DIV><SPAN class=3D191403913-26112002> <FONT face=3DAri= al color=3D#0000ff size=3D2>- Click the Add button next to the parent of the= brancy you want to add your new graph to.</FONT></SPAN></DIV> <DIV><SPAN class=3D191403913-26112002> <FONT face=3DArial color=3D#0000ff size=3D2>- Select "This item is a grap= h", then choose your graph from the drop-down menu and the RRA you want to show up (doesn't matter which one).</FONT></SPAN></DIV> <DIV><SPAN class=3D191403913-26112002><FONT face=3DArial color=3D#0000ff size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D191403913-26112002><FONT face=3DArial color=3D#0000ff size=3D2>Then go look at your graphs tab and see if you can find the new graph.</FONT></SPAN></DIV> <DIV><SPAN class=3D191403913-26112002><FONT face=3DArial color=3D#0000ff size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D191403913-26112002><FONT face=3DArial color=3D#0000ff size=3D2>Doing this mostly from memory, so I may have missed something - ask for help if you need it.</FONT></SPAN></DIV> <DIV><SPAN class=3D191403913-26112002><FONT face=3DArial color=3D#0000ff size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D191403913-26112002><FONT face=3DArial color=3D#0000ff size=3D2>--</FONT></SPAN></DIV> <DIV><SPAN class=3D191403913-26112002><FONT face=3DArial color=3D#0000ff size=3D2>Trever</FONT></SPAN></DIV> <DIV><SPAN class=3D191403913-26112002> </SPAN></DIV> <DIV><SPAN class=3D191403913-26112002><FONT face=3DArial color=3D#0000ff size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D191403913-26112002><FONT face=3DArial color=3D#0000ff size=3D2></FONT></SPAN> </DIV> <BLOCKQUOTE dir=3Dltr style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px so= lid; MARGIN-RIGHT: 0px"> <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT face=3DT= ahoma size=3D2>-----Original Message-----<BR><B>From:</B> Lucas Deneken [mailto:luc...@es...]<BR><B>Sent:</B> Tuesday, November 26, 2002 4:45 AM<BR><B>To:</B> cac...@li...<BR><B>Subject:</= B> [cacti-user] New to Cacti<BR><BR></FONT></DIV> <DIV><FONT face=3DArial size=3D2>Dear all,</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>I am new to Cacti. My former coll= euge was wrking with MRTG, but when he left he did not leave any documantion on = how he did set it up. Now I am supposed to get a new system up and running. Af= ter installing Cacti on a Debian GNU/Linux 2.2 machine the standard traffic= is working fine.</FONT></DIV> <DIV><FONT face=3DArial size=3D2>But when I want to get CPU/MEMORY and = PING results of Cisco equipment I am running in to some difficulties. I am working now for about 4 weeks on this problem. </FONT></DIV> <DIV><FONT face=3DArial size=3D2>Can some one help be by sending "step-by-step" information on how to add a new Data source for this.</FONT></DIV> <DIV><FONT face=3DArial size=3D2>On the website of cacti I also looked = into the source of some graphs, but did not figured out..</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Please help</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Thanks in advance..</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Lucas Deneken</FONT></DIV></BLOCKQUOTE></BODY></HTML> ------_=3D_NextPart_001_01C29554.3E5BF2C0-- --__--__-- Message: 3 From: "Meehan, Francois" <Fra...@ie...> To: "'cac...@li...'" <cac...@li...> Date: Tue, 26 Nov 2002 10:51:22 -0500 Subject: [cacti-user] Problem, data not showing up in graph... Reply-To: cac...@li... Hi all, I am trying to get remote load average, but can't get the data to show up. Looks like my problem is in the data source, this is what I get: /usr/bin/rrdtool graph - \ --imgformat=3DPNG \ --start=3D"-86400" \ --title=3D"Firewall Load_Average" \ --rigid \ --base=3D1000 \ --height=3D150 \ --width=3D500 \ --alt-autoscale-max \ --units-exponent=3D1 \ --vertical-label=3D"Average Load" \ DEF:a=3D"/home/httpd/htdocs/cacti/rra/firewall_system_loa.rrd":1min:AVERA= GE \ DEF:b=3D"/home/httpd/htdocs/cacti/rra/firewall_system_loa.rrd":10min:AVER= AGE \ DEF:c=3D"/home/httpd/htdocs/cacti/rra/firewall_system_loa.rrd":5min:AVERA= GE \ CDEF:cdefd=3Da,b,c,+,+ \ AREA:b#EACC00:"10 Minute\: 0.01 \n" \ STACK:c#EA8F00:"5 Minute\: 0.03\n" \ STACK:a#FF0000:"1 Minute\: 0.00\n" \ LINE1:cdefd#000000:"Total" Notice the line starting AREA gets chopped, and I don't know why... Here is the script I use to get the data, a modified version of Danny Bendersky's script: #!/bin/sh # # snmp-cacti-load.sh # # Verify that there is an input # ------------------------------ if [ -z "$1" ]; then echo "usage: snmp-cacti-load.sh <server> <snmp-comunity> <num>" echo exit fi # # Variables # --------- SERVER=3D$1 # Example: 10.0.0.3 SNMPCOMUNITY=3D$2 # Example: public NUM=3D$3 # Example: 1 # LOAD1=3D`/usr/bin/snmpget $SERVER $SNMPCOMUNITY .1.3.6.1.4.1.2021.10.1.3.= 1 |awk '{print $3}'` LOAD5=3D`/usr/bin/snmpget $SERVER $SNMPCOMUNITY .1.3.6.1.4.1.2021.10.1.3.= 2 |awk '{print $3}'` LOAD15=3D`/usr/bin/snmpget $SERVER $SNMPCOMUNITY .1.3.6.1.4.1.2021.10.1.3= .3 |awk '{print $3}'` echo $LOAD1 $LOAD5 $LOAD15 Thanks in advance, Francois Meehan --__--__-- Message: 4 From: "Burke Azbill" <bu...@di...> To: cac...@li...,"'cac...@li...'" <cac...@li...> Subject: RE: [cacti-user] New to Cacti Date: Tue, 26 Nov 2002 10:32:13 -0600 Reply-To: cac...@li... As for the specifics you requested regarding Cisco CPU & Memory, here is what has worked for me with my Switches & Routers: =95 Free Processor Memory: .1.3.6.1.4.1.9.9.48.1.1.1.6.1 =95 Used Processor Memory: .1.3.6.1.4.1.9.9.48.1.1.1.5.1 =95 Free I/O Memory: .1.3.6.1.4.1.9.9.48.1.1.1.6.2 =95 Used I/O Memory: .1.3.6.1.4.1.9.9.48.1.1.1.5.2 =95 5 Second CPU Utilization: .1.3.6.1.4.1.9.2.1.56.0 =95 1 Minute CPU Utilization: .1.3.6.1.4.1.9.2.1.57.0 =95 5 Minute CPU Utilization: .1.3.6.1.4.1.9.2.1.58.0 Create an "Get SNMP Data" Data Source Use the appropriate OIDs above with the IP address and community name of the device you want to monitor. Then use the Data Source(s) in your graph(s). > This message is in MIME format. Since your mail reader does not understand > this format, some or all of this message may not be legible. > > > I don't know that I'd consider Cacti easier than MRTG. Cacti makes a very > tedious thing with a steep learning curve easier by providing a gui > interface, but the thing it makes easier is RRDTool, not MRTG. By far the > thing that made Cacti easier for me to finally grasp was realizing that most > of the questions you have are probably not Cacti questions but rather > RRDTool questions. > > For example, if you start out using Cacti without digging into rrdtool by > hand, you're probably wondering things like: > - What's a CDEF? > - What's a GPRINT, AREA, STACK, LINE2, etc? > - What's a datasource? > - When do I want to "update the rrd"? > > All of those questions are easier to figure out if you get some background > with rrdtool first. Highly recommend the rrdtool tutorials and the rrdgraph > manual page: > http://www.rrdtool.com//tutorial/ <http://www.rrdtool.com//tutorial/> > http://www.rrdtool.com//manual/rrdgraph.html > <http://www.rrdtool.com//manual/rrdgraph.html> > > The general sequence of events in creating a graph with cacti is: > - Log in as an administrator. > - Click the console tab. > - Click on Data Sources. > - Click on Add. > - Give the data source a name: myrouter_5min_cpu > - Assuming you're using SNMP to poll the router, Data Input Type is "Get > SNMP data". > - For cpu, the type is usually GUAGE. > - Select the RRA's you want - probably all of them. > - Enable the "Update changes in rrd file" checkbox. > - Click Save. > - Back in the Current Data Sources page, find your new data source and click > on "Edit data". > - Enter the hostname/ip address, the snmp community, and the SNMP oid > you want to pull. Tip: The oid should start with a period - that caused me > so many headaches. :-( > - Click Save. > - Back in the console page, click "Graphs". Then either add your new data > source to an existing graph or click Add. > - Stuff in the Add Graph window is probably self explanatory - if not, > ask questions, I'll try to help. > - Save the graph. > - Back in the console again, click "Graph Heirarchy", then click on "Edit > graph heirarchy" next to "Default tree" (or whatever tree you want to add > the graph to). > - Click the Add button next to the parent of the brancy you want to add > your new graph to. > - Select "This item is a graph", then choose your graph from the > drop-down menu and the RRA you want to show up (doesn't matter which one). > > Then go look at your graphs tab and see if you can find the new graph. > > Doing this mostly from memory, so I may have missed something - ask for help > if you need it. > > -- > Trever > > > > > -----Original Message----- > From: Lucas Deneken [mailto:luc...@es...] > Sent: Tuesday, November 26, 2002 4:45 AM > To: cac...@li... > Subject: [cacti-user] New to Cacti > > > Dear all, > > I am new to Cacti. My former colleuge was wrking with MRTG, but when he left > he did not leave any documantion on how he did set it up. Now I am supposed > to get a new system up and running. After installing Cacti on a Debian > GNU/Linux 2.2 machine the standard traffic is working fine. > But when I want to get CPU/MEMORY and PING results of Cisco equipment I am > running in to some difficulties. I am working now for about 4 weeks on this > problem. > Can some one help be by sending "step-by-step" information on how to add a > new Data source for this. > On the website of cacti I also looked into the source of some graphs, but > did not figured out.. > > Please help > > Thanks in advance.. > > Lucas Deneken > > > --__--__-- Message: 5 From: "Burke Azbill" <bu...@di...> To: cac...@li...,"'cac...@li...'" <cac...@li...> Subject: RE: [cacti-user] New to Cacti Date: Tue, 26 Nov 2002 10:34:08 -0600 Reply-To: cac...@li... As for the specifics you requested regarding Cisco CPU & Memory, here is what has worked for me with my Switches & Routers: =95 Free Processor Memory: .1.3.6.1.4.1.9.9.48.1.1.1.6.1 =95 Used Processor Memory: .1.3.6.1.4.1.9.9.48.1.1.1.5.1 =95 Free I/O Memory: .1.3.6.1.4.1.9.9.48.1.1.1.6.2 =95 Used I/O Memory: .1.3.6.1.4.1.9.9.48.1.1.1.5.2 =95 5 Second CPU Utilization: .1.3.6.1.4.1.9.2.1.56.0 =95 1 Minute CPU Utilization: .1.3.6.1.4.1.9.2.1.57.0 =95 5 Minute CPU Utilization: .1.3.6.1.4.1.9.2.1.58.0 Create an "Get SNMP Data" Data Source Use the appropriate OIDs above with the IP address and community name of the device you want to monitor. Then use the Data Source(s) in your graph(s). > This message is in MIME format. Since your mail reader does not understand > this format, some or all of this message may not be legible. > > > I don't know that I'd consider Cacti easier than MRTG. Cacti makes a very > tedious thing with a steep learning curve easier by providing a gui > interface, but the thing it makes easier is RRDTool, not MRTG. By far the > thing that made Cacti easier for me to finally grasp was realizing that most > of the questions you have are probably not Cacti questions but rather > RRDTool questions. > > For example, if you start out using Cacti without digging into rrdtool by > hand, you're probably wondering things like: > - What's a CDEF? > - What's a GPRINT, AREA, STACK, LINE2, etc? > - What's a datasource? > - When do I want to "update the rrd"? > > All of those questions are easier to figure out if you get some background > with rrdtool first. Highly recommend the rrdtool tutorials and the rrdgraph > manual page: > http://www.rrdtool.com//tutorial/ <http://www.rrdtool.com//tutorial/> > http://www.rrdtool.com//manual/rrdgraph.html > <http://www.rrdtool.com//manual/rrdgraph.html> > > The general sequence of events in creating a graph with cacti is: > - Log in as an administrator. > - Click the console tab. > - Click on Data Sources. > - Click on Add. > - Give the data source a name: myrouter_5min_cpu > - Assuming you're using SNMP to poll the router, Data Input Type is "Get > SNMP data". > - For cpu, the type is usually GUAGE. > - Select the RRA's you want - probably all of them. > - Enable the "Update changes in rrd file" checkbox. > - Click Save. > - Back in the Current Data Sources page, find your new data source and click > on "Edit data". > - Enter the hostname/ip address, the snmp community, and the SNMP oid > you want to pull. Tip: The oid should start with a period - that caused me > so many headaches. :-( > - Click Save. > - Back in the console page, click "Graphs". Then either add your new data > source to an existing graph or click Add. > - Stuff in the Add Graph window is probably self explanatory - if not, > ask questions, I'll try to help. > - Save the graph. > - Back in the console again, click "Graph Heirarchy", then click on "Edit > graph heirarchy" next to "Default tree" (or whatever tree you want to add > the graph to). > - Click the Add button next to the parent of the brancy you want to add > your new graph to. > - Select "This item is a graph", then choose your graph from the > drop-down menu and the RRA you want to show up (doesn't matter which one). > > Then go look at your graphs tab and see if you can find the new graph. > > Doing this mostly from memory, so I may have missed something - ask for help > if you need it. > > -- > Trever > > > > > -----Original Message----- > From: Lucas Deneken [mailto:luc...@es...] > Sent: Tuesday, November 26, 2002 4:45 AM > To: cac...@li... > Subject: [cacti-user] New to Cacti > > > Dear all, > > I am new to Cacti. My former colleuge was wrking with MRTG, but when he left > he did not leave any documantion on how he did set it up. Now I am supposed > to get a new system up and running. After installing Cacti on a Debian > GNU/Linux 2.2 machine the standard traffic is working fine. > But when I want to get CPU/MEMORY and PING results of Cisco equipment I am > running in to some difficulties. I am working now for about 4 weeks on this > problem. > Can some one help be by sending "step-by-step" information on how to add a > new Data source for this. > On the website of cacti I also looked into the source of some graphs, but > did not figured out.. > > Please help > > Thanks in advance.. > > Lucas Deneken > > > --__--__-- _______________________________________________ cacti-user mailing list cac...@li... https://lists.sourceforge.net/lists/listinfo/cacti-user End of cacti-user Digest |
|
From: Ian B. <ib...@ra...> - 2002-11-27 04:51:51
|
Actually this looks like a valid graph command. With the necessary data,
it should render a valid graph. If the graph instead appears as a broken
image, then this graph command is in fact at fault.
Otherwise, I would be checking to make sure cacti is getting the load
average data correctly. To check this, I recommend tailing cacti's log
file at 'log/rrd.log' while cmd.php is running. You should see a line
that goes something like:
/usr/bin/rrdtool update firewall_system_loa.rrd --template
1min:10min:5min N:0.01:0.22:0.05
If instead of the load average you see U's (N:U:U:U), then cacti is not
getting the data it expected from the script.
Ian
On Tue, 2002-11-26 at 10:51, Meehan, Francois wrote:
> Hi all,
>
> I am trying to get remote load average, but can't get the data to show up.
>
> Looks like my problem is in the data source, this is what I get:
>
> /usr/bin/rrdtool graph - \
> --imgformat=PNG \
> --start="-86400" \
> --title="Firewall Load_Average" \
> --rigid \
> --base=1000 \
> --height=150 \
> --width=500 \
> --alt-autoscale-max \
> --units-exponent=1 \
> --vertical-label="Average Load" \
> DEF:a="/home/httpd/htdocs/cacti/rra/firewall_system_loa.rrd":1min:AVERAGE \
> DEF:b="/home/httpd/htdocs/cacti/rra/firewall_system_loa.rrd":10min:AVERAGE \
> DEF:c="/home/httpd/htdocs/cacti/rra/firewall_system_loa.rrd":5min:AVERAGE \
> CDEF:cdefd=a,b,c,+,+ \
> AREA:b#EACC00:"10 Minute\: 0.01
> \n" \
> STACK:c#EA8F00:"5 Minute\: 0.03\n" \
> STACK:a#FF0000:"1 Minute\: 0.00\n" \
> LINE1:cdefd#000000:"Total"
> Notice the line starting AREA gets chopped, and I don't know why...
>
> Here is the script I use to get the data, a modified version of Danny
> Bendersky's script:
>
> #!/bin/sh
> #
> # snmp-cacti-load.sh
> #
> # Verify that there is an input
> # ------------------------------
> if [ -z "$1" ]; then
> echo "usage: snmp-cacti-load.sh <server> <snmp-comunity> <num>"
> echo
> exit
> fi
> #
> # Variables
> # ---------
> SERVER=$1 # Example: 10.0.0.3
> SNMPCOMUNITY=$2 # Example: public
> NUM=$3 # Example: 1
> #
> LOAD1=`/usr/bin/snmpget $SERVER $SNMPCOMUNITY .1.3.6.1.4.1.2021.10.1.3.1
> |awk '{print $3}'`
> LOAD5=`/usr/bin/snmpget $SERVER $SNMPCOMUNITY .1.3.6.1.4.1.2021.10.1.3.2
> |awk '{print $3}'`
> LOAD15=`/usr/bin/snmpget $SERVER $SNMPCOMUNITY .1.3.6.1.4.1.2021.10.1.3.3
> |awk '{print $3}'`
> echo $LOAD1 $LOAD5 $LOAD15
|
|
From: Dan <da...@vr...> - 2002-11-26 23:14:45
|
Yeah I fixed it with that and with the php-mysql rpm that someone posted
on the forums.
scary stuff
it actually works now
Dan.
On Tue, 26 Nov 2002, Paul DeLong wrote:
> Dan wrote:
> >
> > When loading the index.php page I get this:
> >
> > raXnet cacti (about)"); DrawMatrixRowEnd(); DrawMatrixTableEnd();
> > include_once ("include/bottom_footer.php"); ?>
> >
> > however other php pages work (about, etc)
> >
> > I have no idea what this means
>
> In "php.ini", you need the following setting:
>
> short_open_tag = On
>
> It doesn't say this in the installation doc though (not last time I
> checked, at-least).
>
> Don't forget to drop-kick the webserver after making the change. I'm
> not sure if it's strictly necessary with a mod, but it can't hurt.
>
> Later,
> Paul.
>
|
|
From: Paul D. <pd...@qu...> - 2002-11-26 22:48:18
|
Dan wrote:
>
> When loading the index.php page I get this:
>
> raXnet cacti (about)"); DrawMatrixRowEnd(); DrawMatrixTableEnd();
> include_once ("include/bottom_footer.php"); ?>
>
> however other php pages work (about, etc)
>
> I have no idea what this means
In "php.ini", you need the following setting:
short_open_tag = On
It doesn't say this in the installation doc though (not last time I
checked, at-least).
Don't forget to drop-kick the webserver after making the change. I'm
not sure if it's strictly necessary with a mod, but it can't hurt.
Later,
Paul.
|
|
From: David D. <DDo...@cu...> - 2002-11-26 21:25:23
|
This was previously mentioned as a problem:
> When loading the index.php page I get this:
=20
> raXnet cacti (about)"); DrawMatrixRowEnd(); DrawMatrixTableEnd();=20
> include_once ("include/bottom_footer.php"); ?>
=20
> however other php pages work (about, etc)
Through some fumbling about - I'm a programmer, not a PHP programmer - I fo=
und that converting the <?...?> sequences to <?php ... ?> (with spaces) fix=
ed it. I used something like this to do it:
for i in $(find . -name "*.php") ; do \
sed 's/<?/&php /g; /?>/ &/g;' < $i >$i.out ; \
mv $i $i.orig ; \
mv $i.out $i ; \
done
Don't miss the spaces in the replacement strings; they seemed to be importa=
nt.
David Douthitt
CUNA & Affiliates
UNIX Systems Administrator
ddo...@cu...
|
|
From: Dan <da...@vr...> - 2002-11-26 17:36:18
|
When loading the index.php page I get this:
raXnet cacti (about)"); DrawMatrixRowEnd(); DrawMatrixTableEnd();
include_once ("include/bottom_footer.php"); ?>
however other php pages work (about, etc)
I have no idea what this means
Dan. |
|
From: Burke A. <bu...@di...> - 2002-11-26 16:35:33
|
As for the specifics you requested regarding Cisco CPU & Memory, here is what has worked for me with my Switches & Routers: Free Processor Memory: .1.3.6.1.4.1.9.9.48.1.1.1.6.1 Used Processor Memory: .1.3.6.1.4.1.9.9.48.1.1.1.5.1 Free I/O Memory: .1.3.6.1.4.1.9.9.48.1.1.1.6.2 Used I/O Memory: .1.3.6.1.4.1.9.9.48.1.1.1.5.2 5 Second CPU Utilization: .1.3.6.1.4.1.9.2.1.56.0 1 Minute CPU Utilization: .1.3.6.1.4.1.9.2.1.57.0 5 Minute CPU Utilization: .1.3.6.1.4.1.9.2.1.58.0 Create an "Get SNMP Data" Data Source Use the appropriate OIDs above with the IP address and community name of the device you want to monitor. Then use the Data Source(s) in your graph(s). > This message is in MIME format. Since your mail reader does not understand > this format, some or all of this message may not be legible. > > > I don't know that I'd consider Cacti easier than MRTG. Cacti makes a very > tedious thing with a steep learning curve easier by providing a gui > interface, but the thing it makes easier is RRDTool, not MRTG. By far the > thing that made Cacti easier for me to finally grasp was realizing that most > of the questions you have are probably not Cacti questions but rather > RRDTool questions. > > For example, if you start out using Cacti without digging into rrdtool by > hand, you're probably wondering things like: > - What's a CDEF? > - What's a GPRINT, AREA, STACK, LINE2, etc? > - What's a datasource? > - When do I want to "update the rrd"? > > All of those questions are easier to figure out if you get some background > with rrdtool first. Highly recommend the rrdtool tutorials and the rrdgraph > manual page: > http://www.rrdtool.com//tutorial/ <http://www.rrdtool.com//tutorial/> > http://www.rrdtool.com//manual/rrdgraph.html > <http://www.rrdtool.com//manual/rrdgraph.html> > > The general sequence of events in creating a graph with cacti is: > - Log in as an administrator. > - Click the console tab. > - Click on Data Sources. > - Click on Add. > - Give the data source a name: myrouter_5min_cpu > - Assuming you're using SNMP to poll the router, Data Input Type is "Get > SNMP data". > - For cpu, the type is usually GUAGE. > - Select the RRA's you want - probably all of them. > - Enable the "Update changes in rrd file" checkbox. > - Click Save. > - Back in the Current Data Sources page, find your new data source and click > on "Edit data". > - Enter the hostname/ip address, the snmp community, and the SNMP oid > you want to pull. Tip: The oid should start with a period - that caused me > so many headaches. :-( > - Click Save. > - Back in the console page, click "Graphs". Then either add your new data > source to an existing graph or click Add. > - Stuff in the Add Graph window is probably self explanatory - if not, > ask questions, I'll try to help. > - Save the graph. > - Back in the console again, click "Graph Heirarchy", then click on "Edit > graph heirarchy" next to "Default tree" (or whatever tree you want to add > the graph to). > - Click the Add button next to the parent of the brancy you want to add > your new graph to. > - Select "This item is a graph", then choose your graph from the > drop-down menu and the RRA you want to show up (doesn't matter which one). > > Then go look at your graphs tab and see if you can find the new graph. > > Doing this mostly from memory, so I may have missed something - ask for help > if you need it. > > -- > Trever > > > > > -----Original Message----- > From: Lucas Deneken [mailto:luc...@es...] > Sent: Tuesday, November 26, 2002 4:45 AM > To: cac...@li... > Subject: [cacti-user] New to Cacti > > > Dear all, > > I am new to Cacti. My former colleuge was wrking with MRTG, but when he left > he did not leave any documantion on how he did set it up. Now I am supposed > to get a new system up and running. After installing Cacti on a Debian > GNU/Linux 2.2 machine the standard traffic is working fine. > But when I want to get CPU/MEMORY and PING results of Cisco equipment I am > running in to some difficulties. I am working now for about 4 weeks on this > problem. > Can some one help be by sending "step-by-step" information on how to add a > new Data source for this. > On the website of cacti I also looked into the source of some graphs, but > did not figured out.. > > Please help > > Thanks in advance.. > > Lucas Deneken > > > |
|
From: Burke A. <bu...@di...> - 2002-11-26 16:33:38
|
As for the specifics you requested regarding Cisco CPU & Memory, here is what has worked for me with my Switches & Routers: Free Processor Memory: .1.3.6.1.4.1.9.9.48.1.1.1.6.1 Used Processor Memory: .1.3.6.1.4.1.9.9.48.1.1.1.5.1 Free I/O Memory: .1.3.6.1.4.1.9.9.48.1.1.1.6.2 Used I/O Memory: .1.3.6.1.4.1.9.9.48.1.1.1.5.2 5 Second CPU Utilization: .1.3.6.1.4.1.9.2.1.56.0 1 Minute CPU Utilization: .1.3.6.1.4.1.9.2.1.57.0 5 Minute CPU Utilization: .1.3.6.1.4.1.9.2.1.58.0 Create an "Get SNMP Data" Data Source Use the appropriate OIDs above with the IP address and community name of the device you want to monitor. Then use the Data Source(s) in your graph(s). > This message is in MIME format. Since your mail reader does not understand > this format, some or all of this message may not be legible. > > > I don't know that I'd consider Cacti easier than MRTG. Cacti makes a very > tedious thing with a steep learning curve easier by providing a gui > interface, but the thing it makes easier is RRDTool, not MRTG. By far the > thing that made Cacti easier for me to finally grasp was realizing that most > of the questions you have are probably not Cacti questions but rather > RRDTool questions. > > For example, if you start out using Cacti without digging into rrdtool by > hand, you're probably wondering things like: > - What's a CDEF? > - What's a GPRINT, AREA, STACK, LINE2, etc? > - What's a datasource? > - When do I want to "update the rrd"? > > All of those questions are easier to figure out if you get some background > with rrdtool first. Highly recommend the rrdtool tutorials and the rrdgraph > manual page: > http://www.rrdtool.com//tutorial/ <http://www.rrdtool.com//tutorial/> > http://www.rrdtool.com//manual/rrdgraph.html > <http://www.rrdtool.com//manual/rrdgraph.html> > > The general sequence of events in creating a graph with cacti is: > - Log in as an administrator. > - Click the console tab. > - Click on Data Sources. > - Click on Add. > - Give the data source a name: myrouter_5min_cpu > - Assuming you're using SNMP to poll the router, Data Input Type is "Get > SNMP data". > - For cpu, the type is usually GUAGE. > - Select the RRA's you want - probably all of them. > - Enable the "Update changes in rrd file" checkbox. > - Click Save. > - Back in the Current Data Sources page, find your new data source and click > on "Edit data". > - Enter the hostname/ip address, the snmp community, and the SNMP oid > you want to pull. Tip: The oid should start with a period - that caused me > so many headaches. :-( > - Click Save. > - Back in the console page, click "Graphs". Then either add your new data > source to an existing graph or click Add. > - Stuff in the Add Graph window is probably self explanatory - if not, > ask questions, I'll try to help. > - Save the graph. > - Back in the console again, click "Graph Heirarchy", then click on "Edit > graph heirarchy" next to "Default tree" (or whatever tree you want to add > the graph to). > - Click the Add button next to the parent of the brancy you want to add > your new graph to. > - Select "This item is a graph", then choose your graph from the > drop-down menu and the RRA you want to show up (doesn't matter which one). > > Then go look at your graphs tab and see if you can find the new graph. > > Doing this mostly from memory, so I may have missed something - ask for help > if you need it. > > -- > Trever > > > > > -----Original Message----- > From: Lucas Deneken [mailto:luc...@es...] > Sent: Tuesday, November 26, 2002 4:45 AM > To: cac...@li... > Subject: [cacti-user] New to Cacti > > > Dear all, > > I am new to Cacti. My former colleuge was wrking with MRTG, but when he left > he did not leave any documantion on how he did set it up. Now I am supposed > to get a new system up and running. After installing Cacti on a Debian > GNU/Linux 2.2 machine the standard traffic is working fine. > But when I want to get CPU/MEMORY and PING results of Cisco equipment I am > running in to some difficulties. I am working now for about 4 weeks on this > problem. > Can some one help be by sending "step-by-step" information on how to add a > new Data source for this. > On the website of cacti I also looked into the source of some graphs, but > did not figured out.. > > Please help > > Thanks in advance.. > > Lucas Deneken > > > |
|
From: Meehan, F. <Fra...@ie...> - 2002-11-26 15:51:33
|
Hi all,
I am trying to get remote load average, but can't get the data to show up.
Looks like my problem is in the data source, this is what I get:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start="-86400" \
--title="Firewall Load_Average" \
--rigid \
--base=1000 \
--height=150 \
--width=500 \
--alt-autoscale-max \
--units-exponent=1 \
--vertical-label="Average Load" \
DEF:a="/home/httpd/htdocs/cacti/rra/firewall_system_loa.rrd":1min:AVERAGE \
DEF:b="/home/httpd/htdocs/cacti/rra/firewall_system_loa.rrd":10min:AVERAGE \
DEF:c="/home/httpd/htdocs/cacti/rra/firewall_system_loa.rrd":5min:AVERAGE \
CDEF:cdefd=a,b,c,+,+ \
AREA:b#EACC00:"10 Minute\: 0.01
\n" \
STACK:c#EA8F00:"5 Minute\: 0.03\n" \
STACK:a#FF0000:"1 Minute\: 0.00\n" \
LINE1:cdefd#000000:"Total"
Notice the line starting AREA gets chopped, and I don't know why...
Here is the script I use to get the data, a modified version of Danny
Bendersky's script:
#!/bin/sh
#
# snmp-cacti-load.sh
#
# Verify that there is an input
# ------------------------------
if [ -z "$1" ]; then
echo "usage: snmp-cacti-load.sh <server> <snmp-comunity> <num>"
echo
exit
fi
#
# Variables
# ---------
SERVER=$1 # Example: 10.0.0.3
SNMPCOMUNITY=$2 # Example: public
NUM=$3 # Example: 1
#
LOAD1=`/usr/bin/snmpget $SERVER $SNMPCOMUNITY .1.3.6.1.4.1.2021.10.1.3.1
|awk '{print $3}'`
LOAD5=`/usr/bin/snmpget $SERVER $SNMPCOMUNITY .1.3.6.1.4.1.2021.10.1.3.2
|awk '{print $3}'`
LOAD15=`/usr/bin/snmpget $SERVER $SNMPCOMUNITY .1.3.6.1.4.1.2021.10.1.3.3
|awk '{print $3}'`
echo $LOAD1 $LOAD5 $LOAD15
Thanks in advance,
Francois Meehan
|
|
From: Furnish, T. G <TGF...@he...> - 2002-11-26 14:01:08
|
I don't know that I'd consider Cacti easier than MRTG. Cacti makes a very
tedious thing with a steep learning curve easier by providing a gui
interface, but the thing it makes easier is RRDTool, not MRTG. By far the
thing that made Cacti easier for me to finally grasp was realizing that most
of the questions you have are probably not Cacti questions but rather
RRDTool questions.
For example, if you start out using Cacti without digging into rrdtool by
hand, you're probably wondering things like:
- What's a CDEF?
- What's a GPRINT, AREA, STACK, LINE2, etc?
- What's a datasource?
- When do I want to "update the rrd"?
All of those questions are easier to figure out if you get some background
with rrdtool first. Highly recommend the rrdtool tutorials and the rrdgraph
manual page:
http://www.rrdtool.com//tutorial/ <http://www.rrdtool.com//tutorial/>
http://www.rrdtool.com//manual/rrdgraph.html
<http://www.rrdtool.com//manual/rrdgraph.html>
The general sequence of events in creating a graph with cacti is:
- Log in as an administrator.
- Click the console tab.
- Click on Data Sources.
- Click on Add.
- Give the data source a name: myrouter_5min_cpu
- Assuming you're using SNMP to poll the router, Data Input Type is "Get
SNMP data".
- For cpu, the type is usually GUAGE.
- Select the RRA's you want - probably all of them.
- Enable the "Update changes in rrd file" checkbox.
- Click Save.
- Back in the Current Data Sources page, find your new data source and click
on "Edit data".
- Enter the hostname/ip address, the snmp community, and the SNMP oid
you want to pull. Tip: The oid should start with a period - that caused me
so many headaches. :-(
- Click Save.
- Back in the console page, click "Graphs". Then either add your new data
source to an existing graph or click Add.
- Stuff in the Add Graph window is probably self explanatory - if not,
ask questions, I'll try to help.
- Save the graph.
- Back in the console again, click "Graph Heirarchy", then click on "Edit
graph heirarchy" next to "Default tree" (or whatever tree you want to add
the graph to).
- Click the Add button next to the parent of the brancy you want to add
your new graph to.
- Select "This item is a graph", then choose your graph from the
drop-down menu and the RRA you want to show up (doesn't matter which one).
Then go look at your graphs tab and see if you can find the new graph.
Doing this mostly from memory, so I may have missed something - ask for help
if you need it.
--
Trever
-----Original Message-----
From: Lucas Deneken [mailto:luc...@es...]
Sent: Tuesday, November 26, 2002 4:45 AM
To: cac...@li...
Subject: [cacti-user] New to Cacti
Dear all,
I am new to Cacti. My former colleuge was wrking with MRTG, but when he left
he did not leave any documantion on how he did set it up. Now I am supposed
to get a new system up and running. After installing Cacti on a Debian
GNU/Linux 2.2 machine the standard traffic is working fine.
But when I want to get CPU/MEMORY and PING results of Cisco equipment I am
running in to some difficulties. I am working now for about 4 weeks on this
problem.
Can some one help be by sending "step-by-step" information on how to add a
new Data source for this.
On the website of cacti I also looked into the source of some graphs, but
did not figured out..
Please help
Thanks in advance..
Lucas Deneken
|
|
From: Lucas D. <luc...@es...> - 2002-11-26 09:45:32
|
Dear all, I am new to Cacti. My former colleuge was wrking with MRTG, but when he = left he did not leave any documantion on how he did set it up. Now I am = supposed to get a new system up and running. After installing Cacti on a = Debian GNU/Linux 2.2 machine the standard traffic is working fine. But when I want to get CPU/MEMORY and PING results of Cisco equipment I = am running in to some difficulties. I am working now for about 4 weeks = on this problem.=20 Can some one help be by sending "step-by-step" information on how to add = a new Data source for this. On the website of cacti I also looked into the source of some graphs, = but did not figured out.. Please help Thanks in advance.. Lucas Deneken |
|
From: Burke A. <bu...@di...> - 2002-11-25 18:41:16
|
Here ya go: 1,5, and 15 respectively: enterprises.ucdavis.laTable.laEntry.laLoad.1 enterprises.ucdavis.laTable.laEntry.laLoad.2 enterprises.ucdavis.laTable.laEntry.laLoad.3 or (in numeric OID format) .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 On Mon, 2002-11-25 at 13:10, Meehan, Francois wrote: > Hi, > > I have cacti up and running, I would like to have the same graph "Load > average" for other server on the lan. I have installed ucd-snmp on these > servers, but can't find the load values (1-5-10 minutes). > > Can someone help??? > > Thanks in advance, > > > Francois Meehan > > > ------------------------------------------------------- > This SF.net email is sponsored by: Get the new Palm Tungsten T > handheld. Power & Color in a compact size! > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > _______________________________________________ > cacti-user mailing list > cac...@li... > https://lists.sourceforge.net/lists/listinfo/cacti-user > > |
|
From: Meehan, F. <Fra...@ie...> - 2002-11-25 18:10:19
|
Hi, I have cacti up and running, I would like to have the same graph "Load average" for other server on the lan. I have installed ucd-snmp on these servers, but can't find the load values (1-5-10 minutes). Can someone help??? Thanks in advance, Francois Meehan |