Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Time Shifter V0.3 including Day Shift Display
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Addons for Cacti
Author Message
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12604
Location: Muenster, Germany

PostPosted: Sat Mar 11, 2006 9:29 am    Post subject: Time Shifter V0.3 including Day Shift Display Reply with quote

Please find code based on cacti 0.8.6i here: http://forums.cacti.net/viewtopic.php?t=16639
Due to a forums question I decided to add another Preset for the Graphs Display. See [revisited] Time Shifter V0.2 as a reference.
Please find attached a patch (based on current cacti 0.8.6h svn) and a full files version (gzipped tar). Installation instructions are the same as in the link referenced above. Please use ONE of those installation methods!

Reinhard



cacti_patch_time_shifter3.patch
 Description:
copy to cacti directory and install using
patch -p1 < cacti_patch_time_shifter3.patch

(patch minus p one)

Download
 Filename:  cacti_patch_time_shifter3.patch
 Filesize:  103 KB
 Downloaded:  631 Time(s)


cacti_patch_time_shifter3.tar.gz
 Description:
copy to cacti directory
Install using
tar -zxvf cacti_patch_time_shifter3.tar.gz

Download
 Filename:  cacti_patch_time_shifter3.tar.gz
 Filesize:  12.2 KB
 Downloaded:  596 Time(s)



Last edited by gandalf on Thu Oct 12, 2006 10:02 am; edited 1 time in total
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12604
Location: Muenster, Germany

PostPosted: Sat Mar 11, 2006 9:34 am    Post subject: Using the patch Reply with quote

Please find all usage instructions in the link mentioned above.
Additional instructions:

User defined daily shift times are defined using Graph -> Settings (see image below).

To use the Day Shift display, select this value from the Preset dropdown as shown in the images below

happy cactiing
Reinhard



tree-view.png
 Description:
How the daily shift display looks like
using start = 07:00
end = 18:00
 Filesize:  72.1 KB
 Viewed:  13902 Time(s)

tree-view.png



settings.png
 Description:
How to define user-specific shift times
start = 07:00
end = 18:00
 Filesize:  57.15 KB
 Viewed:  13903 Time(s)

settings.png




Last edited by gandalf on Sat Apr 08, 2006 8:05 am; edited 1 time in total
Back to top
fmangeant
Cacti Guru User


Joined: 19 Sep 2003
Posts: 2325
Location: Sophia-Antipolis, France

PostPosted: Mon Mar 13, 2006 3:35 am    Post subject: Reply with quote

Many thanks for the "day shift display" feature.

The archive seems to be missing the include/html/* and images/* files
I've taken them from the 0.2 archive, and it seems to work.
Back to top
knobdy
Cacti User


Joined: 28 Sep 2005
Posts: 495

PostPosted: Mon Mar 13, 2006 1:11 pm    Post subject: Reply with quote

I just copied over the files - bye-bye plugins... simple way to bring them back ?

Going to restore the files for now, but would like to update this plugin....
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12604
Location: Muenster, Germany

PostPosted: Thu Mar 16, 2006 2:06 pm    Post subject: Reply with quote

Yes, I' ashamed.
Made my plugins arch work lately and just trying to figure out how it works.

I would recommend the patches for all users that already changed their code.

Reinhard
Back to top
chewbacca156



Joined: 04 Apr 2006
Posts: 24

PostPosted: Wed May 17, 2006 10:07 am    Post subject: Reply with quote

Not sure of what this patch is doing...

For example, can I graph last month activity only during the business hours (7h30-20h) to ignore the night activity ?

If yes, how ?
(i already installed the patch, it seems to work but not sure it is graphing what i want...)

Thanks for help.
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12604
Location: Muenster, Germany

PostPosted: Wed May 17, 2006 11:07 am    Post subject: Reply with quote

chewbacca156 wrote:
Not sure of what this patch is doing...

For example, can I graph last month activity only during the business hours (7h30-20h) to ignore the night activity ?

If yes, how ?
(i already installed the patch, it seems to work but not sure it is graphing what i want...)

Thanks for help.
This patch will display the time between "shift start" and "shift end" for the day chosen only.
The feature you asked for was already requested. But to be honest: currently, I don't know how to implement this with pure rrdtool. You may ask for help in the rrdtool mailing list. If you have the rrdtool graph statement, I would look forward to implement this for cacti
Reinhard
Back to top
gilles
Cacti User


Joined: 12 Jul 2005
Posts: 216

PostPosted: Wed Aug 16, 2006 3:10 pm    Post subject: Reply with quote

this is for those who have cacti 0.8.6h and plugin architecture 0.9

http://gilles.boulon.free.fr/timeshifter/0.3_complete_for_0.8.6h_and_plugin_arch_0.9.rar
Back to top
Decombej



Joined: 23 Jun 2006
Posts: 20
Location: Lyon, France

PostPosted: Wed Aug 23, 2006 4:30 am    Post subject: Reply with quote

Great Add-on!
it really make time navigation simpler
Back to top
egarnel
Cacti Pro User


Joined: 21 Nov 2002
Posts: 630
Location: Austin, TX

PostPosted: Fri Sep 29, 2006 8:53 am    Post subject: Reply with quote

Oooh.... I am so close. I pulled down the rar and backed up all the config files and then copied the new config & incl files to cacti dir/include , copied the gifs to cacti dir/images and time.php to cacti dir/

I can adust the time shifter settings under graph settings. I see the "Day shift" in the presets: pull down but I do not see the pulldown to the right where the time shift variables are...

Can someone please help me with the last piece of the puzzle..

Thanks
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12604
Location: Muenster, Germany

PostPosted: Fri Sep 29, 2006 11:49 am    Post subject: Reply with quote

A little screenshot, please. I suppose I've missed your point
Reinhard
Back to top
egarnel
Cacti Pro User


Joined: 21 Nov 2002
Posts: 630
Location: Austin, TX

PostPosted: Sun Oct 01, 2006 2:10 pm    Post subject: Reply with quote

I am missing the part where the red arrow is


dayshift.jpg
 Description:
 Filesize:  21.46 KB
 Viewed:  11423 Time(s)

dayshift.jpg


Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12604
Location: Muenster, Germany

PostPosted: Sun Oct 01, 2006 2:30 pm    Post subject: Reply with quote

Oops, I suppose you've used the "plugin". Please ask gilles for it. In the original "distribution", this was part of some "inc...html" file.
Reinhard
Back to top
egarnel
Cacti Pro User


Joined: 21 Nov 2002
Posts: 630
Location: Austin, TX

PostPosted: Sun Oct 01, 2006 3:00 pm    Post subject: Reply with quote

lvm wrote:
Oops, I suppose you've used the "plugin". Please ask gilles for it. In the original "distribution", this was part of some "inc...html" file.
Reinhard


I guess the rar file from Gilles was not the plugin?
Back to top
gilles
Cacti User


Joined: 12 Jul 2005
Posts: 216

PostPosted: Mon Oct 02, 2006 3:39 am    Post subject: Reply with quote

in fact, this is not a plugin

the files i have patched works if you have cacti 0.8.6h and plugin architecture 0.9
i have done this because i can't patch on windows (i always have errors with gnu tools for win32)
patching at the hand was a pain

...
egarnel wrote:
and time.php to cacti dir/


time.php go to cacti dir / lib
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Addons for Cacti All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 



Powered by phpBB © 2001, 2005 phpBB Group