Data template problem (probably)

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

Moderators: Developers, Moderators

Post Reply
Polo
Posts: 8
Joined: Fri May 05, 2006 9:22 am

Data template problem (probably)

Post by Polo »

Hi iam trying to graph my own script.
the script returns
FreeSpace:1398157312 Size:41955602432

i created Data Input Method my_free_disk_space_auth (picture)
the vbs script, data template and graph template.

i dont know why, but the graph is not showing anything. I spent almost a day on that so now i gave up.

I believe that everything is properly, but it doesnt work :-(

Thanks for help.
Attachments
cacti_data_template_my_free_disk_space_auth_template.xml
data template
(5.23 KiB) Downloaded 47 times
cacti_graph_template_test2.xml
graph template
(9.11 KiB) Downloaded 57 times
my_free_disk_space_auth.vbs.txt
vbs script
(911 Bytes) Downloaded 35 times
Last edited by Polo on Mon Feb 01, 2010 11:23 am, edited 1 time in total.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

The answer is right in front of you ;)

Update RRA is not checked on your output fields!
Polo
Posts: 8
Joined: Fri May 05, 2006 9:22 am

Post by Polo »

Hi thanks for reply,
those fields were unchecked becouse before i posted to this forum i was trying desperadly almost everything. :-/

I think there is also some problem in graph template (it was recreated) becouse it still doesnt show anything.

anyway!

I have one older template, witch i started with, that template shows only zeroes. At least it shows something. :evil:

i added also dump of rrd file, there are some data in it, so i suppose, that collecting data works.

Thanks for reply.
P.
Attachments
cacti_graph_template_my_disk_free_space_wmi.xml
original template showing zeros
(5.1 KiB) Downloaded 57 times
_freespace_207.txt
rrdtool dump datasource
(735.78 KiB) Downloaded 36 times
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

If you plan on using spine, you will also have to change the echo at the end of the file to a string concat as you have to output the entire buffer at once.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Polo
Posts: 8
Joined: Fri May 05, 2006 9:22 am

Post by Polo »

Hi thank you,
i am using poller.php in standard way.

P.
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Yes, well, by your answer, I can tell that you are new. Goto the main site and readup on Spine. Then, when you have more information, we can talk again.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Polo
Posts: 8
Joined: Fri May 05, 2006 9:22 am

Post by Polo »

Ok Guys, i solved the problem.

here are scripts and templates for graphing disk space using WMI from windows to windows and with authentification.

you probably goint to need this dll scriptpw.dll

P.
Attachments
my_free_disk_space_auth.vbs.txt
script
(942 Bytes) Downloaded 48 times
cacti_graph_template_my_-_available_disk_space_wmi.xml
template + input method
(15.26 KiB) Downloaded 48 times
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests