Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can somebody please show me how to install this nagios plugin that checks if your servers require winodws updates?

I am on Ubuntu 10.04 with Nagios V3. I followed the nagios quick install guide to get Nagios running.

edit: I have NSclient++ installed on the monitored servers.

share|improve this question
Thank you foe the reply's. I have learnt a great deal about NRPE the last weekend. – Jake Mar 5 '12 at 11:35
up vote 1 down vote accepted

On each server that you want to monitor you have to download the script and enable external scripts, you can add that line (shown in your link) to your NSC.ini

commandwindows_updates=c:\windows\system32\cscript.exe //NoLogo //T:120 c:\nrpe_nt\plugins\check_windows_updates.wsf /w:0 /c:1 

Always be careful of scripts and at the very list skim through them.

Then on your nagios installation create a new service check or a new command on your commands.cfg.

It should look like (if you set it as a command)

define command{
       command_name    check_updates_nt
       command_line    /usr/lib/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -p 5666 -c commandwindows_updates
share|improve this answer

You'll copy that script to the NRPE plugins directory on each server that you want it to run on and modify the command if necessary to reflect the correct path.

Then, just create a new command with the code in the link that you provided.

NAGIOS is pretty thoroughly documented, you should take a look it more than just the Quick Start Guide.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.