zbx-sadman / wsus Goto Github PK
View Code? Open in Web Editor NEWPowershell script which fetch data from WSUS 3 & WSUS 6 Server
License: GNU General Public License v3.0
Powershell script which fetch data from WSUS 3 & WSUS 6 Server
License: GNU General Public License v3.0
Hello, I tried your scripts and template and my manager love it.
I think we could improve the script in order to count only the approved updates per group. (Neededupdates)
can you update this to support latest grafana and zabbix? and english version too please thanks
I am testing WSUS tempIate on Zabbix 4.0 and have an error on all items:
2019-01-04 10:24:30 | C:\Program Files\ZABBIX_Agent\wsus_miner.ps1 : A parameter cannot be found that matches parameter name 'Value'.
+ CategoryInfo : InvalidArgument: (:) [wsus_miner.ps1], ParentCon
tainsErrorRecordException
+ FullyQualifiedErrorId : NamedParameterNotFound,wsus_miner.ps1
-- | --
In zabbix agent config there is a standard user parameter:
UserParameter=wsus.miner[*], powershell -NoProfile -ExecutionPolicy "RemoteSigned" -File "C:\Program Files\ZABBIX_Agent\wsus_miner.ps1" -Action "$1" -Object "$2" -Key "$3" -Id "$4" -Value "$5" -consoleCP CP866
Items type is set as Zabbix agent (not Active), because I don't have Active checks enabled.
What can I do with that error?
Regards.
On one of our client sites we had WSUS installed and the zabbix monitoring.
Everything worked fine, unless someone messed up the IIS config, which resulted in clients no beeing able to connect to the wsus server and not reporting to it.
The zabbix WSUS monitoring script/template did not report/discover this problem.
It would be nice to be receive a trigger which alerts in such conditions.
One way to detect this would be to look for the date of the last client reporting to the server and then trigger if it's older than 5-10 days.
Also another trigger which looks if 80% of the clients have reported in the last 2 weeks would be helpfull to catch such cases.
I was able to establish the connection between the zabbix server and the agent installed on the wsus server, but when I try to read the script, zabbix reports this message:
The argument 'C:\zabbix-agent\scripts\wsus_miner.ps1' to the -File parameter does not exist. Provide the path to an existing '.ps1' file as an argument to the -File parameter.
The file path is correct, the same message occurs when I try to run the command in powershell by the wsus server:
PS C:\User\Administrador> powershell -NoProfile -ExecutionPolicy "RemoteSigned" -File "C:\zabbix-agent\scripts\wsus_miner.ps1" -Action "Get" -Object "Configuration" -Verbose
The argument 'C:\zabbix-agent\scripts\wsus_miner.ps1' to the -File parameter does not exist. Provide the path to an existing '.ps1' file as an argument to the -File parameter.
From what I understand zabbix finds the agent configuration file, it runs the UserParameters, but at the time of executing the script it does not recognize it.
i got this erros on windows 2012 host with wsus 6.3
5199:20160407:164721.462 Sending [wsus.miner[Discovery,ComputerGroup]
At C:\Zabbix\wsus_miner.ps1:310 char:15
At C:\Zabbix\wsus_miner.ps1:310 char:15
i got no data in zabbix server side
this erros is from zabbix log.
can you help me?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.