How to check that cacti collects correct data?

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
manahmanah
Posts: 11
Joined: Tue Mar 07, 2006 9:06 am

How to check that cacti collects correct data?

Post by manahmanah »

Hello,

I'm writing my own script & stuff to graph some data collected via HTML.
The function works much like the 'Unix - Get Free Disk Space'.
Now I think I have all templates in place, graph has been created, rrdtool says all is ok, but... values seem to be NaN.

How do I check what values are returned by my script, and that cacti is storing them correctly in the RRD/RRA ?

Thanks
GNU/Linux Debian sid 2.4.27-2-686-smp on Intel ISP2150
cacti 0.8.6h-2 | cacti-cactid 0.8.6g-2 | plugins: thold 0.2.7, mactrack
MySQL 5.0.18-7 | Apache 1.3.34-2 | PHP 4.4.2-1 | rrdtool 1.0.49-1 | perl 5.8.8-2
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Change the logging level to debug in Cacti.
manahmanah
Posts: 11
Joined: Tue Mar 07, 2006 9:06 am

Post by manahmanah »

Thank you BSOD2006,

I can see that my script is correctly working.

Actually I found the problem: I'm monitoring temperatures, and so I have numbers with decimals. I (temporarily) changed my script to provide integers and now graphs are working.
Next step is to find how to store/graph decimal numbers.
GNU/Linux Debian sid 2.4.27-2-686-smp on Intel ISP2150
cacti 0.8.6h-2 | cacti-cactid 0.8.6g-2 | plugins: thold 0.2.7, mactrack
MySQL 5.0.18-7 | Apache 1.3.34-2 | PHP 4.4.2-1 | rrdtool 1.0.49-1 | perl 5.8.8-2
manahmanah
Posts: 11
Joined: Tue Mar 07, 2006 9:06 am

Post by manahmanah »

Next step is to find how to store/graph decimal numbers
Reading a message in forum I modified my script so that it returns values multiplied by 100, and then a CDEF divides them back by 100.

Case solved :D
GNU/Linux Debian sid 2.4.27-2-686-smp on Intel ISP2150
cacti 0.8.6h-2 | cacti-cactid 0.8.6g-2 | plugins: thold 0.2.7, mactrack
MySQL 5.0.18-7 | Apache 1.3.34-2 | PHP 4.4.2-1 | rrdtool 1.0.49-1 | perl 5.8.8-2
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests