Template to get information about .NET status
Template to get information about .NET status
This template was created to be applied at a Veeam Backup Service Provider. The customer had many problems related to .NET version and we build a simple script and template to put on Veeam servers and monitor via Zabbix.What information it will get?
With this template, you will be able to get .Net Version that is installed on the server, the KB number of the last .NET update and the date of the last .NET update if exists.
How to use
After import the template on Zabbix, you will need to put the script on Zabbix home at "scripts" folder at client machine side. After it, go to the Zabbix_agent.conf (client machine side) and add this line:
UserParameter=netinfo[*],PowerShell.exe -ExecutionPolicy UnRestricted -File <SCRIPT PATH> $1 $2
***Note: Remember to change the value <SCRIPT PATH> to the real script path.****
After it is only add the template at the host that you want to monitor.
How can I test the script on client side?
You can test the script running it via powershell with this parameters. E.g:
.\Netframeworkinfo.ps1 netver
****return .NET version****
.\Netframeworkinfo.ps1 kbnumber
****return the KBnumber of the last update of the .NET****
.\Netframeworkinfo.ps1 updatedate
****return the date of the last update of the .NET****
Known Issues:
To charge the variable $session, the windows update service needs be enabled and running. You will perceive this issue if you receive error related this variable when to try get values of KBNUMBER and UPDATEDATE.
Note:This template was used on version 5.0.4 only.
Listing Details
1 version, '2020-11-03 14:06' modified