Ad Widget

Collapse

enable/disable ports (switch) via zabbix?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Tux
    Junior Member
    • Jan 2010
    • 15

    #1

    enable/disable ports (switch) via zabbix?

    Hey guys,

    is there actually a way to enable/disable ports (like procurve switch) via zabbix (to set ifAdminStatus) ?

    I works with setsnmp...sure, but with zabbix frontend? I tried to use an own external script but it isn“t possible (with zabbix) to do some input in the internal popup window (like to choose an port and select the action).

    Any suggestions?
    Last edited by Tux; 09-02-2010, 00:09.
  • Tux
    Junior Member
    • Jan 2010
    • 15

    #2
    Hm...no one got a solution...

    Comment

    • danrog
      Senior Member
      • Sep 2009
      • 164

      #3
      You can probably extend the trigger page to include the details you want. We've done this to expand certain macros in the host URL. In the tr_status.php page, I've added the following in the item URL section to support macro's in trigger URLs.

      Code:
      $menu_trigger_url = 'null';
      if(!zbx_empty($trigger['url'])){
          $turl = $trigger['url'];
          if(zbx_strstr($turl, '{HOSTNAME}')){
                $turl = str_replace('{HOSTNAME}', $trigger['hosts'][0]['host'], $turl);
          }
          $menu_trigger_url = "['".S_URL."',\"javascript: window.location.href='".$turl."'\",
                  null, {'outer' : ['pum_o_item'],'inner' : ['pum_i_item']}]";
      }

      Comment

      Working...