Ad Widget

Collapse

Setting start time and period for a Graph

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • misterdan
    Junior Member
    • Dec 2004
    • 20

    #1

    Setting start time and period for a Graph

    Hi all.

    I have been using Zabbix now for around 6 months and have convinced the company to use it for most of our monitoring needs.

    However, something still niggles me about the software and that is that in the GRAPHS area the custom start time box (yyyymmddhhmm) doesn't seem to work properly. To explain, if at say 14:30 in the afternoon I go to one of my custom graphs and fill in the start time box (under the bold 'Keep period' area of the GRAPHS screen) with for example '200412070900' and click 'go', the graph displays incorrectly. What I actually get is a start time of 0900, which is great, but the actual line on the graph stops at around 11.15am, when I know that there is data beyond this time. I have tried changing the period by clicking the links at the bottom of the graph but always get the same result.

    If I try to get a period starting at 9am on the previous day's graphs however, they display no problem. I need to be able to get the start time and period on the same day because my boss likes to see them in the afternoon!

    The frustrating thing is that no one else seems to have this problem, but it would really help me to have a solution as I could do with using custom graphs rather than those in LATEST VALUES.

    Please could anyone help? Does anyone else have the same problem? Is it perhaps to do with the fact that the database table used to generate these historical graphs isn't updated until a set time after the data has been collected live?

    I'd appreciate any thoughts..
    Attached Files
    Last edited by misterdan; 07-12-2004, 17:14.
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    I believe the issue is already fixed in 1.1 alphas. At least, I remember that I've spend some time investigating this. Let me know if it's really critical for you, so I coud prepare a patch for 1.0.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • misterdan
      Junior Member
      • Dec 2004
      • 20

      #3
      Zabbix 1.0 patch for graph start time issue...

      Hi Alexei

      I would really really appreciate a fix for this issue for Zabbix 1.0 as although at some point we will be moving to 1.1, we will be with 1.0 for a while yet.

      It would help me a great deal to produce graphs that my IT Director can understand better - we have to make it simple!

      Thanks for the offer,

      Dan

      Comment

      • misterdan
        Junior Member
        • Dec 2004
        • 20

        #4
        Any progress on this Alexei?

        Have you managed to incorporate this fix in to a Zabbix 1.0 patch yet Alexei?

        Thanks.

        Comment

        • Alexei
          Founder, CEO
          Zabbix Certified Trainer
          Zabbix Certified SpecialistZabbix Certified Professional
          • Sep 2004
          • 5654

          #5
          Apologies for the delay.

          Here is the fix. Edit file classes.inc.php (comment one line, add one line):

          ...
          function selectData()
          {
          $now = time(NULL);
          if(isset($this->stime))
          {
          # $this->to_time=$this->stime+24*3600;
          $this->to_time=$this->stime+$this->period;
          $this->from_time=$this->stime;
          }
          ...
          Alexei Vladishev
          Creator of Zabbix, Product manager
          New York | Tokyo | Riga
          My Twitter

          Comment

          Working...