Banner plugin for Cacti PA2.x

General discussion about Plugins for Cacti

Moderators: Moderators, Developers

Post Reply
Author
Message
pepj
Cacti User
Posts: 324
Joined: Thu Sep 29, 2005 5:03 am
Location: switzerland

Banner plugin for Cacti PA2.x

#1 Post by pepj » Tue Sep 14, 2010 8:34 am

Banner version 0.32

Here a plugin to show a banner message / picture on the top of cacti
used for:
  • When some office are not together or for a another group and your want give a feed back
    "maintenance", "location X because of power outage", "don't panic we are working on this problem".
    something else.
features:
  • showing at a date/time.
    changing the banner by clicking on the banner (user with rights) or under "Configuration Settings/Misc"
    add a picture in the banner
    scrolling the banner
    banner color background
    color text, Fontsize
    active deactive the banner
    when text is empty the banner is hidden
Install:
copy, active the plugin .. finished ...
(no more need to change PHP files)

screenshots:
http://docs.cacti.net/_media/userplugin ... ache=cache

history:
2010 converting PA2.x
2005 creation
Attachments
bannerv0.32.zip
v0.32
correction error about color
(26.93 KiB) Downloaded 361 times
bannerv0.31.zip
v0.31
add date-time parameter
(26.92 KiB) Downloaded 138 times
Last edited by pepj on Sat Oct 02, 2010 2:16 am, edited 1 time in total.
Jean-Michel
cacti 0.8.7e | cmd & cactid (cactid 0.8.x) | Linux | MySQL Ver 14.7 Distrib 4.1.12, for Win32 | PHP v5.2.6 | Apache v2.x | Thold | Plugin Architecture | plugin "configuration manager" http://cactiusers.org/forums/topic257.html | plugin "IP subnet calculator IPv4 / IPV6" http://forums.cacti.net/viewtopic.php?t=15428 | plugin banner http://docs.cacti.net/userplugin:banner | Net-SNMP 5.5.2 | cygwin 1.5.18 of 02.07.2005

Shmegles
Cacti User
Posts: 64
Joined: Fri Oct 05, 2007 4:14 pm
Location: Seattle, WA, USA

Re: Banner plugin for Cacti PA2.x

#2 Post by Shmegles » Fri Oct 01, 2010 10:34 am

One error which I came across...things work fine without correcting the error; however, a message does appear in logs.

In ...banner/includes/settings.php, colors are accurately defined as:

...
$banner_colorbg['blue'] = "blue";
$banner_colorbg['red'] = "red";
$banner_colorbg['orange'] = "orange";
$banner_colorbg['black'] = "black";
$banner_colorbg['gray'] = "gray";
$banner_colorbg['maroon'] = "maroon";
...
(notice the addition of single-quotes in the brackets)

My php skills are not enough to modify the version of the plugin with the changes...will someone tackle this for me?

pepj
Cacti User
Posts: 324
Joined: Thu Sep 29, 2005 5:03 am
Location: switzerland

Re: Banner plugin for Cacti PA2.x

#3 Post by pepj » Sat Oct 02, 2010 1:50 am

Shmegles wrote:One error which I came across...things work fine without correcting the error; however, a message does appear in logs.

In ...banner/includes/settings.php, colors are accurately defined as:

...
$banner_colorbg['blue'] = "blue";
$banner_colorbg['red'] = "red";
$banner_colorbg['orange'] = "orange";
$banner_colorbg['black'] = "black";
$banner_colorbg['gray'] = "gray";
$banner_colorbg['maroon'] = "maroon";
...
(notice the addition of single-quotes in the brackets)

My php skills are not enough to modify the version of the plugin with the changes...will someone tackle this for me?
Sorry I forgot to post the correction. ... will do soon.
Jean-Michel
cacti 0.8.7e | cmd & cactid (cactid 0.8.x) | Linux | MySQL Ver 14.7 Distrib 4.1.12, for Win32 | PHP v5.2.6 | Apache v2.x | Thold | Plugin Architecture | plugin "configuration manager" http://cactiusers.org/forums/topic257.html | plugin "IP subnet calculator IPv4 / IPV6" http://forums.cacti.net/viewtopic.php?t=15428 | plugin banner http://docs.cacti.net/userplugin:banner | Net-SNMP 5.5.2 | cygwin 1.5.18 of 02.07.2005

pepj
Cacti User
Posts: 324
Joined: Thu Sep 29, 2005 5:03 am
Location: switzerland

Re: Banner plugin for Cacti PA2.x

#4 Post by pepj » Sat Oct 02, 2010 2:20 am

version 0.32 on the first post
Jean-Michel
cacti 0.8.7e | cmd & cactid (cactid 0.8.x) | Linux | MySQL Ver 14.7 Distrib 4.1.12, for Win32 | PHP v5.2.6 | Apache v2.x | Thold | Plugin Architecture | plugin "configuration manager" http://cactiusers.org/forums/topic257.html | plugin "IP subnet calculator IPv4 / IPV6" http://forums.cacti.net/viewtopic.php?t=15428 | plugin banner http://docs.cacti.net/userplugin:banner | Net-SNMP 5.5.2 | cygwin 1.5.18 of 02.07.2005

mitra
Posts: 11
Joined: Mon Jan 24, 2011 7:03 pm

Re: Banner plugin for Cacti PA2.x

#5 Post by mitra » Mon Feb 21, 2011 10:22 am

Hi
i cant seem to get this plugin going ...
0.32 - its in the plugin directory , but not shown in Plugin Management.
only see it in utilities --> Plugins (Current) .

any ideas ?

Cacti Version: 0.8.7g, Plugin Architecture Version: 2.8 , on Centos
Spring Convention

pauldolin
Posts: 7
Joined: Fri Aug 30, 2019 6:30 am

Re: Banner plugin for Cacti PA2.x

#6 Post by pauldolin » Fri Sep 06, 2019 6:43 am

pepj wrote:
Tue Sep 14, 2010 8:34 am
Banner version 0.32

Here a plugin to show a banner message / picture on the top of cacti
used for:
  • When some office are not together or for a another group and your want give a feed back
    "maintenance", "location X because of power outage", "don't panic we are working on this problem".
    something else.
features:
  • showing at a date/time.
    changing the banner by clicking on the banner (user with rights) or under "Configuration Settings/Misc"
    add a picture in the banner
    scrolling the banner
    banner color background
    color text, Fontsize
    active deactive the banner
    when text is empty the banner is hidden
Install:
copy, active the plugin .. finished ...
(no more need to change PHP files)

screenshots:
http://docs.cacti.net/_media/userplugin ... ache=cache

history:
2010 converting PA2.x
2005 creation

Thank you

Post Reply