Ad Widget

Collapse

PerfCounter syntax question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RichardCA
    Junior Member
    • Sep 2009
    • 18

    #1

    PerfCounter syntax question

    I am trying to fill in the gaps in Windows metrics, and make my Windows systems present data in a somewhat consistent format, compared to the Linux boxes.

    I need to know if I can do this:

    PerfCounter = net.if.in[eth0],"\Network Interface(Intel[R] PRO_1000 PL Network Connection - Wireless Intermediate Driver)\Bytes Received/sec",30
    PerfCounter = net.if.out[eth0],"\Network Interface(Intel[R] PRO_1000 PL Network Connection - Wireless Intermediate Driver)\Bytes Sent/sec",30

    That is, am I allowed to "overload" one of the pre-defined system parameters to get it to look consistent across linux, windows, etc?

    The thing that's confusing is that this appears to work, that is, I get values back when I test with the zabbix_get command, but it's not consistent. Or I will get something back from zabbix_get that looks good, but when I add the item to the Windows template I still get the "Not supported by ZABBIX agent" error.

    So I need to know what the "Right Way" to add in new metrics is in this case. Thanks.
  • RichardCA
    Junior Member
    • Sep 2009
    • 18

    #2
    Since no one's replied, what I've found is that the answer is no, you can't do that.

    Also, it's confusing how the metric[parameter] syntax works. It appears that if I try to define my own (new) metric, the bracket syntax will not work. It's only exposed if you're using a metric that's already supported by the source code.

    It seems logical that I could create a new metric and then take advantage of the bracket syntax when I create an item based on that metric. But if I can't that's OK too. I'm starting to get the hang of how Zabbix was designed and it all seems to make sense so far.

    Comment

    Working...