[SOLVED] RE: Re: NRPE Woes Monitoring Windows Servers

Robert Jackson rab at walkermartyn.co.uk
Sun Jan 29 14:38:34 CET 2012


Managed to get the issue solved by uncommenting "allow_arguments" . Many thanks.

-----Original Message-----
From: Nick Price [mailto:np121 at hotmail.com] 
Sent: Sunday 29 January 2012 13:13
To: 'Nagios Users List'
Subject: Re: [Nagios-users] NRPE Woes Monitoring Windows Servers

Hi


You need to check the following is uncommented

allow_arguments and it should = 1

port=5666 if you are using NRPE
port=12489

did you also add allowed_hosts=   you need to add here the Nagios server IP
address

hope this helps

Nick



-----Original Message-----
From: Robert Jackson [mailto:rab at walkermartyn.co.uk] 
Sent: Sunday, January 29, 2012 10:53
To: Nagios Users List
Subject: Re: [Nagios-users] NRPE Woes Monitoring Windows Servers

Sorry about the lack of info:

I've turned on log debugging and it produced the following:

2012-01-29 09:39:03: debug:NSClient++.cpp:1106: Injecting: CheckVersion: 
2012-01-29 09:39:03: debug:NSClient++.cpp:1142: Injected Result: OK
'0.3.8.75 2010-05-27'
2012-01-29 09:39:03: debug:NSClient++.cpp:1143: Injected Performance Result:
''
2012-01-29 09:39:15: error:modules\NRPEListener\NRPEListener.cpp:393:
Request contained arguments (not currently allowed, check the
allow_arguments option).
2012-01-29 09:39:15: error:modules\NRPEListener\NRPEListener.cpp:365:
NRPEException: Request contained arguments (not currently allowed, check the
allow_arguments option).

In the above case the Nagios command issued was:

/check_nrpe -H <server IP> -p 5666 -c CheckUpTime -a MinWarn=1d MinCrit=12h

I'm aiming to get to a point where for all Windows machines (Servers and
PCs) I have a default check template of:

NSClient++ version
Uptime
CPU Load
Memory Usage
Disk Usage (all partitions)
Explorer process is running.

In the NSC.ini file, the following have all been uncomment:

FileLogger.dll
CheckSystem.dll
CheckDisk.dll
NSClientListener.dll
NRPEListener.dll
SysTray.dll
CheckEventLog.dll
CheckHelpers.dll
CheckWMI.dll
;
; Script to check external scripts and/or internal aliases.
CheckExternalScripts.dll

Also:

allowed_hosts=<Nagios Server IP Address>



Regards,
Rab.
=============================================================
Robert Jackson                                  Phone: +44 (0) 141 332 7999
IT Manager                                           Fax: +44 (0) 141 331
2820
Walker Martyn Ltd
1 Park Circus Place                            Email: rab at walkermartyn.co.uk
Glasgow G3 6AH, Scotland                   Web:
http://www.walkermartyn.co.uk
=============================================================





-----Original Message-----
From: Jim Avery [mailto:jim at jimavery.me.uk]
Sent: Saturday 28 January 2012 19:21
To: Nagios Users List
Subject: Re: [Nagios-users] NRPE Woes Monitoring Windows Servers

On 28 January 2012 15:52, Robert Jackson <rab at walkermartyn.co.uk> wrote:
> Hope someone can point me in the right direction. For any  check_nrpe 
> command (except CheckVersion) I get the following:
>
>
>
> CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs 
> for error messages.
>
>
>
> I know this is a bit sketchy

Yes, it is rather.

>, but I don't understand why the CheckVersion  command would work and 
>anything else won't. I'm assuming here that because I  get the version 
>of the NSClient++ returned without error, then NSClient++ is  
>configured correctly? I have uncommented the necessary modules within 
>the  NSC.ini files on the Windows server.

> I've tried both CheckMEM and CheckUptime with no success. Can someone 
> please help?

Does the nsclient.log file contain anything interesting?

There are umpteen ways to configure NSClient++ and run checks against it.
What specific checks are you trying to run and how are you running them?

----------------------------------------------------------------------------
--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers is
just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro
Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue. 
::: Messages without supporting info will risk being sent to /dev/null



************************************************************************
The information in this internet E-mail is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it by
anyone else is unauthorised. Any views or opinions presented are solely
those of the author and do not necessarily represent those of Walker Martyn
Ltd or any of its affiliates. If you are not the intended recipient please
contact  administrator at walkermartyn.co.uk

Walker Martyn Ltd, company number SC197533. Company is registered in
Scotland and has its registered office at 1 Park Circus Place, Glasgow G3
6AH, UK.
****************************************************************




----------------------------------------------------------------------------
--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list