Making a script to graph uptime in %

Addons for Cacti and discussion about those addons

Moderators: Developers, Moderators

Post Reply
alvaro
Posts: 39
Joined: Wed Mar 23, 2005 8:18 am

Making a script to graph uptime in %

Post by alvaro »

Hello All,

I'm trying to do an script, but i have some questions.
Someone can help me ?

The script will execute a 'SELECT description, availability FROM host' in cacti database, and mysql will return theses values.

e.g: DESCRIPTION: XYZ AVAILABILITY: 30%

My doubt is how to build an graph template to display these data outputed.

Thanks for any help and my apologizes for my bad english.

Al.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please have a look at http://forums.cacti.net/viewtopic.php?t=9272; you'll find my first php script that fetches data from mysql. You will have to adjust the select statement. A guide to create a new graph template can be found at http://www.cacti.net/downloads/docs/htm ... graph.html or at http://www.cacti.net/downloads/docs/htm ... _TEMPLATES
Reinhard
spoonman
Cacti User
Posts: 305
Joined: Tue May 03, 2005 8:54 am
Location: GA

Post by spoonman »

Did you get the script complete?? Can you post?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

spoonman wrote:Did you get the script complete?? Can you post?
Of course, it's part of the first linked topic
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests