Ad Widget

Collapse

HowTo: Using performance counter with the win32 zappit_agent

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Wolfgang
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified Specialist
    • Apr 2005
    • 116

    #1

    HowTo: Using performance counter with the win32 zappit_agent

    Hello,

    to all wanting to monitor performance counter values on windows machines, here a quick howto that worked for me.
    (For testing i used Zabbix Version 1.1A7 on a server running Debian unstable and a Windows 2000 Prof. Client SP4)

    1.) On the client run perfmon and add the counter to see if it works nativly, so without zabbix.

    2.) On the client, open your zappit_agentd.conf and add perfmon values. Example:

    Code:
    PerfCounter= DiskRead5, "\LogicalDisk(_Total)\Disk Read Bytes/sec",5
    PerfCounter= DiskWrite5, "\LogicalDisk(_Total)\Disk Write Bytes/sec",5
    PerfCounter= Interrupts5, "\Processor(_Total)\Interrupts/sec",5
    3.) Add the items via the web-interface. Take the proper name for key as defined in the zabbix_agentd.conf.
    From the example above, you would use the following keys:
    DiskRead5, DiskWrite5, Interrupts5

    4.) Hint: When using examples from other sources, take care of the language of the windows os:
    Example (both monitors the same values)

    German windows:
    PerfCounter= DiskRead5, "\Physikalischer Datenträger(_Total)\Bytes gelesen/s",5
    PerfCounter= DiskWrite5, "\Physikalischer Datenträger(_Total)\Bytes geschrieben/s",5
    PerfCounter= Interrupts5, "\Prozessor(_Total)\Interrupts/s",5

    English windows:
    PerfCounter= DiskRead5, "\LogicalDisk(_Total)\Disk Read Bytes/sec",5
    PerfCounter= DiskWrite5, "\LogicalDisk(_Total)\Disk Write Bytes/sec",5
    PerfCounter= Interrupts5, "\Processor(_Total)\Interrupts/sec",5

    5.) On the Windows client restart the zabbix_agentd service.

    6.) To ensure all is working, have a look at the zabbix_server.log file on the zabbix server, usally in /tmp/.
    Here an example of a failure (in this case because the perfmon values had been set wrong):
    Code:
    030759:20050419:133815 Parameter [Interrupts5] is not supported by agent on host
     [saturn]
    030759:20050419:133910 Parameter [DiskRead5] is not supported by agent on host [
    saturn]
    030759:20050419:133930 Parameter [DiskWrite5] is not supported by agent on host
    [saturn]
    7.) In case of an error like mentioned in (6.) fix the problem and re-set the item to "monitored" in the item configuration!


    Hope that helps someone ;-)
    Last edited by Wolfgang; 19-04-2005, 14:47.
    http://www.intellitrend.de
    Specialised in monitoring large environments and Zabbix API programming.
  • Wolfgang
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified Specialist
    • Apr 2005
    • 116

    #2
    Basic Network traffic using perfmon

    Here an example of monitoring the networktraffic using a german windows 2000:
    (note that the device name will certainly be different on other machines):

    Code:
    PerfCounter= Lan1SendBytes5, "\Netzwerkschnittstelle(Intel DC21143 PCI Fast Ethernet Adapter)\Bytes gesendet/s",5
    PerfCounter= Lan1RecBytes5, "\Netzwerkschnittstelle(Intel DC21143 PCI Fast Ethernet Adapter)\Empfangene Bytes/s",5
    Last edited by Wolfgang; 19-04-2005, 20:26.
    http://www.intellitrend.de
    Specialised in monitoring large environments and Zabbix API programming.

    Comment

    Working...