NSCA and Windows

Natxo Asenjo natxo.asenjo at gmail.com
Fri Mar 26 15:51:30 CET 2010


On Fri, Mar 26, 2010 at 3:13 PM, Klein, Oliver <oklein at nccms.de> wrote:
>
>
>
> 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!

Actually, that is quite a good error message.

> 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

What you have defined is the handler 'check_cpu' In this section
[External Scripts]. Those are for NRPE if I recall correctly although
I never used that section for NRPE, I use [NRPE Handlers] instead for
my custom commands.

> [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

and here you have not defined anything, there is no LHS=RHS
combination. I suppose that what you meant is
check_cpu=scripts\check_cpu.exe. Restart the nsclientpp service and
try again.

-- 
groeten,
natxo

------------------------------------------------------------------------------
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
_______________________________________________
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