Semiadmin / zbx-win-agent-ping

Zabbix v4.4 template for ICMP ping test from the Zabbix Windows agent without any external scripts or user parameters.
3 stars 4 forks source link

the firs key to use discover only works if the agen can be reach with local ping #4

Open mckaygerhard opened 5 months ago

mckaygerhard commented 5 months ago

the template uses pre procesing discovery ( with formule return '{$PING_LIST}'.replace(/([^,]+)/g,'{"{#ADDR}":"$1"}').replace(/(.*)/,'[$1]') )

but this only works if you can execute icmpping[localhost] that is not a valid zabbix active agent key if you setup proxy server.. so we need to use directly the macro trigerring to already get amount of address or hardcoded the amount of address!

Semiadmin commented 5 months ago

It's not a zabbix agent key at all, it's a simple check. But starting from 5.2, this crutch is not needed, you may use this template: https://github.com/Semiadmin/zbx-win-agent-ping/releases/download/5.2/Template_win_ping_v5.2.yaml

mckaygerhard commented 5 months ago

well i just open the issue in separate way from the first one.. but usage of zabbix more than 5.0 is not recommended cos windos tempates since 5.0.17 are broken for network devices as i report https://support.zabbix.com/browse/ZBX-21217 and still is not solved..

many of the developers and admins just said "i not monitoring windos machines" and i hatre windos.. but i need to watcfh those machiens to property check the fails and have proff of the fails..

so usage of 5.X+ zabbix i tested have more problems rather older ones.. i wish to solve a way to discover or maybe hardcoded the list of ip on the discovered rules.. maybe? in zabbix 5.0 and 4.4 servers

Semiadmin commented 5 months ago

A rather strange decision about zabbix 5.2+, well, okay. Simple check icmpping[localhost] is a dummy item, it works everywhere. But you may use icmpping[] or icmpping as well, this key just must be unique.

mckaygerhard commented 5 months ago

may use icmpping[] or icmpping as well, this key just must be unique.

oh so i will check if i have duplication of such key thanks for the hint

A rather strange decision about zabbix 5.2+, well, okay.

templates of recent version does not work.. so ITS A LOGIC decision .. as https://www.zabbix.com/forum/zabbix-help/432337-standard-zabbix-template-don-t-detect-network-interface-on-windows in this case was exactly the case i am reporting.. solved by uloading an older version of the template https://www.zabbix.com/forum/zabbix-help/415982-graphs-are-discovered-but-there-is-no-data in this case.. the person does not know but was the same, after REUPLOAD the template (from older version of course) working again https://github.com/itmicus/zabbix/issues/61 reported also.. same problem and in oficial development place of zabbix at https://support.zabbix.com/browse/ZBX-21217

the subsequent templates never reports network device detection in zabbix agent active.. so any modern version of zabbix just its trash for windos monitoring using proxy