Ad Widget

Collapse

"Generic" Perfmon Counters for Network Interfaces

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mpureka
    Junior Member
    • Apr 2011
    • 28

    #1

    "Generic" Perfmon Counters for Network Interfaces

    I'm in the middle of setting up templates for my various server types in Zabbix, and I've run into a bit of a snag with perfmon configuration.

    To wit, if I have a template such as "Web Servers" that template may be applied to a number of systems that may NOT be 100% identical hardware. This means that they might have different network cards, which means differently named performance counters.

    One box might need to use:

    perf_counter[\Network(NicCardX)\Bytes Sent/sec]

    While another might need to use:

    perf_counter[\Network(NicCardZ)\Bytes Sent/sec]

    Is there any way to tell Zabbix to query each instance of a perfmon counter or something similar? (This would also be handy for servers that have different sets of logical disk configurations.) Just doing:

    perf_counter[\Network\Bytes Sent/sec]

    Doesn't seem to work. =/

    I can't believe I'm the only one who's ever run into this sort of issue...
  • pcamelio
    Member
    • Jul 2005
    • 67

    #2
    I guess using macro can achived this problem

    Server one:
    ${NICCARD}=NicCardX

    Server two
    ${NICCARD}=NicCardY

    Template

    perf_counter[\Network(${NICCAR})\Bytes Sent/sec]


    Some Zbx Certifed guys would confirm that, I hope

    Therefore the other way, is to define a PerfCounter / UserPArameter in the in the zabbix_agentd.conf with the same item but which is specific to the host it is defined on.

    For example:
    Server one:
    PerfCounter = NetIn,"\Network(NicCardX)\Bytes Received/sec",60

    Server two:
    PerfCounter = NetIn,"\Network(NicCardY)\Bytes Received/sec",60

    Hope this help

    Comment

    • mpureka
      Junior Member
      • Apr 2011
      • 28

      #3
      Thanks! It looks like I should be able to set a Macro on each host with the name of the NIC card, and that should take care of this issue. Not entirely elegant, but does the job well enough.

      Comment

      • mander
        Junior Member
        • Apr 2016
        • 3

        #4
        If i may be forgiven for necromancing this thread:

        I had the same issue, this long dead thread was my only resource. I wound up solving it within my application. If your environment gives you a means of grabbing all the data for each NIC card that's installed on your hardware, then you can sum all the BytesSent or BytesReceived data and expose the result to Zabbix. I did this in c# with the NetworkInterface.GetAllNetworkInterfaces() array but it ought to work just as well with whatever you get in java.

        Comment

        • SaraJennifer
          Junior Member
          • Dec 2020
          • 2

          #5
          I have found the NIC that I need to screen, and it shows bitrate on different interfaces, however the outbound on the NIC I need to screen just at any point shows tops and not a smooth bend of complete bitrate. My organization group reveals to me that the complete is topping at over 3Gb/s, however Zabbix just shows me a top at 150Mb/s.

          Any thoughts on the most proficient method to show normal bitrate moved?
          Last edited by SaraJennifer; 16-07-2021, 19:03.

          Comment

          Working...