jjmartres / Zabbix

A great collection of Zabbix scripts and templates
GNU General Public License v2.0
881 stars 585 forks source link

Windows Envmonitor Not Supported by Zabbix 2.2.1 #38

Open tmmfcs opened 10 years ago

tmmfcs commented 10 years ago

Having a issue with zbx_windows_envmon with the template. When it is calling a vbs script from zabbix 2.2.1 it is giving a not supported error in the items list.

Is the template not supported in the 2.2 version?

Or did I miss something?

TM

KeithGraber commented 10 years ago

Hi tmmfcs

I just installed these scripts on my 2.2.2 box.

I had to update a couple of lines in my zabbix_agentd.win.conf file. In particular in the system.discovery[] and quota[] entries. I had to insert a * between the [], so they became system.discovery[] and quota[] (the agent.log reported "cannot add user parameter ... and would not start the agent service)

Depending on which OS you are running the agent from, some of the items might need to be tweaked.

I'm running on Windows Server 2003. It appears that the template was written for newer versions of Windows OS because some of the Items are asking for performance counters that seem to be on 2008 and newer, but not 2003. For example "CPU Usage" queries perf_counter["\1848(_Total)\1850 "](1848 is) which exist on my Windows 7 box, but are unsupported on Windows 2003.

I disabled the "server.roles" because it reports "C:\Zabbix\Scripts\zabbix_server_role.vbs(4, 1) (null): 0x80041010" instead of any of the roles the server has.

I'm also having issues with the "zabbix_user_domain.vbs" script... it works on the agent box but "
%USERDOMAIN%" is what is reported on the Zabbix server.

Hope this helps!

tmmfcs commented 10 years ago

Okay good that worked on adding the * to the config file. Also I had to increase the listeners to the config so that the zabbix server could connect.

tmmfcs commented 10 years ago

Oh and I am using it with server 2008.

tmmfcs commented 10 years ago

The other issue that I am seeing is that on the windows events will come across for some servers but not others. Do you know where to look to find a resolution for that issue?

tmmfcs commented 10 years ago

One other note I noticed that the interface monitor doesn't work with this template on the windows server 2008 servers.

So I copied the Interface Discovery from the "Template OS Windows" that was pre installed on the zabbix install then it started to getting the interface traffic.

Otherwise I really like this template.