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    


[SOLVED] Creating stand alone values CPU,packetloss,latency?
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map)
Author Message
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2036
Location: United Kingdom

PostPosted: Fri Jun 20, 2008 6:07 am    Post subject: Reply with quote

Lonlie wrote:
Hello,

I read all messages, but i have a problem with the CPU. I don't konw how do you do to recover this. I wrote :

NODE test
LABEL {node:this:name} %
TARGET C:/Apache2.2/htdocs/cacti/rra/lol_traffic_in_36.rrd
POSITION 212 399

I don't know for "name" what I should write.


It is ALWAYS {node:this:bandwidth_in} or {node:this:bandwidth_out} or {node:this:inpercent} or {node:this:outpercent} - depending on if you want the value or percentage, and in or out.

It looks like you are looking at an interface traffic rrd file though.
Back to top
Lonlie



Joined: 05 Jun 2008
Posts: 23
Location: France

PostPosted: Fri Jun 20, 2008 7:14 am    Post subject: Reply with quote

Sorry, I took a bad example ...

NODE test
LABEL {node:this:name} %
TARGET C:/Apache2.2/htdocs/cacti/rra/cool_cpu_54.rrd
POSITION 212 399

Must I do use bandwidth_in, bandwidth_out ... too ?
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2036
Location: United Kingdom

PostPosted: Fri Jun 20, 2008 7:27 am    Post subject: Reply with quote

Lonlie wrote:
Sorry, I took a bad example ...

NODE test
LABEL {node:this:name} %
TARGET C:/Apache2.2/htdocs/cacti/rra/cool_cpu_54.rrd
POSITION 212 399

Must I do use bandwidth_in, bandwidth_out ... too ?


howie wrote:

ALWAYS




You change the DS name in the TARGET, but the {} part will always be bandwidth_in or bandwidth_out etc as above.

If you check the cacti.log, you will see errors from WEATHERMAP if the DS name is incorrect, along with a list of valid DS names.
Back to top
Lonlie



Joined: 05 Jun 2008
Posts: 23
Location: France

PostPosted: Fri Jun 20, 2008 10:27 am    Post subject: Reply with quote

Thanks, I understood !

I wrote :

NODE test
LABEL {node:this:outpercent:%k} %
TARGET C:/Apache2.2/htdocs/cacti/rra/cool_cpu_55.rrd:-:cpu
POSITION 53 274

In result, I have a number like this : 143.47

But the percent should be between 0 and 100 !
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2036
Location: United Kingdom

PostPosted: Fri Jun 20, 2008 10:37 am    Post subject: Reply with quote

Lonlie wrote:
Thanks, I understood !

I wrote :

NODE test
LABEL {node:this:outpercent:%k} %
TARGET C:/Apache2.2/htdocs/cacti/rra/cool_cpu_55.rrd:-:cpu
POSITION 53 274

In result, I have a number like this : 143.47

But the percent should be between 0 and 100 !


I agree

If you run with DEBUG logging turned on for one poller cycle, then look in cacti.log, you should see some lines like:
RRD ReadData returning [...]

that should tell you what weathermap is reading from the rrd file. I guess it's possible that for a dual core CPU, you get a number from 0 to 200%...

If that's what is going on, then you should add
MAXVALUE 200
to the node, so the percentage is calculated with 100% as the value 200 (if you see what I mean).
Back to top
Lonlie



Joined: 05 Jun 2008
Posts: 23
Location: France

PostPosted: Fri Jun 20, 2008 10:44 am    Post subject: Reply with quote

I see what you mean. And I have a dual core CPU .
But I have one .rrd for each CPU ...
Back to top
Lonlie



Joined: 05 Jun 2008
Posts: 23
Location: France

PostPosted: Mon Jun 23, 2008 3:34 am    Post subject: Reply with quote

I used an other computer (Amd Sempron), and for the Cpu, I had 756 !
I verified, and I used the good file. Then, I opened the .rrd file with RRD Editor, and the values don't jibed with the values in weathermap ... In the file, I had the good values I think. For example :
9,2000000000E+01
9,2000000000E+01
9,3680000000E+01
9,5000000000E+01

I looked on the graph, and it's the good values.
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2036
Location: United Kingdom

PostPosted: Mon Jun 23, 2008 3:40 am    Post subject: Reply with quote

Lonlie wrote:
I used an other computer (Amd Sempron), and for the Cpu, I had 756 !
I verified, and I used the good file. Then, I opened the .rrd file with RRD Editor, and the values don't jibed with the values in weathermap ... In the file, I had the good values I think. For example :
9,2000000000E+01
9,2000000000E+01
9,3680000000E+01
9,5000000000E+01

I looked on the graph, and it's the good values.


Oh wait... add gauge: to the front of the TARGET - by default it multiplies by 8, because it assumes you have a byte-counter value, and you want bits/sec.

So that's:
TARGET gauge:C:/Apache2.2/htdocs/cacti/rra/cool_cpu_55.rrd:-:cpu
Back to top
Lonlie



Joined: 05 Jun 2008
Posts: 23
Location: France

PostPosted: Mon Jun 23, 2008 4:04 am    Post subject: Reply with quote

Thanks a lot !
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map) All times are GMT - 5 Hours
Goto page Previous  1, 2, 3
Page 3 of 3

 



Powered by phpBB © 2001, 2005 phpBB Group