Ad Widget

Collapse

Change default values in Zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • XorroX
    Junior Member
    • May 2015
    • 8

    #1

    Change default values in Zabbix

    Hi Guys,

    We are using Zabbix 2.4.3.

    I am desperately searching for the way to change some default values:

    1. When creating a new host the value for "History storage period (in days)" should be set to 7 by default

    2. New graphs should automatically have ymin_type = fixed. Where can i change this?

    3. The "default message" and "recovery message" texts for actions should be changed

    Thank you for your help!
    Last edited by XorroX; 12-05-2015, 13:24.
  • BDiE8VNy
    Senior Member
    • Apr 2010
    • 680

    #2
    1) see getItemFormData() in forms.inc.php.

    2) see 'ymin_type' in graphs.php
    Code:
                    else {
                            $data['width'] = getRequest('width', 900);
                            $data['height'] = getRequest('height', 200);
                    }
     
                    $data['ymin_type'] = getRequest('ymin_type', GRAPH_YAXIS_TYPE_CALCULATED);
                    $data['ymax_type'] = getRequest('ymax_type', GRAPH_YAXIS_TYPE_CALCULATED);
                    $data['yaxismin'] = getRequest('yaxismin', 0);
                    $data['yaxismax'] = getRequest('yaxismax', 100);
                    $data['ymin_itemid'] = getRequest('ymin_itemid', 0);
                    $data['ymax_itemid'] = getRequest('ymax_itemid', 0);

    Comment

    • BDiE8VNy
      Senior Member
      • Apr 2010
      • 680

      #3
      Argh! Due to:

      Too many live links/images found in your post content. Please edit your post or contact the administrator.

      another post:

      3) See 'ACTION_DEFAULT_MSG_TRIGGER' in defines.inc.php. When wanting a different recovery message, then see 'ACTION_DEFAULT_MSG_TRIGGER' (used for 'r_longdata') in actionconf.php

      Comment

      • XorroX
        Junior Member
        • May 2015
        • 8

        #4
        Thanks Mate!

        Everything is working as it should

        Comment

        Working...