NSCA and Windows

Klein, Oliver oklein at nccms.de
Fri Mar 26 15:13:53 CET 2010


Hi Kevin,

thx i think that is what we need. But I have some problems  to get this plugins work with nsclient. Any idea about this?
This is the error massage in syslog on the nagios server

Mar 26 15:04:41 nagios nagios: EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;sonicwall2;C:\NSCLIENT++\scripts\check_cpu.exe;3;Command was not found:
Mar 26 15:04:41 nagios nagios: Warning:  Passive check result was received for service 'C:\NSCLIENT++\scripts\check_cpu.exe' on host 'sonicwall2', but the service could not be found!

So I define the following option in the nsc.ini

[External Scripts]
;check_es_long=scripts\long.bat
;check_es_ok=scripts\ok.bat
;check_es_nok=scripts\nok.bat
;check_vbs_sample=cscript.exe //T:30 //NoLogo scripts\check_vb.vbs
;check_powershell_warn=cmd /c echo scripts\powershell.ps1 | powershell.exe -command -
check_cpu=scripts\check_cpu.exe

[NSCA Commands]
;my_cpu_check=checkCPU warn=80 crit=90 time=20m time=10s time=4
;my_mem_check=checkMem MaxWarn=80% MaxCrit=90% ShowAll type=page
;my_svc_check=checkServiceState CheckAll exclude=wampmysqld exclude=MpfService
;host_check=check_ok
C:\NSCLIENT++\scripts\check_cpu.exe

I tested it without path and other variations but with no luck. I hope someone give me the right hint for the correct syntax

Best regards & nice weekend
Olly


Mit freundlichen Gruessen

Oliver Klein
System Engineer 

Tel:    02506 / 93 20 214
Mobil:  0163-5932004
E-Mail: oklein at nccms.de



NCC
Noethen Computer Center GmbH
Wolbecker Windmuehle 55
48167 Muenster

Tel: 02506 93 20 0
FAX: 02506 93 20 20

E-Mail:   info at nccms.de
Homepage: www.nccms.de






					
Amtsgericht Muenster HRB 5036    Geschaeftsfuehrer: Ralf Bakenecker
						 Uwe-Christian Surma


_____________________________________________________________________
Dieses E-Mail ist nur fuer den Empfaenger bestimmt, an den es gerichtet
ist und kann vertrauliches bzw. unter das Berufsgeheimnis fallendes
Material enthalten. Jegliche darin enthaltene Ansicht oder Meinungs-
aeusserung ist die des Autors und stellt nicht notwendigerweise die
Ansicht oder Meinung von NCC GmbH dar.
Sind Sie nicht der Empfaenger, so haben Sie diese E-Mail irrtuemlich
erhalten und jegliche Verwendung, Veroeffentlichung, Weiterleitung,
Abschrift oder jeglicher Druck dieser E-Mail ist strengstens untersagt.

Weder NCC GmbH noch der Absender (Oliver Klein)
uebernehmen die Haftung fuer Viren; es obliegt Ihrer Verantwortung,
die E-Mail und deren  Anhaenge auf Viren zu pruefen.
 Anhaenge:

_____________________________________________________________________
Versand am 26.03.2010 15:13 von Klein Oliver
Validation-Code: 3623422302211

Von: Kevin Keane [mailto:subscription at kkeane.com]
Gesendet: Freitag, 26. Maerz 2010 06:18
An: Nagios Users List
Betreff: Re: [Nagios-users] NSCA and Windows

The plugins are simply command-line programs. By convention, all plugins should provide documentation when you start them with the -h switch.

You can find quite a few plugins on monitoringexchange.org . I wrote a collection of plugins that you might find useful at http://sourceforge.net/projects/tntnagiosplugin/<https://sourceforge.net/projects/tntnagiosplugin/> I'm not using them with NSClient, but they should work with it just fine.

From: Klein, Oliver [mailto:oklein at nccms.de]
Sent: Thursday, March 25, 2010 7:41 AM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] NSCA and Windows



[cid:image001.jpg at 01CACCF6.29F1E420]

Hi List

i have a question about Windows and NSCA. We use the NSclient with NCSA. In the
nsclient config file there´re some checks descriped and this works well. So what
we want to know is, where we can find more plugins? There´s a folder
in the nsclient directory "modules" maybe we can use these plugins. Our problem
is, that we don´t know how to use these plugins, like the syntax.
Any help was appreciated

kind regards
Olly



Mit freundlichen Gruessen

Oliver Klein
System Engineer

Tel: 02506 / 93 20 214
Mobil: 0163-5932004
E-Mail: oklein at nccms.de<mailto:oklein at nccms.de>


NCC
Noethen Computer Center GmbH
Wolbecker Windmuehle 55
48167 Muenster

Fon: 02506 / 93 20 0
Fax: 02506 / 93 20 20

Geschaeftsfuehrer:
Ralf Bakenecker
Uwe-Christian Surma

Amtsgericht Muenster HRB 5036

info at nccms.de<mailto:info at nccms.de>
http://www.nccms.de

[cid:image002.jpg at 01CACCF6.29F1E420]

Gesellschafter der Computer Compass-Gruppe

Dieses E-Mail ist nur fuer den Empfaenger bestimmt, an den es gerichtet ist und kann vertrauliches bzw. unter das Berufsgeheimnis fallendes Material enthalten. Jegliche darin enthaltene Ansicht oder Meinungs- aeusserung ist die des Autors und stellt nicht notwendigerweise die Ansicht oder Meinung von NCC GmbH dar. Sind Sie nicht der Empfaenger, so haben Sie diese E-Mail irrtuemlich erhalten und jegliche Verwendung, Veroeffentlichung, Weiterleitung, Abschrift oder jeglicher Druck dieser E-Mail ist strengstens untersagt. Weder NCC GmbH noch der Absender (Oliver Klein) uebernehmen die Haftung fuer Viren; es obliegt Ihrer Verantwortung, die E-Mail und deren Anhaenge auf Viren zu pruefen.
Anhaenge:.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100326/626fe802/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 2264 bytes
Desc: image001.jpg
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100326/626fe802/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 1941 bytes
Desc: image002.jpg
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100326/626fe802/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: compass-logo.jpg
Type: image/jpeg
Size: 1941 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100326/626fe802/attachment-0002.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ncc-logo.jpg
Type: image/jpeg
Size: 2264 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100326/626fe802/attachment-0003.jpg>
-------------- next part --------------
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
-------------- next part --------------
_______________________________________________
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