Coder Social home page Coder Social logo

district09 / check_ms_win_updates Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 1.0 88 KB

:four_leaf_clover: Check MS Windows Updates :four_leaf_clover:

Home Page: https://outsideit.net/monitoring-windows-updates

PowerShell 100.00%
health-check health-checks monitoring monitoring-plugins nagios nagios-nrpe nagios-plugin nagios-plugins powershell powershell-script windows windows-updates windows-wsus wsus

check_ms_win_updates's People

Contributors

willemdh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

kikyo-chan

check_ms_win_updates's Issues

check_ms_win_updates not working on Windows 10 Please Help

My command
define command{
command_name check_ms_win_updates2
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -t 60 -c check_ms_win_updates -a '-wd 45 -cd 90 -M PSWindowsUpdate'
}

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 $ARG1$; exit $LastExitCode | powershell.exe -command -

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

$ARG1$ not being passed??

Hi,

I have set this up in Nagios but am find the $ARG1$ is being completely ignored?

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 = $USER1$/check_nrpe -H $HOSTADDRESS$ -p 5666 -t 60 -c check_ms_win_updates

$ARG1$ = -a '-wd 15 -cd 30'

NSClient++ = check_ms_win_updates=cmd /c echo scripts\powershell\check_ms_win_updates.ps1 $ARG1$; exit $LastExitCode | powershell.exe -command -

Futeres requet

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

Got error message today

Service suddenly went to UNKNOWN state with the following message:

Failed to format error message, last error was: 2149859375

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.