district09 / check_ms_win_updates Goto Github PK
View Code? Open in Web Editor NEW:four_leaf_clover: Check MS Windows Updates :four_leaf_clover:
Home Page: https://outsideit.net/monitoring-windows-updates
:four_leaf_clover: Check MS Windows Updates :four_leaf_clover:
Home Page: https://outsideit.net/monitoring-windows-updates
My command
define command{
command_name check_ms_win_updates2
command_line
}
My service
define service{
use generic-service
host_name TGKW001
service_description WSUS
check_command check_ms_win_updates2
servicegroups Windows Updates
}
Part of my nsclient
; Section for external scripts configuration options (CheckExternalScripts).
[/settings/external scripts]
; COMMAND TIMEOUT - The maximum time in seconds that a command can execute. (if more then this execution will be aborted). NOTICE this only affects external commands not internal ones.
timeout = 60
; COMMAND ALLOW NASTY META CHARS - This option determines whether or not the we will allow clients to specify nasty (as in |`&><'"[]{}) characters in arguments.
allow nasty characters = 0
; COMMAND ARGUMENT PROCESSING - This option determines whether or not the we will allow clients to specify arguments to commands that are executed.
; allow arguments = 0
allow arguments = 1
; A list of scripts available to run from the CheckExternalScripts module. Syntax is: =<script>
[/settings/external scripts/scripts]
check_ms_win_updates = cmd /c echo scripts/powershell/check_ms_win_updates.ps1
Now I ran it from Powershell v5 on my Windows 10 Pro computer
PS C:\program files\nsclient++\scripts\powershell> .\check_ms_win_updates.ps1 -M PSWindowsUpdate
CRITICAL: Last successful update at 2016/01/13 18:26:22 exceeded critical threshold of 150 days. Pending updates {Total:
It takes a very long time to run 15 20 minutes.
It does not think it is up to date either this Windows 10 machine is current with updates.
I have it working on Windows 7 machines Windows 2012
Trying Windows 2008 soon
Any ideas
Thank you
Tom
PS
all other OS systems work Windows 7 Windows 8 Window 2008 Windows 2012
In my NSCLIENT.INI
017-02-27 21:59:35: error:c:\source\nscp\include\socket/connection.hpp:149: Failed to send data: The file handle supplied is not valid
Hi,
I have set this up in Nagios but am find the
Everything else is working but just always setting the defaults rather than what I am passing. My settings are as below, am I missing something?
Command =
NSClient++ = check_ms_win_updates=cmd /c echo scripts\powershell\check_ms_win_updates.ps1
hi,
if possible to implement an "exclude categoy"? I need to exclude the microsoft .NET frameworks update to result because is not important for my company.
tnx for your attention
Service suddenly went to UNKNOWN state with the following message:
Failed to format error message, last error was: 2149859375
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.