|
|
| Author |
Message |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12604 Location: Muenster, Germany
|
Posted: Sat Mar 11, 2006 9:29 am Post subject: Time Shifter V0.3 including Day Shift Display |
|
|
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
| 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) |
| 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
|
Posted: Sat Mar 11, 2006 9:34 am Post subject: Using the patch |
|
|
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
| Description: |
How the daily shift display looks like
using start = 07:00
end = 18:00 |
|
| Filesize: |
72.1 KB |
| Viewed: |
13902 Time(s) |

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

|
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
|
Posted: Mon Mar 13, 2006 3:35 am Post subject: |
|
|
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
|
Posted: Mon Mar 13, 2006 1:11 pm Post subject: |
|
|
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
|
Posted: Thu Mar 16, 2006 2:06 pm Post subject: |
|
|
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
|
Posted: Wed May 17, 2006 10:07 am Post subject: |
|
|
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
|
Posted: Wed May 17, 2006 11:07 am Post subject: |
|
|
| 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
|
|
| Back to top |
|
 |
Decombej
Joined: 23 Jun 2006 Posts: 20 Location: Lyon, France
|
Posted: Wed Aug 23, 2006 4:30 am Post subject: |
|
|
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
|
Posted: Fri Sep 29, 2006 8:53 am Post subject: |
|
|
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
|
Posted: Fri Sep 29, 2006 11:49 am Post subject: |
|
|
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
|
Posted: Sun Oct 01, 2006 2:10 pm Post subject: |
|
|
I am missing the part where the red arrow is
| Description: |
|
| Filesize: |
21.46 KB |
| Viewed: |
11423 Time(s) |

|
|
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12604 Location: Muenster, Germany
|
Posted: Sun Oct 01, 2006 2:30 pm Post subject: |
|
|
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
|
Posted: Sun Oct 01, 2006 3:00 pm Post subject: |
|
|
| 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
|
Posted: Mon Oct 02, 2006 3:39 am Post subject: |
|
|
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 |
|
 |
|