New plugin: Timeshift (v0.1)

Announcements concerning Plugins for Cacti

Moderators: Moderators, Developers

Author
Message
jet755
Posts: 19
Joined: Fri Oct 28, 2011 8:50 pm

Re: New plugin: Timeshift (v0.1)

#16 Post by jet755 » Mon Nov 21, 2011 8:08 pm

lines in my global.php

141 header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
142 header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
143 header("Cache-Control: no-store, no-cache, must-revalidate");
144 header("Cache-Control: post-check=0, pre-check=0", false);
145 header("Pragma: no-cache");
146
147 /* prevent IE from silently rejects cookies sent from third party sites. */
148 header('P3P: CP="CAO PSA OUR"');
149
150 /* initilize php session */
151 session_name($cacti_session_name);
152 session_start();

rvd
Posts: 34
Joined: Wed Nov 21, 2007 10:09 am
Location: France

Re: New plugin: Timeshift (v0.1)

#17 Post by rvd » Tue Nov 22, 2011 1:07 am

I understand where this error comes from but not why it is displayed.
Are you sure about ~E_WARNING in php.ini ? It should prevent from displaying warnings...

rvd
Posts: 34
Joined: Wed Nov 21, 2007 10:09 am
Location: France

Re: New plugin: Timeshift (v0.1)

#18 Post by rvd » Tue Nov 22, 2011 2:34 am

jet755,
have you tried too
display_errors = Off
in your php.ini ?

jet755
Posts: 19
Joined: Fri Oct 28, 2011 8:50 pm

Re: New plugin: Timeshift (v0.1)

#19 Post by jet755 » Tue Nov 22, 2011 5:48 am

rvd wrote:I understand where this error comes from but not why it is displayed.
Are you sure about ~E_WARNING in php.ini ? It should prevent from displaying warnings...
Yes, sure.

jet755
Posts: 19
Joined: Fri Oct 28, 2011 8:50 pm

Re: New plugin: Timeshift (v0.1)

#20 Post by jet755 » Tue Nov 22, 2011 5:50 am

rvd wrote:jet755,
have you tried too
display_errors = Off
in your php.ini ?
THANKS!
The warning output are avoided.

jet755
Posts: 19
Joined: Fri Oct 28, 2011 8:50 pm

Re: New plugin: Timeshift (v0.1)

#21 Post by jet755 » Tue Nov 22, 2011 6:12 am

BTW, I found the 4 tab png images use 16.7M colors. Other plugin images use 256 colors.

When I use cacti on a remote-controlled PC (mstsc or UltraVNC), the background color of the Timeshift tab looks a little different from other tabs.

rvd
Posts: 34
Joined: Wed Nov 21, 2007 10:09 am
Location: France

Re: New plugin: Timeshift (v0.1)

#22 Post by rvd » Tue Nov 22, 2011 9:22 am

jet755 wrote:BTW, I found the 4 tab png images use 16.7M colors. Other plugin images use 256 colors.

When I use cacti on a remote-controlled PC (mstsc or UltraVNC), the background color of the Timeshift tab looks a little different from other tabs.
Try and replace files in $CACTI/plugins/timeshift/images with attached ones (removing _256 in their names)
Attachments
tab_timeshift_256.png
tab_timeshift_256.png (2.38 KiB) Viewed 2450 times
s_tab_timeshift_down_256.png
s_tab_timeshift_down_256.png (1.83 KiB) Viewed 2450 times
s_tab_timeshift_256.png
s_tab_timeshift_256.png (1.92 KiB) Viewed 2450 times
tab_timeshift_down_256.png
tab_timeshift_down_256.png (2.26 KiB) Viewed 2450 times

jet755
Posts: 19
Joined: Fri Oct 28, 2011 8:50 pm

Re: New plugin: Timeshift (v0.1)

#23 Post by jet755 » Tue Nov 22, 2011 8:22 pm

Perfect! THANK YOU!

rvd
Posts: 34
Joined: Wed Nov 21, 2007 10:09 am
Location: France

Re: New plugin: Timeshift (v0.1)

#24 Post by rvd » Mon Jan 07, 2013 3:12 am

New version 0.1.1 includes 256 colors tabs in images directory and modification in setup.php about function timeshift_draw_navigation_text which was not returning $nav as expected.
see http://docs.cacti.net/userplugin:timeshift#timeshift
Thank you Elias !

Post Reply