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
Insert .swf (flash file) into a cacti plugin
Moderators: Developers, Moderators
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.
-
- Cacti User
- Posts: 97
- Joined: Thu Jul 24, 2008 11:21 am
- Location: Hallsville, TX
- Contact:
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.
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.
Who is online
Users browsing this forum: No registered users and 1 guest