Ad Widget

Collapse

Port description in the trigger

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Uri
    Junior Member
    • Feb 2011
    • 12

    #1

    Port description in the trigger

    Hi.
    I've got an interesting idea.
    Can i see a port description directly from the trigger in the dashboard?
    For example now I see an information such as:

    Code:
    Local node	SW-F12-111	FastEthernet0/14 down	Jan 21st, 2014 04:24:41 PM	1m 12d 23h	 	Yes (1)		1
    so I would like to see an information as :

    Code:
    Local node	SW-F12-111	FastEthernet0/14 - Link to router down	Jan 21st, 2014 04:24:41 PM	1m 12d 23h	 	Yes (1)		1
    , where "Link to router" is a description on the switch's port Fa0/14.

    If it's not possible, how I can use an external script to get Port description from the Scripts menu at triggers dashboard like this:

    Scripts
    Detect operating system
    Ping
    Traceroute
    Get port description -- a new script, which detect port desc.

    Any ideas?
  • Uri
    Junior Member
    • Feb 2011
    • 12

    #2
    Ooh, I'm sorry, please move this topic into the "Zabbix Help" forum..

    Comment

    • Uri
      Junior Member
      • Feb 2011
      • 12

      #3
      Ok. I'll try to describe my wishes more detailed.

      For example I have some active triggers:
      Code:
      SW-F12-111	GigabitEthernet0/9 down	Mar 6th, 2014 06:04:19 PM	4d 23h 17m	 	Yes (1)
      What I want:

      I would like to open the Script tab in the active trigger, click to execute some script and get ifAlias value in the new browser's window.

      What I did:

      I added the script, containing:
      Code:
      /usr/local/bin/snmpwalk -v2c -c {$SNMP_COMMUNITY} {HOST.CONN} {{HOST.HOST}:ifAlias[{#SNMPVALUE}].last(0)}
      but nothing happens. The empty window appears only.
      But if I put this code into the script:
      Code:
      /usr/local/bin/snmpwalk -v2c -c {$SNMP_COMMUNITY} ifAlias.10108
      where ifAlias is the Alias of some port, I get the result.

      Is it possible to get ifAlias via external script?

      Comment

      Working...