Does anyone have detailed info on the settings for the item to use the uLastWinUpdate.vbs script? I keep getting a ZBX_NOTSUPPORTED. 
Thanks in advance!

Thanks in advance!

' ************************************************** ******************
' ** Check the status of Windows Software RAID **
' ************************************************** ******************
'
' Version 1.01
'
' 14/09/2006 Peter Field
' - Updated to report if diskpart doesn't return any data (i.e. diskpart doesn't exist on Win2000)
' - Disabled the initial check for "Mirror" or "RAID-5"
' - Changed return value to a number for easier handling in Zabbix
'
' Based off original script by Oliver Hookins, Anchor Systems
' http://www.shipyard.com.au/articles/sysadmin/windows-software-raid-check.py
'
' Return value (status of all volumes):
' 0 = Healthy
' 1 = Rebuilding
' 2 = Failed
' 3 = Error reading configuration
'
Option Explicit
Dim WshShell, oExec
Dim Line, RE1, RE2, RE3
Dim Failure
Failure = 0
Set WshShell = CreateObject("WScript.Shell")
' Execute the DISKPART program and grab the output
Set oExec = WshShell.Exec("%comspec% /c echo list volume | diskpart")
' Set up some regular expression objects
'Set RE1 = New RegExp
Set RE2 = New RegExp
Set RE3 = New RegExp
'RE1.Pattern = "Mirror|RAID-5"
RE2.Pattern = "Failed|(At Risk)" ' At Risk indicates errors have been reported for a disk and it may need to be reactivated.
RE3.Pattern = "Rebuild"
If oExec.StdOut.AtEndOfStream Then
Failure = 3
Else
While Not oExec.StdOut.AtEndOfStream
Line = oExec.StdOut.ReadLine
' Tests for Mirrored or RAID-5 volumes
'If RE1.Test(Line) Then
' Tests for Failed RAID volumes
If RE2.Test(Line) Then
If Failure < 2 Then Failure = 2
' Tests for Rebuilding volumes
ElseIf RE3.Test(Line) Then
If Failure = 0 Then Failure = 1
End If
'End If
WEnd
End If
' Print out the appropriate test result
Wscript.Echo(Failure)
WScript.Quit(Failure)
Server=****** ServerPort=**** Hostname=******** ListenPort=**** DebugLevel=3 LogFile=c:\zabbix_agentd.log Timeout=3 UserParameter=uRaidChk,cscript.exe /nologo "c:\raidchk.vbs"
Option Explicit
' -------------------------
' Auto Services Not Running
' -------------------------
'
' Version 1.00
' 11 August 2006, Peter Field
'
' Original script source unknown.
'
' Displays a list of Windows services that are set to start Automatically,
' but are not currently running.
'
Dim strComputer, wbemServices, wbemObjectSet, wbemObject, strMessage
On Error Resume Next
Set wbemServices = GetObject("winmgmts:\\.")
Set wbemObjectSet = wbemServices.InstancesOf("Win32_Service")
strMessage=""
For Each wbemObject In wbemObjectSet
if wbemObject.StartMode = "Auto" Then
if wbemObject.State <> "Running" Then
' Wscript.Echo """" & wbemObject.Name & """,""" & wbemObject.State & """,""" & wbemObject.DisplayName & """"
If strMessage<>"" Then strMessage=strMessage & ", "
strMessage=strMessage & wbemObject.DisplayName
End If
End If
Next
If strMessage="" Then
Wscript.Echo "None"
Else
Wscript.Echo strMessage
End If
Option Explicit
' -------------------------
' Auto Services Not Running
' -------------------------
'
' Version 1.10
' 11 August 2006, Peter Field
'
' 1.10 27/04/2009 - Added ability to exclude specific services.
' 1.00 11/08/2006 - Original script source unknown.
'
' Displays a list of Windows services that are set to start Automatically, ' but are not currently running.
'
Dim strComputer, wbemServices, wbemObjectSet, wbemObject, strMessage, excludedServices
On Error Resume Next
Set excludedServices=CreateObject("Scripting.Dictionary")
excludedServices.Add "Performance Logs and Alerts", "Excluded because its almost never running"
Set wbemServices = GetObject("winmgmts:\\.")
Set wbemObjectSet = wbemServices.InstancesOf("Win32_Service")
strMessage=""
For Each wbemObject In wbemObjectSet
If wbemObject.StartMode = "Auto" Then
If wbemObject.State <> "Running" Then
If Not excludedServices.Exists(wbemObject.DisplayName) Then
'Wscript.Echo """" & wbemObject.Name & """,""" & wbemObject.State & """,""" & wbemObject.DisplayName & """"
If strMessage <> "" Then strMessage = strMessage & ", "
strMessage = strMessage & wbemObject.DisplayName
End If
End If
End If
Next
If strMessage="" Then
Wscript.Echo "None"
Else
Wscript.Echo strMessage
End If
Option Explicit
' -------------------------
' Auto Services Not Running
' -------------------------
'
' Version 1.10
' 11 August 2006, Peter Field
'
' 1.10 27/04/2009 - Added ability to exclude specific services.
' 1.00 11/08/2006 - Original script source unknown.
'
' Displays a list of Windows services that are set to start Automatically, ' but are not currently running.
'
Dim strComputer, wbemServices, wbemObjectSet, wbemObject, strMessage, excludedServices
On Error Resume Next
Set excludedServices=CreateObject("Scripting.Dictionary")
excludedServices.Add "Performance Logs and Alerts", "Excluded because its almost never running"
Set wbemServices = GetObject("winmgmts:\\.")
Set wbemObjectSet = wbemServices.InstancesOf("Win32_Service")
strMessage=""
For Each wbemObject In wbemObjectSet
If wbemObject.StartMode = "Auto" Then
If wbemObject.State <> "Running" Then
If Not excludedServices.Exists(wbemObject.DisplayName) Then
'Wscript.Echo """" & wbemObject.Name & """,""" & wbemObject.State & """,""" & wbemObject.DisplayName & """"
If strMessage <> "" Then strMessage = strMessage & ", "
strMessage = strMessage & wbemObject.DisplayName
End If
End If
End If
Next
If strMessage="" Then
Wscript.Echo "None"
Else
Wscript.Echo strMessage
End If
Option Explicit
' -------------------------
' Auto Services Not Running
' -------------------------
'
' Version 1.10
' 11 August 2006, Peter Field
'
' 1.10 27/04/2009 - Added ability to exclude specific services.
' 1.00 11/08/2006 - Original script source unknown.
'
' Displays a list of Windows services that are set to start Automatically, ' but are not currently running.
'
Dim strComputer, wbemServices, wbemObjectSet, wbemObject, strMessage, excludedServices
On Error Resume Next
Set excludedServices=CreateObject("Scripting.Dictionary")
excludedServices.Add "Performance Logs and Alerts", "Excluded because its almost never running"
Set wbemServices = GetObject("winmgmts:\\.")
Set wbemObjectSet = wbemServices.InstancesOf("Win32_Service")
strMessage=""
For Each wbemObject In wbemObjectSet
If wbemObject.StartMode = "Auto" Then
If wbemObject.State <> "Running" Then
If Not excludedServices.Exists(wbemObject.DisplayName) Then
'Wscript.Echo """" & wbemObject.Name & """,""" & wbemObject.State & """,""" & wbemObject.DisplayName & """"
If strMessage <> "" Then strMessage = strMessage & ", "
strMessage = strMessage & wbemObject.DisplayName
End If
End If
End If
Next
If strMessage="" Then
Wscript.Echo "None"
Else
Wscript.Echo strMessage
End If

Comment