Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Cacti 0.8.5-pre Testing
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cacti Forum Index -> Help: Unstable Development Versions
Author Message
raX
Lead Developer


Joined: 13 Oct 2001
Posts: 2234
Location: Carlisle, PA

PostPosted: Wed Jan 28, 2004 12:46 am    Post subject: Reply with quote

nydoofus wrote:
Just a quick question about the beta. How is CURRENT_MAXIMUM_VALUE supposed to work. I'm trying to create a percentage utilization for an network interface, but it doesn't seem to work. Here is my current CDEF
cdef=CURRENT_DATA_SOURCE,8,*,CURRENT_MAXIMUM_VALUE,/


The variable CURRENT_MAXIMUM_VALUE is simply substituted with the maximum value set for the current data source. Your CDEF looks almost right, except it is missing the "percent part":

Code:
CURRENT_DATA_SOURCE,8,*,CURRENT_MAXIMUM_VALUE,/,100,*


-Ian
Back to top
moonman
Cacti User


Joined: 06 Sep 2003
Posts: 94

PostPosted: Wed Jan 28, 2004 12:55 am    Post subject: Reply with quote

raX wrote:
nydoofus wrote:
Just a quick question about the beta. How is CURRENT_MAXIMUM_VALUE supposed to work. I'm trying to create a percentage utilization for an network interface, but it doesn't seem to work. Here is my current CDEF
cdef=CURRENT_DATA_SOURCE,8,*,CURRENT_MAXIMUM_VALUE,/


The variable CURRENT_MAXIMUM_VALUE is simply substituted with the maximum value set for the current data source. Your CDEF looks almost right, except it is missing the "percent part":

Code:
CURRENT_DATA_SOURCE,8,*,CURRENT_MAXIMUM_VALUE,/,100,*


-Ian


Hi Rax
Can You also add Current max Value indicated in the graph not in the data source

Thanks
Back to top
nydoofus



Joined: 26 Jan 2004
Posts: 7

PostPosted: Wed Jan 28, 2004 1:45 am    Post subject: Reply with quote

raX wrote:
nydoofus wrote:
Just a quick question about the beta. How is CURRENT_MAXIMUM_VALUE supposed to work. I'm trying to create a percentage utilization for an network interface, but it doesn't seem to work. Here is my current CDEF
cdef=CURRENT_DATA_SOURCE,8,*,CURRENT_MAXIMUM_VALUE,/


The variable CURRENT_MAXIMUM_VALUE is simply substituted with the maximum value set for the current data source. Your CDEF looks almost right, except it is missing the "percent part":

Code:
CURRENT_DATA_SOURCE,8,*,CURRENT_MAXIMUM_VALUE,/,100,*


-Ian



I did what you said, but it doesn't work. I also created a test CDEF that just contains CURRENT_MAXIMUM_VALUE, and it causes the graph not to be displayed. Is CURRENT_MAXIMUM_VALUE a derived value? Or does it have to be set in the data source page? (Mine says 100000000, which explains the absurdly low numbers i've been getting on my 1.544 mbit T1's)
Back to top
raX
Lead Developer


Joined: 13 Oct 2001
Posts: 2234
Location: Carlisle, PA

PostPosted: Thu Jan 29, 2004 11:38 pm    Post subject: Reply with quote

nydoofus wrote:
I did what you said, but it doesn't work. I also created a test CDEF that just contains CURRENT_MAXIMUM_VALUE, and it causes the graph not to be displayed. Is CURRENT_MAXIMUM_VALUE a derived value? Or does it have to be set in the data source page? (Mine says 100000000, which explains the absurdly low numbers i've been getting on my 1.544 mbit T1's)


For this feature to work, you need to have a data source selected in the graph item that you use this CDEF in. So, if you use this CDEF on a graph item it must have a data source.

-Ian
Back to top
raX
Lead Developer


Joined: 13 Oct 2001
Posts: 2234
Location: Carlisle, PA

PostPosted: Thu Jan 29, 2004 11:53 pm    Post subject: Reply with quote

moonman wrote:
Hi Rax
Can You also add Current max Value indicated in the graph not in the data source


Done. I also renamed 'CURRENT_MINIMUM_VALUE' to 'CURRENT_DS_MINIMUM_VALUE' and 'CURRENT_MAXIMUM_VALUE' to 'CURRENT_DS_MAXIMUM_VALUE'. If you forget to select a data source, it won't break your graph anymore, just display a nan.

-Ian
Back to top
nydoofus



Joined: 26 Jan 2004
Posts: 7

PostPosted: Fri Jan 30, 2004 3:36 pm    Post subject: Reply with quote

raX wrote:
nydoofus wrote:
I did what you said, but it doesn't work. I also created a test CDEF that just contains CURRENT_MAXIMUM_VALUE, and it causes the graph not to be displayed. Is CURRENT_MAXIMUM_VALUE a derived value? Or does it have to be set in the data source page? (Mine says 100000000, which explains the absurdly low numbers i've been getting on my 1.544 mbit T1's)


For this feature to work, you need to have a data source selected in the graph item that you use this CDEF in. So, if you use this CDEF on a graph item it must have a data source.

-Ian


The CDEF itself is working properly. I think the problem is that the Data Source's Maximum Value isn't getting set to |query_ifSpeed|. All my lines are showing up as 100000000 as the Maximum Value, instead of the actual values.

Also, when updating the Data Source's Maximum Value for the interfaces, I can only update traffic_in. traffic_out never gets updated.
Back to top
bulek
Cacti Pro User


Joined: 20 May 2002
Posts: 852
Location: Poland

PostPosted: Fri Jan 30, 2004 6:04 pm    Post subject: Reply with quote

There is one misunderstanding present in whole 0.8.x line. Interface speed is used for setting data source maximum value. It's not correct since interface speed is measured in bits/sec while maximum value is related to counter which is used for calculation values in bytes/sec. For example maximum value for 10Mb Ethernet interface should be set to 1250000 (not 10000000). Maximum values are set 8 times too high what may cause spikes on graphs.

- Piotr
Back to top
Guest






PostPosted: Sat Jan 31, 2004 10:21 pm    Post subject: Reply with quote

Problems displaying images:
Notice: Undefined variable: regexps in /usr/local/www/data/cacti/lib/rrd.php on line 303

Notice: Undefined variable: fetch_array in /usr/local/www/data/cacti/lib/rrd.php on line 318

Notice: Undefined variable: max_array in /usr/local/www/data/cacti/lib/rrd.php on line 323

Notice: Undefined index: values in /usr/local/www/data/cacti/lib/rrd.php on line 341

Warning: usort(): The argument should be an array in /usr/local/www/data/cacti/lib/rrd.php on line 344

==>Also cannot get the poll's to pull data correctly.

help
Back to top
pbulteel
Cacti User


Joined: 05 Sep 2003
Posts: 150
Location: London

PostPosted: Mon Feb 02, 2004 2:34 am    Post subject: Fatal error: Reply with quote

New Install of 20040201 build. It finds my snmp, php and rrdtool, then I select the appropriate snmp version (UCD-SNMP) and then click final. I get the following error.

Fatal error: Call to undefined function: xml_parser_create() in /var/www/cacti-0.8.5/lib/xml.php on line 31

Nothing more...

Database created without any errors. Using php ver 4.1.2 (Docs say 4.1+)
Back to top
pbulteel
Cacti User


Joined: 05 Sep 2003
Posts: 150
Location: London

PostPosted: Mon Feb 02, 2004 12:11 pm    Post subject: Tried with 0.8.4 Reply with quote

And I got the same error 0.8.4!

Fatal error: Call to undefined function: xml_parser_create() in /var/www/cacti-0.8.4/lib/xml.php on line 31

I guess I'll have to find out what I'm missing... =(
Back to top
pbulteel
Cacti User


Joined: 05 Sep 2003
Posts: 150
Location: London

PostPosted: Sun Feb 08, 2004 6:13 pm    Post subject: Reply with quote

As you might guess... I Was missing php-xml support.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Help: Unstable Development Versions All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 



Powered by phpBB © 2001, 2005 phpBB Group