Ad Widget

Collapse

Zabbix monitor SNMP (or WMI) Windows

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • killed
    Junior Member
    • Sep 2012
    • 14

    #1

    Zabbix monitor SNMP (or WMI) Windows

    Hi, I have a question for monitoring Windows

    If I use command to get memory in useage:
    Code:
    snmpwalk -v 1 -c public 192.168.1.20 .1.3.6.1.2.1.25.5.1.1.2
    Output:
    Code:
    HOST-RESOURCES-MIB::hrSWRunPerfMem.844 = INTEGER: 7264 KBytes
    HOST-RESOURCES-MIB::hrSWRunPerfMem.932 = INTEGER: 6640 KBytes
    HOST-RESOURCES-MIB::hrSWRunPerfMem.1076 = INTEGER: 9048 KBytes
    So, I need to sum all their by command
    Code:
    snmpwalk -v 1 -c public 192.168.1.20 .1.3.6.1.2.1.25.5.1.1.2 | awk '{print$4}' | awk '{ sum+=$1} END {print sum}'
    Output
    Code:
    715888
    So, How can I import that value to zabbix for monitor?

    I had heared WMI, but zabbix (2.0.3) doesn't support this function

    Thanks alot.
  • Speedfight
    Member
    • May 2007
    • 67

    #2
    did you try the windows templates?
    http://www.zabbix.com/wiki/templates/start

    here is a snmp wiki: http://www.zabbix.com/wiki/howto/monitor/snmp/snmp

    and how to add items and triggers:
    http://www.zabbix.com/documentation/...l/config/items

    Comment

    • Pada
      Senior Member
      • Apr 2012
      • 236

      #3
      I'd recommend using the Zabbix Agent for monitoring Windows. Just take note that the system.cpu.load Zabbix Agent item may not report accurate CPU usage in Windows if it runs in a VM!

      If you cannot install the Zabbix Agent, then I have a very basic Zabbix template that you can use for monitoring Windows via SNMP: Template: Windows SNMP
      This basic template monitors: CPU Cores 1 - 4, Total Physical Memory, Virtual Memory & Disk Usage, and some basic host info.
      Please take note that I don't have any meaningful triggers in this template. I'm not monitoring any production servers with it. All our servers that hosts critical services are monitored via the Zabbix Agent.

      You can really monitor lots of things with the Zabbix Agent using the perf_counter item. For example monitoring the Page File Usage %: "perf_counter[\Paging File(_Total)\% Usage]"
      You can read more about it here: http://www.zabbix.com/documentation/...mance_counters

      Comment

      Working...