Ad Widget

Collapse

net.if.in[eth1,error] - Variable?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • five0va
    Junior Member
    • Mar 2015
    • 26

    #1

    net.if.in[eth1,error] - Variable?

    I'm setting up a new master template to monitor several MapR clusters, in this template I'm wanting to monitor network errors in CentOS 6... although later, I'm sure we're going to be upgrading to CentOS 7. I tried using the variable {$IFNAME}, but it didn't work. What did work was setting this to eth1 (what's in the title).

    I'm putting this Item in the Template under Items... does this belong under Item Prototype? If I'm putting this in the right place, how would I go about setting a variable (if there is a way) for the Ethernet devices?

    My worry is that once we roll to CentOS 7, everything will break as there's a new naming scheme being used.
    Last edited by five0va; 30-04-2015, 19:55. Reason: putting in SOLVED status.
  • five0va
    Junior Member
    • Mar 2015
    • 26

    #2
    I believe this was an initial fat finger on my part. Either way, the correct entry should be net.if.in[eth1,errors]. I was able to get it working with #IFNAME by putting an Item in Discovery.

    Template MapR > Discovery rules > Item prototypes > Create item prototype.

    Name is: Network RX Errors - $1
    Type: Zabbix agent
    Key: net.if.in[{#IFNAME},errors]
    Type of Information: Numeric (unsigned)
    Data type: Decimal

    Everything else is up to you. Hope this helps someone!

    Comment

    Working...