Ad Widget

Collapse

Zabbix Frontend 4.0.X : value "Allow manual close" by default in create trigger form

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rodeur2080
    Junior Member
    • Nov 2019
    • 9

    #1

    Zabbix Frontend 4.0.X : value "Allow manual close" by default in create trigger form

    Hello everyone,

    I want to put the box "Allow manual close" checked by default on create trigger form.
    I saw in the file include/schema.inc.php

    'triggers' => [
    ...
    'manual_close' => [
    'null' => false,
    'type' => DB::FIELD_TYPE_INT,
    'length' => 10,
    'default' => '0',
    ],
    And in file include/define.inc.php

    define('ZBX_TRIGGER_MANUAL_CLOSE_NOT_ALLOWED', 0);
    define('ZBX_TRIGGER_MANUAL_CLOSE_ALLOWED', 1);

    Il try to set default value to 1 (in schema.inc.php) but not working.

    How to do ?

    Thank in advance.

    Regards,
  • lakeland
    Junior Member
    • Nov 2019
    • 12

    #2
    It's not here.
    You should edit zabbix/triggers.php and zabbix/trigger_prototypes.php
    //'manual_close' => getRequest('manual_close', ZBX_TRIGGER_MANUAL_CLOSE_NOT_ALLOWED)
    'manual_close' => getRequest('manual_close', ZBX_TRIGGER_MANUAL_CLOSE_ALLOWED)

    Comment

    • rodeur2080
      Junior Member
      • Nov 2019
      • 9

      #3
      Hi,

      Thank for you reply but not work. :/

      I change file triggers.php (line 246) and trigger_prototypes.php (line 197) as you indicated.

      Regards

      Comment

      • lakeland
        Junior Member
        • Nov 2019
        • 12

        #4
        Originally posted by rodeur2080
        Hi,

        Thank for you reply but not work. :/

        I change file triggers.php (line 246) and trigger_prototypes.php (line 197) as you indicated.

        Regards
        You should edit triggers.php (line 663) and trigger_prototypes.php(line 570)
        not line 246 and line 197

        Comment

        • rodeur2080
          Junior Member
          • Nov 2019
          • 9

          #5
          We do not have the same version of the file. Could you give me the complete lines please?

          Comment

          Working...