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
(8) |
2
(7) |
3
(2) |
4
(2) |
5
|
|
6
(2) |
7
|
8
|
9
|
10
|
11
|
12
|
|
13
|
14
|
15
(2) |
16
(5) |
17
(1) |
18
(2) |
19
|
|
20
(3) |
21
|
22
|
23
(4) |
24
|
25
|
26
|
|
27
|
28
|
29
|
30
|
31
|
|
|
|
From: Larry A. <lar...@co...> - 2009-12-23 13:51:04
|
Peter Rabbitson wrote: > lar...@co... wrote: > >> Peter, >> >> You are performing a tcp ping of the sshd port. When performing a tcp ping, Cacti simply performs a tcp connect, and then disconnects. However, by default, the sshd will log an error if the far side does not connect and perform a full layer7 handshake. >> >> So, the behavior is normal. I have not researched if you can turn the logging level down, but have observed this behavior myself. >> >> > > Is there a place where I can change the port to something more appropriate (say 80)? > Hammering 22 is hardly polite. > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > cacti-user mailing list > cac...@li... > https://lists.sourceforge.net/lists/listinfo/cacti-user > > Peter, You simply can either edit the device and change the tcp port, or if you have several devices setup this way, you can select them from the main interface and then select "Change Availability Options" from the drop down menu. Most people choose, snmp ping. The only case where you might not, is for graphing non-snmp devices. Oh, and technically speaking, we don't "hammer" per se, we simple attempt a connect once per poll. It does add up over time though. However, there are some user developed Graph Templates that might do something more akin to hammering, such as the Advanced Ping Template. I think that you could turn down that logging in sshd. I just have not investigated it. That's your call. Larry |
|
From: Peter R. <rab...@ra...> - 2009-12-23 12:43:07
|
lar...@co... wrote: > Peter, > > You are performing a tcp ping of the sshd port. When performing a tcp ping, Cacti simply performs a tcp connect, and then disconnects. However, by default, the sshd will log an error if the far side does not connect and perform a full layer7 handshake. > > So, the behavior is normal. I have not researched if you can turn the logging level down, but have observed this behavior myself. > Is there a place where I can change the port to something more appropriate (say 80)? Hammering 22 is hardly polite. |
|
From: <lar...@co...> - 2009-12-23 11:52:35
|
Peter, You are performing a tcp ping of the sshd port. When performing a tcp ping, Cacti simply performs a tcp connect, and then disconnects. However, by default, the sshd will log an error if the far side does not connect and perform a full layer7 handshake. So, the behavior is normal. I have not researched if you can turn the logging level down, but have observed this behavior myself. Regards, Larry Adams aka TheWitness http://www.cacti.net ----- Original Message ----- From: "Peter Rabbitson" <rab...@ra...> To: cac...@li.... Sent: Wednesday, December 23, 2009 4:21:01 AM GMT -05:00 US/Canada Eastern Subject: [cacti-user] Strange malicious-like behavior by poller Hi, I was able to correlate the following log entries: ==> cron.log <== Dec 23 03:15:01 Arzamas /USR/SBIN/CRON[28785]: (www-data) CMD (php /usr/share/cacti/site/poller.php >/dev/null 2>/var/log/cacti/poller-error.log) ==> auth.log <== Dec 23 03:15:04 Arzamas sshd[28796]: Did not receive identification string from 127.0.0.1 What is cacti trying to do here? ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ cacti-user mailing list cac...@li... https://lists.sourceforge.net/lists/listinfo/cacti-user |
|
From: Peter R. <rab...@ra...> - 2009-12-23 09:38:17
|
Hi, I was able to correlate the following log entries: ==> cron.log <== Dec 23 03:15:01 Arzamas /USR/SBIN/CRON[28785]: (www-data) CMD (php /usr/share/cacti/site/poller.php >/dev/null 2>/var/log/cacti/poller-error.log) ==> auth.log <== Dec 23 03:15:04 Arzamas sshd[28796]: Did not receive identification string from 127.0.0.1 What is cacti trying to do here? |
|
From: Stuart K. <ske...@fh...> - 2009-12-20 22:33:33
|
works for me. thank you, --sk >> >> > Not today. You need to hand edit <path_cacti>/poller.php > > Larry |
|
From: Larry A. <lar...@co...> - 2009-12-20 19:04:13
|
Stuart Kendrick wrote: > Hi Larry, > > Is there a place in the GUI where I can specify the "--conf somewhere" part? Or > do I poke through the mysql tables and insert it somewhere in there? > > --sk > > lar...@co... wrote: > >> It looks in various locations. In approximately this order: >> >> ./spine --conf "somewhere" >> . >> ../etc >> /etc >> >> Regards, >> >> Larry Adams >> aka TheWitness >> http://www.cacti.net >> > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > cacti-user mailing list > cac...@li... > https://lists.sourceforge.net/lists/listinfo/cacti-user > > Not today. You need to hand edit <path_cacti>/poller.php Larry |
|
From: Stuart K. <ske...@fh...> - 2009-12-20 15:43:03
|
Hi Larry, Is there a place in the GUI where I can specify the "--conf somewhere" part? Or do I poke through the mysql tables and insert it somewhere in there? --sk lar...@co... wrote: > It looks in various locations. In approximately this order: > > ./spine --conf "somewhere" > . > ../etc > /etc > > Regards, > > Larry Adams > aka TheWitness > http://www.cacti.net |
|
From: <lar...@co...> - 2009-12-18 22:31:14
|
It looks in various locations. In approximately this order: ./spine --conf "somewhere" . ../etc /etc Regards, Larry Adams aka TheWitness http://www.cacti.net ----- Original Message ----- From: "Stuart Kendrick" <ske...@fh...> To: cac...@li... Sent: Friday, December 18, 2009 11:13:03 AM GMT -05:00 US/Canada Eastern Subject: Re: [cacti-user] migrating to spine OK, so: gnat$ spine -R -V 5 is my friend ... tells me that it cannot find spine.conf So, compiling with "--sysconfdir=/usr/local/etc/spine" means that 'make install' puts spine.conf in /usr/local/etc/spine ... but the spine binary still looks in /etc for its config file (1) Is there a way to persuade the spine binary to look for spine.conf somewhere other than in /etc? (2) Is there a way, through the Cacti GUI (or through editing a file), to tell Cacti to feed '-F /usr/local/etc/spine/spine.conf' to the spine binary? --sk Stuart Kendrick wrote: > I'm trying to migrate to spine. > > I've compiled 0.8.7e successfully > cd /usr/local/src/cacti-spine-0.8.7e > ./configure --prefix=/usr/local --sysconfdir=/usr/local/etc/spine > make > make install ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ cacti-user mailing list cac...@li... https://lists.sourceforge.net/lists/listinfo/cacti-user |
|
From: Stuart K. <ske...@fh...> - 2009-12-18 16:13:16
|
OK, so: gnat$ spine -R -V 5 is my friend ... tells me that it cannot find spine.conf So, compiling with "--sysconfdir=/usr/local/etc/spine" means that 'make install' puts spine.conf in /usr/local/etc/spine ... but the spine binary still looks in /etc for its config file (1) Is there a way to persuade the spine binary to look for spine.conf somewhere other than in /etc? (2) Is there a way, through the Cacti GUI (or through editing a file), to tell Cacti to feed '-F /usr/local/etc/spine/spine.conf' to the spine binary? --sk Stuart Kendrick wrote: > I'm trying to migrate to spine. > > I've compiled 0.8.7e successfully > cd /usr/local/src/cacti-spine-0.8.7e > ./configure --prefix=/usr/local --sysconfdir=/usr/local/etc/spine > make > make install |
|
From: Stuart K. <ske...@fh...> - 2009-12-17 18:25:35
|
I'm trying to migrate to spine. I've compiled 0.8.7e successfully cd /usr/local/src/cacti-spine-0.8.7e ./configure --prefix=/usr/local --sysconfdir=/usr/local/etc/spine make make install Edited /usr/local/etc/spine/spine.conf and inserted the locally-appropriate value for DB_Pass Clicked around in the GUI to replace cmd.php with spine ... and here is what I see in the log: 12/17/2009 10:05:00 AM - POLLER: Poller[0] Maximum runtime of 298 seconds exceed ed. Exiting. 12/17/2009 10:05:00 AM - SYSTEM STATS: Time:299.0642 Method:spine Processes:10 T hreads:10 Hosts:92 HostsPerProcess:10 DataSources:2428 RRDsProcessed:0 12/17/2009 10:05:00 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces s [CMD: /usr/bin/php, ARGS: -q /var/www/html/cacti/plugins/rrdclean/rrdmove.php ] 12/17/2009 10:05:00 AM - SYSTEM THOLD STATS: Time:0.0082 Tholds:0 Hosts:0 12/17/2009 10:05:00 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces s [CMD: /usr/bin/php, ARGS: -q /var/www/html/cacti/plugins/mactrack/poller_mactr ack.php] 12/17/2009 10:05:01 AM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '3 00', Time Since Last: '300', Max Runtime '298', Poller Runs: '1' 12/17/2009 10:05:01 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces s [CMD: /usr/local/bin/spine, ARGS: 0 4] 12/17/2009 10:05:01 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces s [CMD: /usr/local/bin/spine, ARGS: 5 5] 12/17/2009 10:05:01 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces s [CMD: /usr/local/bin/spine, ARGS: 6 22] 12/17/2009 10:05:02 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces s [CMD: /usr/local/bin/spine, ARGS: 23 63] 12/17/2009 10:05:02 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces s [CMD: /usr/local/bin/spine, ARGS: 64 69] 12/17/2009 10:05:02 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces s [CMD: /usr/local/bin/spine, ARGS: 70 82] 12/17/2009 10:05:02 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces s [CMD: /usr/local/bin/spine, ARGS: 83 112] 12/17/2009 10:10:00 AM - POLLER: Poller[0] Maximum runtime of 298 seconds exceed ed. Exiting. 12/17/2009 10:10:00 AM - SYSTEM STATS: Time:299.1400 Method:spine Processes:10 T hreads:10 Hosts:92 HostsPerProcess:10 DataSources:2428 RRDsProcessed:0 I ran tshark on the box: [root@gnat ~]# tshark -i bond0 -w snmp.pcap "udp port 161" Running as user "root" and group "root". This could be dangerous. Capturing on bond0 2 Those two packets showed up when I ran snmpget manually ... otherwise, the box isn't emitting SNMP queries. Suggestions for trouble-shooting further? --sk Stuart Kendrick FHCRC |
|
From: Marc M. <mar...@me...> - 2009-12-16 17:37:01
|
On Sun, Dec 13, 2009 at 11:18:34PM -0600, Joel Davidson wrote: > Marc- > > Do you have any sample you code you could share that I could use > to get an idea of actual implementation while I work my way through > the cacti documentation? I realize cacti may give me more capability > than I really need, but I like the idea of being able to zoom in on > different parts of the data. Plus having someone else around who's > already done it may make the learning curve a bit less painful! Sure (adding cacti list for archives) Cacti doesn't have code per se, but config options. First thing to know is that cacti is really a gui around rrdtool, so read up on rrdtool a bit, try the tutorial just to get a feel for how rrdtool works. http://oss.oetiker.ch/rrdtool/tut/rrdtutorial.en.html Then go through the cacti docs, understanding that portions were meant for snmp and complex templates which you won't apply much in this case: http://docs.cacti.net/manual:088 Note that you will definitely understand cacti better if you understand how to do basic rrdtool operation without cacti (hence the first tutorial) What I have is in data input method / House temps: script/command /var/local/scr/cacti_temp --cacti which returns Corridor:60 MasterBR:61 Corridor_HVAC:0 MBR_HVAC:0 Family_Room:60.35 Living_Room:58.55 MBR_ZoneVent:58.10 MBR_FloorVent:58.66 Garage:58.89 Attic:58.89 Roof:58.89 Outdoors_Roof:55.96 Crawlspace:56.41 Outdoors_Crawlspace:55.06 BR2:U BR3:U BR4:U Garage_Fridge:42.80 Garage_Freezer:18.16 Computer_Closet:81.84 Hall_Closet:59.56 you then configure the output fields to match the names. then you need to configure a data source: House Temperatures Source: (you'll want 'Turn On Data Source Debug Mode.' in upper right corner) Mine gives: Data Source Debug /usr/bin/rrdtool create \ /var/lib/cacti/rra/housetemp_17.rrd \ --step 60 \ DS:Attic:GAUGE:600:0:150 \ DS:MBR_FloorVent:GAUGE:600:0:150 \ DS:MBR_HVAC:GAUGE:600:-1:1 \ DS:Corridor_HVAC:GAUGE:600:-1:1 \ DS:Garage_Freezer:GAUGE:600:-50:150 \ DS:Garage_Fridge:GAUGE:600:0:150 \ DS:BR4:GAUGE:600:0:150 \ DS:BR3:GAUGE:600:0:150 \ DS:BR2:GAUGE:600:0:150 \ DS:Roof:GAUGE:600:0:150 \ DS:Outdoors_Roof:GAUGE:600:0:150 \ DS:Outdoors_Crawlspace:GAUGE:600:0:150 \ DS:Hall_Closet:GAUGE:600:0:150 \ DS:Computer_Closet:GAUGE:600:0:150 \ DS:Corridor:GAUGE:600:0:150 \ DS:Crawlspace:GAUGE:600:0:150 \ DS:Family_Room:GAUGE:600:0:150 \ DS:Garage:GAUGE:600:0:150 \ DS:Living_Room:GAUGE:600:0:150 \ DS:MasterBR:GAUGE:600:0:150 \ DS:MBR_ZoneVent:GAUGE:600:0:150 \ RRA:AVERAGE:0.5:1:2628000 \ RRA:AVERAGE:0.5:1440:10950 \ RRA:AVERAGE:0.5:5:3153600 \ RRA:AVERAGE:0.5:30:525600 \ RRA:AVERAGE:0.5:120:131400 \ RRA:MAX:0.5:120:131400 \ RRA:MAX:0.5:1440:10950 \ RRA:MAX:0.5:30:525600 \ Once you set that up, cacti will use rrdtool to create /var/lib/cacti/rra/housetemp_17.rrd If you change things, you'll have to delete and recreate that file You can also fix data by turning off 'Data Source Active', recreating the same rrd file as cacti would have, and pre-fill it with your data (useful when you add fields or you want to manually regenerate the file) when you're done, re-enable 'Data Source Active'. This tells cacti to run its poller, which will call the cacti_temp command above, it takes the data fields and feeds them into an rrdtool update command for the rrd that was created with the command shown above. At this point, your data is gathering but you don't see anything yet. Note that I have non detault round robin numbers, my table in data sources/RRAs looks like this: Name Steps Rows Timespan Daily (5 Minute Avg for 30Y) 5 3153600 86400 Daily (5 Minute Avg for 5Y) 5 525600 86400 Hourly (1 Minute Avg for 1Y) 1 525600 14400 Hourly (1 Minute Avg for 5Y) 1 2628000 14400 Monthly (2 Hour Avg/Max for 30Y) 120 131400 2678400 Weekly (30 Minute Avg/Max for 30Y) 30 525600 604800 Yearly (1 Day Avg/Max for 30Y) 1440 10950 31536000 cacti/rrdtool are really meant to lose resolution over time and cacti will want to have hourly daily weekly and monthly data to display all 4 graphs but if your hourly graph has all the data forever, rrdtool will use that when you zoom on hourly data 1 year in the past. See: http://docs.cacti.net/manual:088:8_rrdtool.03_big_rra#no_data_loss Go to graph management, and create a simple graph like this: http://gargamel.merlins.org/cacti/graph.php?action=properties&local_graph_id=45&rra_id=6&view_type= (again, "Turn On Graph Debug Mode." in upper right) It's a bit tedious because you need to manually add all the fields through the GUI, which really takes a while (I do it while watching TV). The result for a triple graph is: /usr/bin/rrdtool graph - \ --imgformat=PNG \ --start=-86400 \ --end=-300 \ --title="Garage vs Fridge & Freezer" \ --rigid \ --base=1000 \ --height=320 \ --width=800 \ --alt-autoscale \ --vertical-label="temperature (F)" \ --slope-mode \ --font TITLE:12: \ --font AXIS:8: \ --font LEGEND:10: \ --font UNIT:8: \ DEF:a="/var/lib/cacti/rra/housetemp_17.rrd":Garage:AVERAGE \ DEF:b="/var/lib/cacti/rra/housetemp_17.rrd":Garage_Fridge:AVERAGE \ DEF:c="/var/lib/cacti/rra/housetemp_17.rrd":Garage_Freezer:AVERAGE \ LINE2:a#009485FF:"Garage" \ GPRINT:a:LAST:" Current\:%8.2lf %s" \ GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \ GPRINT:a:MIN:"Minimum\:%8.2lf %s" \ GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" \ LINE2:b#4444FFFF:"Garage Fridge" \ GPRINT:b:LAST:" Current\:%8.2lf %s" \ GPRINT:b:AVERAGE:"Average\:%8.2lf %s" \ GPRINT:b:MIN:"Minimum\:%8.2lf %s" \ GPRINT:b:MAX:"Maximum\:%8.2lf %s\n" \ LINE2:c#FFF200FF:"Garage Freezer" \ GPRINT:c:LAST:" Current\:%8.2lf %s" \ GPRINT:c:AVERAGE:"Average\:%8.2lf %s" \ GPRINT:c:MIN:"Minimum\:%8.2lf %s" \ GPRINT:c:MAX:"Maximum\:%8.2lf %s\n" For graphs like http://gargamel.merlins.org/cacti/graph.php?action=properties&local_graph_id=22&rra_id=6&view_type= I used a template so that I can make the graphs settings once and quickly apply them to all the data probes Last, but not least, you need to add graphs in 'graph trees' for them to show up. It's a very quick outline, but I hope it helps :) Marc -- "A mouse is a device used to point at the xterm you want to type in" - A.S.R. Microsoft is to operating systems & security .... .... what McDonalds is to gourmet cooking Home page: http://marc.merlins.org/ |
|
From: Ceylan, H. <Has...@do...> - 2009-12-16 16:58:26
|
Output of rrdtool info: filename = "sbkhcpfstorep02_hdd_total_42310.rrd" rrd_version = "0003" step = 60 last_update = 1260982203 ds[hdd_total].type = "GAUGE" ds[hdd_total].minimal_heartbeat = 120 ds[hdd_total].min = 0.0000000000e+000 ds[hdd_total].max = NaN ds[hdd_total].last_ds = "13106744" ds[hdd_total].value = 3.9320232000e+007 ds[hdd_total].unknown_sec = 0 ds[hdd_used].type = "GAUGE" ds[hdd_used].minimal_heartbeat = 120 ds[hdd_used].min = 0.0000000000e+000 ds[hdd_used].max = NaN ds[hdd_used].last_ds = "7795432" ds[hdd_used].value = 2.3386296000e+007 ds[hdd_used].unknown_sec = 0 rra[0].cf = "AVERAGE" rra[0].rows = 43200 rra[0].pdp_per_row = 1 rra[0].xff = 5.0000000000e-001 rra[0].cdp_prep[0].value = NaN rra[0].cdp_prep[0].unknown_datapoints = 0 rra[0].cdp_prep[1].value = NaN rra[0].cdp_prep[1].unknown_datapoints = 0 rra[1].cf = "AVERAGE" rra[1].rows = 51840 rra[1].pdp_per_row = 5 rra[1].xff = 5.0000000000e-001 rra[1].cdp_prep[0].value = 0.0000000000e+000 rra[1].cdp_prep[0].unknown_datapoints = 0 rra[1].cdp_prep[1].value = 0.0000000000e+000 rra[1].cdp_prep[1].unknown_datapoints = 0 rra[2].cf = "AVERAGE" rra[2].rows = 17280 rra[2].pdp_per_row = 30 rra[2].xff = 5.0000000000e-001 rra[2].cdp_prep[0].value = 2.6213488000e+008 rra[2].cdp_prep[0].unknown_datapoints = 0 rra[2].cdp_prep[1].value = 1.5572404045e+008 rra[2].cdp_prep[1].unknown_datapoints = 0 rra[3].cf = "AVERAGE" rra[3].rows = 43200 rra[3].pdp_per_row = 60 rra[3].xff = 5.0000000000e-001 rra[3].cdp_prep[0].value = 6.5533720000e+008 rra[3].cdp_prep[0].unknown_datapoints = 0 rra[3].cdp_prep[1].value = 3.8864774040e+008 rra[3].cdp_prep[1].unknown_datapoints = 0 rra[4].cf = "MIN" rra[4].rows = 51840 rra[4].pdp_per_row = 5 rra[4].xff = 5.0000000000e-001 rra[4].cdp_prep[0].value = 1.3106744000e+007 rra[4].cdp_prep[0].unknown_datapoints = 0 rra[4].cdp_prep[1].value = 7.7953426000e+006 rra[4].cdp_prep[1].unknown_datapoints = 0 rra[5].cf = "MIN" rra[5].rows = 17280 rra[5].pdp_per_row = 30 rra[5].xff = 5.0000000000e-001 rra[5].cdp_prep[0].value = 1.3106744000e+007 rra[5].cdp_prep[0].unknown_datapoints = 0 rra[5].cdp_prep[1].value = 7.7773922000e+006 rra[5].cdp_prep[1].unknown_datapoints = 0 rra[6].cf = "MIN" rra[6].rows = 43200 rra[6].pdp_per_row = 60 rra[6].xff = 5.0000000000e-001 rra[6].cdp_prep[0].value = 1.3106744000e+007 rra[6].cdp_prep[0].unknown_datapoints = 0 rra[6].cdp_prep[1].value = 7.7494800000e+006 rra[6].cdp_prep[1].unknown_datapoints = 0 rra[7].cf = "MAX" rra[7].rows = 51840 rra[7].pdp_per_row = 5 rra[7].xff = 5.0000000000e-001 rra[7].cdp_prep[0].value = 1.3106744000e+007 rra[7].cdp_prep[0].unknown_datapoints = 0 rra[7].cdp_prep[1].value = 7.7953426000e+006 rra[7].cdp_prep[1].unknown_datapoints = 0 rra[8].cf = "MAX" rra[8].rows = 17280 rra[8].pdp_per_row = 30 rra[8].xff = 5.0000000000e-001 rra[8].cdp_prep[0].value = 1.3106744000e+007 rra[8].cdp_prep[0].unknown_datapoints = 0 rra[8].cdp_prep[1].value = 7.7953426000e+006 rra[8].cdp_prep[1].unknown_datapoints = 0 rra[9].cf = "MAX" rra[9].rows = 43200 rra[9].pdp_per_row = 60 rra[9].xff = 5.0000000000e-001 rra[9].cdp_prep[0].value = 1.3106744000e+007 rra[9].cdp_prep[0].unknown_datapoints = 0 rra[9].cdp_prep[1].value = 7.7953426000e+006 rra[9].cdp_prep[1].unknown_datapoints = 0 rra[10].cf = "LAST" rra[10].rows = 43200 rra[10].pdp_per_row = 1 rra[10].xff = 5.0000000000e-001 rra[10].cdp_prep[0].value = NaN rra[10].cdp_prep[0].unknown_datapoints = 0 rra[10].cdp_prep[1].value = NaN rra[10].cdp_prep[1].unknown_datapoints = 0 rra[11].cf = "LAST" rra[11].rows = 51840 rra[11].pdp_per_row = 5 rra[11].xff = 5.0000000000e-001 rra[11].cdp_prep[0].value = 1.3106744000e+007 rra[11].cdp_prep[0].unknown_datapoints = 0 rra[11].cdp_prep[1].value = 7.7953426000e+006 rra[11].cdp_prep[1].unknown_datapoints = 0 rra[12].cf = "LAST" rra[12].rows = 17280 rra[12].pdp_per_row = 30 rra[12].xff = 5.0000000000e-001 rra[12].cdp_prep[0].value = 1.3106744000e+007 rra[12].cdp_prep[0].unknown_datapoints = 0 rra[12].cdp_prep[1].value = 7.7953426000e+006 rra[12].cdp_prep[1].unknown_datapoints = 0 rra[13].cf = "LAST" rra[13].rows = 43200 rra[13].pdp_per_row = 60 rra[13].xff = 5.0000000000e-001 rra[13].cdp_prep[0].value = 1.3106744000e+007 rra[13].cdp_prep[0].unknown_datapoints = 0 rra[13].cdp_prep[1].value = 7.7953426000e+006 rra[13].cdp_prep[1].unknown_datapoints = 0 |
|
From: Marc M. <mar...@me...> - 2009-12-16 16:50:59
|
On Wed, Dec 16, 2009 at 08:48:46AM -0800, Marc MERLIN wrote:
> On Wed, Dec 16, 2009 at 11:30:34AM -0500, Ceylan, Hasan wrote:
> > I tried to post this question in forums with the graphs, but forums did not allow me since I exceed the quota. Anyway, this question is really critical because the realibility of cacti is being questioned by people around here.
>
> It's unlikely a problem on your side, cacti graphs what rrdtool has. If you
oops: I meant "likely"
Marc
--
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems & security ....
.... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/
|
|
From: Marc M. <mar...@me...> - 2009-12-16 16:48:57
|
On Wed, Dec 16, 2009 at 11:30:34AM -0500, Ceylan, Hasan wrote: > I tried to post this question in forums with the graphs, but forums did not allow me since I exceed the quota. Anyway, this question is really critical because the realibility of cacti is being questioned by people around here. It's unlikely a problem on your side, cacti graphs what rrdtool has. If you have bad rrdtool data, you'll get bad graphs. Post your graph configuration here and you can post your graph picture somewhere with a link to that picture. > I have rra defined as 1 minute 5 minute, 30 minute and 60 minute. I have > cacti version 0.8.7d, rrdtool version 1.2.25. On some of my graphs, I > see data is getting truncated. One day, I'll see the data in a graph, > some other time, the graph seems empty for 5 minute data. This does not > make sense. It is only happening with some charts. I need to know what is > causing this It is impossible to say with so little data on how you are doing things. When you ask a question put yourself in the shoes of the person who's supposed to help you and ask yourself if they have any way to do so with the data you gave. Please read this for tips, it will help: http://catb.org/~esr/faqs/smart-questions.html Marc -- "A mouse is a device used to point at the xterm you want to type in" - A.S.R. Microsoft is to operating systems & security .... .... what McDonalds is to gourmet cooking Home page: http://marc.merlins.org/ |
|
From: Ceylan, H. <Has...@do...> - 2009-12-16 16:30:48
|
I tried to post this question in forums with the graphs, but forums did not allow me since I exceed the quota. Anyway, this question is really critical because the realibility of cacti is being questioned by people around here. Here is the description once again: I have rra defined as 1 minute 5 minute, 30 minute and 60 minute. I have cacti version 0.8.7d, rrdtool version 1.2.25. On some of my graphs, I see data is getting truncated. One day, I'll see the data in a graph, some other time, the graph seems empty for 5 minute data. This does not make sense. It is only happening with some charts. I need to know what is causing this |
|
From: Reinhard S. <Rei...@te...> - 2009-12-15 22:40:12
|
At this time, you should have received some message from generating the graph.
What does it tell you?
At that piece of code, we require an array. It is obviouly possible to capture
the situation where that array is empty to avoid the php error.
But in fact it is wrong that the array returned is empty.
The function is create_complete_graph_from_template and it seems to have some
problems with your template.
R.
On 15.12.2009 21:56, Teodor wrote:
> Hello,
>
> I've created a CPU load template (attached) that used to work up to
> version 0.8.7b, but on the latest Cacti version 0.8.7e I'm receiving
> this error message every time I'm creating a graph:
> | Notice: Undefined index: local_data_id in
> | /usr/share/cacti/site/graphs_new.php on line 202
> |
> | Warning: Invalid argument supplied for foreach() in
> | /usr/share/cacti/site/graphs_new.php on line 202
> |
> | Warning: Cannot modify header information - headers already sent by
> | (output started at /usr/share/cacti/site/graphs_new.php:202) in
> | /usr/share/cacti/site/graphs_new.php on line 330
>
> Can you tell me if I can safely disable the "foreach" cycle on line 202?
>
> Thanks
>
>
> --------------------
> doru@frost:~$ diff -U0 gnew_087b.php gnew_087e.php
> --- gnew_087b.php 2008-02-14 00:07:53.000000000 +0200
> +++ gnew_087e.php 2009-06-28 19:07:11.000000000 +0300
> @@ -4 +4 @@
> - | Copyright (C) 2004-2008 The Cacti Group |
> + | Copyright (C) 2004-2009 The Cacti Group |
> @@ -199,0 +200,5 @@
> +
> + /* lastly push host-specific information to our data sources */
> + foreach($return_array["local_data_id"] as $item) {
> + push_out_host($_POST["host_id"], $item);
> + }
> @@ -206,0 +212,5 @@
> +
> + /* lastly push host-specific information to our data sources */
> + foreach($return_array["local_data_id"] as $item) {
> + push_out_host($_POST["host_id"], $item);
> + }
> @@ -211,3 +220,0 @@
> -
> - /* lastly push host-specific information to our data sources */
> - push_out_host($_POST["host_id"],0);
> @@ -340,8 +346,0 @@
> -function check_changed($request, $session) {
> - if ((isset($_REQUEST[$request]))&& (isset($_SESSION[$session]))) {
> - if ($_REQUEST[$request] != $_SESSION[$session]) {
> - return 1;
> - }
> - }
> -}
> -
> @@ -359,0 +359,5 @@
> + /* clean up search string */
> + if (isset($_REQUEST["filter"])) {
> + $_REQUEST["filter"] = sanitize_search_string(get_request_var("filter"));
> + }
> +
> @@ -368,0 +373,2 @@
> +
> + $changed = true;
> @@ -608 +614,5 @@
> - $page = $_REQUEST["page" . $snmp_query["id"]];
> + if (!$changed) {
> + $page = $_REQUEST["page" . $snmp_query["id"]];
> + }else{
> + $page = 1;
> + }
> @@ -754 +764,2 @@
> - $rows_query = "SELECT host_id, snmp_query_id, snmp_index FROM
> host_snmp_cache
> + $rows_query = "SELECT host_id, snmp_query_id, snmp_index
> + FROM host_snmp_cache
> @@ -764 +775 @@
> - if (($page-1) * $row_limit> $total_rows) {
> + if (($page - 1) * $row_limit> $total_rows) {
>
>
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev
>
>
>
> _______________________________________________
> cacti-user mailing list
> cac...@li...
> https://lists.sourceforge.net/lists/listinfo/cacti-user
|
|
From: Teodor <mt...@us...> - 2009-12-15 20:56:39
|
Hello,
I've created a CPU load template (attached) that used to work up to
version 0.8.7b, but on the latest Cacti version 0.8.7e I'm receiving
this error message every time I'm creating a graph:
| Notice: Undefined index: local_data_id in
| /usr/share/cacti/site/graphs_new.php on line 202
|
| Warning: Invalid argument supplied for foreach() in
| /usr/share/cacti/site/graphs_new.php on line 202
|
| Warning: Cannot modify header information - headers already sent by
| (output started at /usr/share/cacti/site/graphs_new.php:202) in
| /usr/share/cacti/site/graphs_new.php on line 330
Can you tell me if I can safely disable the "foreach" cycle on line 202?
Thanks
--------------------
doru@frost:~$ diff -U0 gnew_087b.php gnew_087e.php
--- gnew_087b.php 2008-02-14 00:07:53.000000000 +0200
+++ gnew_087e.php 2009-06-28 19:07:11.000000000 +0300
@@ -4 +4 @@
- | Copyright (C) 2004-2008 The Cacti Group |
+ | Copyright (C) 2004-2009 The Cacti Group |
@@ -199,0 +200,5 @@
+
+ /* lastly push host-specific information to our data sources */
+ foreach($return_array["local_data_id"] as $item) {
+ push_out_host($_POST["host_id"], $item);
+ }
@@ -206,0 +212,5 @@
+
+ /* lastly push host-specific information to our data sources */
+ foreach($return_array["local_data_id"] as $item) {
+ push_out_host($_POST["host_id"], $item);
+ }
@@ -211,3 +220,0 @@
-
- /* lastly push host-specific information to our data sources */
- push_out_host($_POST["host_id"],0);
@@ -340,8 +346,0 @@
-function check_changed($request, $session) {
- if ((isset($_REQUEST[$request])) && (isset($_SESSION[$session]))) {
- if ($_REQUEST[$request] != $_SESSION[$session]) {
- return 1;
- }
- }
-}
-
@@ -359,0 +359,5 @@
+ /* clean up search string */
+ if (isset($_REQUEST["filter"])) {
+ $_REQUEST["filter"] = sanitize_search_string(get_request_var("filter"));
+ }
+
@@ -368,0 +373,2 @@
+
+ $changed = true;
@@ -608 +614,5 @@
- $page = $_REQUEST["page" . $snmp_query["id"]];
+ if (!$changed) {
+ $page = $_REQUEST["page" . $snmp_query["id"]];
+ }else{
+ $page = 1;
+ }
@@ -754 +764,2 @@
- $rows_query = "SELECT host_id, snmp_query_id, snmp_index FROM
host_snmp_cache
+ $rows_query = "SELECT host_id, snmp_query_id, snmp_index
+ FROM host_snmp_cache
@@ -764 +775 @@
- if (($page-1) * $row_limit > $total_rows) {
+ if (($page - 1) * $row_limit > $total_rows) {
|
|
From: Marc M. <mar...@me...> - 2009-12-06 07:12:59
|
On Mon, Nov 16, 2009 at 02:09:50PM -0800, Marc MERLIN wrote: > http://gargamel.merlins.org/cacti/graph.php?action=properties&local_graph_id=39&rra_id=0&view_type=tree&graph_start=1258302354&graph_end=1258315217 > > and just in case my data samples were somehow bad (and I checked the source, > they're not), the same thing happened at the same time on another data > source at the same exact times: > > http://gargamel.merlins.org/cacti/graph.php?action=properties&local_graph_id=40&rra_id=0&view_type=tree&graph_start=1258302354&graph_end=1258315217 > > There is just no way it's a concidence. > Also I noticed that what shows up is a data sample with twice the value it > should have and then the next sample is pretty much 0. > > The graph definitions are in the links and the rrd was created like so: > /usr/bin/rrdtool create /var/lib/cacti/rra/housepower_21.rrd --step 120 \ > DS:HouseNoAC:DERIVE:600:-1000000000:1000000000 DS:House:DERIVE:600:-1000000000:1000000000 \ > DS:PGE:DERIVE:600:-1000000000:1000000000 DS:AC:DERIVE:600:-1000000000:1000000000 \ > DS:PV:DERIVE:600:-1000000000:1000000000 \ > RRA:AVERAGE:0.5:1:2628000 RRA:AVERAGE:0.5:1440:10950 RRA:AVERAGE:0.5:5:3153600 \ > RRA:AVERAGE:0.5:30:525600 RRA:AVERAGE:0.5:120:131400 \ > RRA:MAX:0.5:1440:10950 RRA:MAX:0.5:30:525600 RRA:MAX:0.5:120:131400 \ > > I'm just trying to understand what could make these data problems possible. > My original data on disk (before it was fed to the rrd) is correct. > Even if there was a time delay in when the data was given, rrdtool knows how to interpolate > data to make things right, so I don't get it. > > Any ideas? I should answer myself on this one for the benefit of the archives. The problem was as such: - cacti polled data from my file every 2mn, more or less - my script got data from somewhere and wrote it to the file every 2mn or so. There is of course a race condition here: sometimes my script had written the next sample before cacti polled the previous one and cacti got 2 samples' for one time interval and then no data increase at the next interval. Fix was to disable rrd updates from cacti and just have my script update the rrd each time it got data so that there aren't 2 processes that can be slightly out of sync. Marc -- "A mouse is a device used to point at the xterm you want to type in" - A.S.R. Microsoft is to operating systems & security .... .... what McDonalds is to gourmet cooking Home page: http://marc.merlins.org/ |
|
From: Marc M. <mar...@me...> - 2009-12-06 07:08:02
|
On Fri, Dec 04, 2009 at 04:26:52PM +0100, Reinhard Scheck wrote:
> Please use "CURRENT_DATA_SOURCE" as a pseudo-variable to make cacti use the
> current data source (the one, the CDEF is assigned to)
Thanks for the hint, I just didn't get that sicne I was trying to replicate
the rrdtool syntax and cacti just works differently here.
I'm all set with your tip now, thank you.
Marc
--
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems & security ....
.... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/
|
|
From: Reinhard S. <Rei...@te...> - 2009-12-04 15:27:07
|
Please use "CURRENT_DATA_SOURCE" as a pseudo-variable to make cacti use the current data source (the one, the CDEF is assigned to) Reinhard On 04.12.2009 07:37, Marc MERLIN wrote: > On Thu, Dec 03, 2009 at 08:50:49AM -0800, Marc MERLIN wrote: >> On Wed, Dec 02, 2009 at 11:37:36PM -0800, Marc MERLIN wrote: >> >>> I also tried both: >>> cdef=h,1,EQ,CURRENT_GRAPH_MAXIMUM_VALUE,CURRENT_GRAPH_MINIMUM_VALUE,IF >>> and >>> cdef=h,1,EQ,CURRENT_DS_MAXIMUM_VALUE,CURRENT_DS_MINIMUM_VALUE,IF >>> but neither did what I was looking for. >> >> Answer for the archives, was: >> CDEF:cdefdf=h,1,EQ,INF,UNKN,IF > > Mmmh, except that this is no good. The CDEF relies on the graph assigned > letter and can't be reused for another graph. > > If I have: > (...) > DEF:f="/var/lib/cacti/rra/housetemp_17.rrd":MBR_ZoneVent:AVERAGE \ > DEF:g="/var/lib/cacti/rra/housetemp_17.rrd":MBR_FloorVent:AVERAGE \ > DEF:h="/var/lib/cacti/rra/housetemp_17.rrd":Corridor_HVAC:AVERAGE \ > DEF:i="/var/lib/cacti/rra/housetemp_17.rrd":MBR_HVAC:AVERAGE \ > CDEF:cdefdf=h,1,EQ,INF,UNKN,IF \ > CDEF:cdefdg=h,-1,EQ,INF,UNKN,IF \ > CDEF:cdefdh=i,1,EQ,INF,UNKN,IF \ > CDEF:cdefdi=i,-1,EQ,INF,UNKN,IF \ > > this works, but the cdefs are unusable with other graphs were the def > letter is different. > > When I want something like > CDEF:cdefdf=Corridor_HVAC,1,EQ,INF,UNKN,IF \ > it fails with > ERROR: invalid rpn expression in: Corridor_HVAC,1,EQ,INF,UNKN,IF > > So, can one have such a CDEF depend on a DS name (Corridor_HVAC here) instead > of a highly variable letter like 'h' > > I read http://docs.cacti.net/manual:087:6_reference.2_cdef#cdefs again and I > don't see how cacti supports the rrdtool syntax. > > Am I missing something or does cacti indeed require that I recreate identical CDEF > entries for each graph because of non matching graph letters? > > Thanks, > Marc |
|
From: Marc M. <mar...@me...> - 2009-12-04 06:37:51
|
On Thu, Dec 03, 2009 at 08:50:49AM -0800, Marc MERLIN wrote: > On Wed, Dec 02, 2009 at 11:37:36PM -0800, Marc MERLIN wrote: > > > I also tried both: > > cdef=h,1,EQ,CURRENT_GRAPH_MAXIMUM_VALUE,CURRENT_GRAPH_MINIMUM_VALUE,IF > > and > > cdef=h,1,EQ,CURRENT_DS_MAXIMUM_VALUE,CURRENT_DS_MINIMUM_VALUE,IF > > but neither did what I was looking for. > > Answer for the archives, was: > CDEF:cdefdf=h,1,EQ,INF,UNKN,IF Mmmh, except that this is no good. The CDEF relies on the graph assigned letter and can't be reused for another graph. If I have: (...) DEF:f="/var/lib/cacti/rra/housetemp_17.rrd":MBR_ZoneVent:AVERAGE \ DEF:g="/var/lib/cacti/rra/housetemp_17.rrd":MBR_FloorVent:AVERAGE \ DEF:h="/var/lib/cacti/rra/housetemp_17.rrd":Corridor_HVAC:AVERAGE \ DEF:i="/var/lib/cacti/rra/housetemp_17.rrd":MBR_HVAC:AVERAGE \ CDEF:cdefdf=h,1,EQ,INF,UNKN,IF \ CDEF:cdefdg=h,-1,EQ,INF,UNKN,IF \ CDEF:cdefdh=i,1,EQ,INF,UNKN,IF \ CDEF:cdefdi=i,-1,EQ,INF,UNKN,IF \ this works, but the cdefs are unusable with other graphs were the def letter is different. When I want something like CDEF:cdefdf=Corridor_HVAC,1,EQ,INF,UNKN,IF \ it fails with ERROR: invalid rpn expression in: Corridor_HVAC,1,EQ,INF,UNKN,IF So, can one have such a CDEF depend on a DS name (Corridor_HVAC here) instead of a highly variable letter like 'h' I read http://docs.cacti.net/manual:087:6_reference.2_cdef#cdefs again and I don't see how cacti supports the rrdtool syntax. Am I missing something or does cacti indeed require that I recreate identical CDEF entries for each graph because of non matching graph letters? Thanks, Marc -- "A mouse is a device used to point at the xterm you want to type in" - A.S.R. Microsoft is to operating systems & security .... .... what McDonalds is to gourmet cooking Home page: http://marc.merlins.org/ |
|
From: Marc M. <mar...@me...> - 2009-12-03 16:51:06
|
On Wed, Dec 02, 2009 at 11:37:36PM -0800, Marc MERLIN wrote:
> I also tried both:
> cdef=h,1,EQ,CURRENT_GRAPH_MAXIMUM_VALUE,CURRENT_GRAPH_MINIMUM_VALUE,IF
> and
> cdef=h,1,EQ,CURRENT_DS_MAXIMUM_VALUE,CURRENT_DS_MINIMUM_VALUE,IF
> but neither did what I was looking for.
Answer for the archives, was:
CDEF:cdefdf=h,1,EQ,INF,UNKN,IF
Thanks again for your help,
Marc
--
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems & security ....
.... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/
|
|
From: Marc M. <mar...@me...> - 2009-12-03 07:43:08
|
On Wed, Dec 02, 2009 at 08:33:02PM +0100, Herve Donati wrote: > Hi Marc, > > We currently use this kind of things. > As an example what we have for load average (green under 1, yellow > between 1 and 5, and red when greater than 5 ): Ok, good to know that it's supposed to work. > DEF:a="/var/www/html/cacti-0.8.7e/rra/manche2_load_5min_4145.rrd":load_5min:AVERAGE > \ > CDEF:cdefa=a,0,* \ > CDEF:cdefb=a,0,GE,a,1,LT,a,0,IF,0,IF \ > CDEF:cdefc=a,1,GE,a,5,LT,a,0,IF,0,IF \ > CDEF:cdefd=a,5,GE,a,0,IF \ > AREA:cdefa:"" \ > AREA:cdefb#7EE600FF:"":STACK \ > AREA:cdefc#F5F800FF:"":STACK \ > AREA:cdefd#FF0000FF:"":STACK \ > LINE1:a#000000FF:"" \ > GPRINT:a:LAST:"Current\:%8.2lf\n" > > Maybe in your case the double assignment > CDEF:cdefdf=main_hvac=Corridor_HVAC is wrong. Try something like : Well, it wasn't wrong as much as what I wanted was CDEF:cdef:main_hvac=Corridor_HVAC,1,EQ,70,0,IF like in the rrdtool tutorial, but I could not get cacti to generate that syntax. > CDEF:cdefdf=h,1,EQ,70,0,IF ???? Ah, I see I have to use a simpler syntax. Mmmh, this is kind of weird because I have to hardcode 'h' in my CDEF in advance and it'll break if I move variables around and AREA h gets renamed, but it works, thanks. Ok, now I'm left with an rrdtool question, really, I'll try it on the rrdtool users list but just in case you happen to know. Is it possible to draw an area that automatically fills the Y autoscale the graph already has? In my case I'm trying to show when the HVAC system reports on but I don't want to increase the Y axis. If I use area 0 - 70, it goes all the way down to 0 and if I guess 40-70 it's a bit better, but really I don't wan to guess, I'd rather just fill the area. http://marc.merlins.org/tmp/test1.jpg http://marc.merlins.org/tmp/test2.jpg I also tried both: cdef=h,1,EQ,CURRENT_GRAPH_MAXIMUM_VALUE,CURRENT_GRAPH_MINIMUM_VALUE,IF and cdef=h,1,EQ,CURRENT_DS_MAXIMUM_VALUE,CURRENT_DS_MINIMUM_VALUE,IF but neither did what I was looking for. Any ideas? Thanks, Marc On Wed, Dec 02, 2009 at 08:38:36PM +0100, Reinhard Scheck wrote: > Please see http://docs.cacti.net/manual:087:6_reference.2_cdef#cdefs for information I had already :) it just wasn't clear to me that the cacti syntax was a subset of what rrdtool allowed and required hardcoding a graph variable letter. Thanks for the pointer though, often the documentation is what the user is missing (and that can be true for me too :) ) Cheers, Marc -- "A mouse is a device used to point at the xterm you want to type in" - A.S.R. Microsoft is to operating systems & security .... .... what McDonalds is to gourmet cooking Home page: http://marc.merlins.org/ |
|
From: <lar...@co...> - 2009-12-02 20:29:24
|
Two things that often cause this is a non-fully operational database, PHP memory settings, or RRDtool hanging. The outcome depends on where it crashes in the UI. Regards, Larry Adams aka TheWitness http://www.cacti.net ----- Original Message ----- From: "Pavel Rubtsov" <qw...@gm...> To: cac...@li... Sent: Wednesday, December 2, 2009 11:54:28 AM GMT -05:00 US/Canada Eastern Subject: [cacti-user] Often apache crashes Last version of cacti, patched. Apache 2.2.14. Manually build cacti system - apache crashed. Download cactiEZ, with some version of apache, the same problem. Anybody has such problem? -- not running ------------------------------------------------------------------------------ Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev _______________________________________________ cacti-user mailing list cac...@li... https://lists.sourceforge.net/lists/listinfo/cacti-user |
|
From: Frank B. - iName.c. <fr...@in...> - 2009-12-02 19:58:29
|
FYI that may apply: most of Cisco's switches don't keep complete counters for virtual interfaces -- just those that are punted to the CPU, I believe. Frank -----Original Message----- From: Eduardo Barreto [mailto:le...@gm...] Sent: Wednesday, December 02, 2009 7:35 AM To: cac...@li... Subject: [cacti-user] Virtual Interfaces Hi All, How can I get traffic graphs from a virtual interface, which is et up on a linux machine? Thanks in advance Eduardo Barreto ---------------------------------------------------------------------------- -- Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev _______________________________________________ cacti-user mailing list cac...@li... https://lists.sourceforge.net/lists/listinfo/cacti-user |