Ad Widget

Collapse

Viewing Graphs - Period Resets on Refresh

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JulianMummery
    Junior Member
    • Apr 2009
    • 4

    #1

    Viewing Graphs - Period Resets on Refresh

    Hi all,

    Has anyone managed to get around this problemo:-

    My default refresh rate for graphs is 30 seconds.

    I click on the calendar and change it to show me the last 3 days data.

    It shows me the data and then on the 30 second refresh just defaults the graph back to the original graph for the last 1 hours data :P

    I wish it would remember the last settings that I had changed it to.

    Does anyone know of a work around to get this working correctly?
  • BlackRabbit
    Junior Member
    • Apr 2009
    • 15

    #2
    Have the same issue + can't find an option to set a default period for graphs either.

    Comment

    • richlv
      Senior Member
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Oct 2005
      • 3112

      #3
      default graph period can be set in include/defines.inc.php - ZBX_PERIOD_DEFAULT variable
      Zabbix 3.0 Network Monitoring book

      Comment

      • zerg
        Member
        • Mar 2007
        • 61

        #4
        Originally posted by BlackRabbit
        Have the same issue + can't find an option to set a default period for graphs either.
        Here my solve:
        33c33
        < // define('ZBX_PAGE_DO_REFRESH', 1);
        ---
        > define('ZBX_PAGE_DO_REFRESH', 1);
        97c97,98
        < $_REQUEST['period'] = get_request('period',get_profile('web.graph.period ', ZBX_PERIOD_DEFAULT, PROFILE_TYPE_INT, $_REQUEST['graphid']));
        ---
        > $_REQUEST['period'] = get_request('period',get_profile('web.graph.period ', ZBX_PERIOD_DEFAULT, $_REQUEST['graphid']));
        >


        I think this is help you.

        Comment

        • neurovish
          Junior Member
          • Mar 2007
          • 14

          #5
          Originally posted by richlv
          default graph period can be set in include/defines.inc.php - ZBX_PERIOD_DEFAULT variable
          This variable is defined as ZBX_MIN_PERIOD, which is defined as 3600. The graph still refreshes every 30s (and resets the custom period).

          ...and after trying to find where to change this effectively, I see what you're referring to as the "graph period". Is there a way to stop the graph from refreshing?

          Comment

          • richlv
            Senior Member
            Zabbix Certified Trainer
            Zabbix Certified SpecialistZabbix Certified Professional
            • Oct 2005
            • 3112

            #6
            ahh, that's something different. see link 'profile' in the upper right corner ?
            options in there should be easy to understand
            Zabbix 3.0 Network Monitoring book

            Comment

            Working...