Insert .swf (flash file) into a cacti plugin

Discussions on developing plugins for the Cacti Plugin Architecture

Moderators: Developers, Moderators

Post Reply
lankienen
Cacti User
Posts: 60
Joined: Fri Feb 06, 2009 3:15 am
Location: Dublin

Insert .swf (flash file) into a cacti plugin

Post by lankienen »

Hi Devs!

Unfortunately, i didn't find anything useful about this issue...

I want to code a monitor plugin with only an up/down message and an event in flash.

When an event comes in action (host down), cacti should handover the up/down status to flash and on the map appears a new image.

Sounds simple but its hard todo.

So my first question for this is (i never coded a plugin before), is it possible to hand over php code to flash and insert this .swf into a new plugin tab in cacti?


Thanks
lankienen
lankienen
Cacti User
Posts: 60
Joined: Fri Feb 06, 2009 3:15 am
Location: Dublin

Post by lankienen »

Is development fallen asleep? :o

71 views...
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

I have never worked with flash, so I couldn't tell you. More than likely your flash is going to have to continuously pull the information, the server isn't going to be able to "push" the information to the flash object.
Last edited by cigamit on Sun Jul 26, 2009 3:50 am, edited 1 time in total.
spiffydudex
Cacti User
Posts: 97
Joined: Thu Jul 24, 2008 11:21 am
Location: Hallsville, TX
Contact:

Post by spiffydudex »

what you could do is have a PHP script that would poll for the data and output an XML file every 5 -20 seconds. Then have a flash output via standard HTML that would download and refresh the data every 5-20 seconds as per the settings.

Just a thought on how it could be done.

Don't think because it is a plugin that you have to code the PHP/HTML any different. The display output is not much different. The PA 2.x is just aded on in separate files to make for prettiness.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest