Help my to develop Http-get plugin

Discussions on developing plugins for the Cacti Plugin Architecture

Moderators: Developers, Moderators

Post Reply
DimmON
Posts: 14
Joined: Thu Apr 02, 2009 3:05 am

Help my to develop Http-get plugin

Post by DimmON »

It is necessary for me to develop the Http-get plugin which will do simple requests to web-pages.
I have written a PERL script which returns 1 if web-page response "200 OK" and returns 0 if web-page have another response or does not response yet.

How can I explain cacti how to work with this script and to draw the graphs?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please see 1st link of my sig. There's a chapter on creating own "Cacti" Data Input Methods
Reinhard
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Curl would be one of the ways to go on this. I guess the URL magic in newer PHP could do this quite well to.

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests