Checking URL on windows-client using NSClient++

jvc_dvl557 at hotmail.com jvc_dvl557 at hotmail.com
Tue Jul 14 11:42:00 CEST 2009


Hi Patrick,

I do get a result/output when I run the batch as described (0 or 1).

But I read that it needs to output in STDOUT format and I don't know how to 
write that in vbs...

All tips are welcome.

Thanks in advance.

Kinde regards,

Dennis de Vries

--------------------------------------------------
From: "Morris, Patrick" <patrick.morris at hp.com>
Sent: Friday, July 10, 2009 12:58 AM
To: <jvc_dvl557 at hotmail.com>
Cc: "Frater, Greg J" <GJFRATER at bechtel.com>; 
<nagios-users at lists.sourceforge.net>
Subject: Re: [Nagios-users] Checking URL on windows-client using NSClient++

> Hi jvc_dvl557!
>
> On Wed, 01 Jul 2009, jvc_dvl557 at hotmail.com wrote:
>
>> Hi Greg,
>>
>> Thank you very much for the detailed explenation.
>>
>> I discovered that I even didn't had NRPE installed, now I do.
>>
>> I got everything running, except for the exit/output code. Nagios runs 
>> the script on the client host perfectly but it gives me an error saying: 
>> No output available from command (c:\windows\system32\cscript.exe 
>> //nologo "c:\nsclient\scripts\check_website.vbs"
>>
>> This is the vbs script I used and edited a bit with some help of google 
>> (i'm not a vbs expert): http://pastebin.com/f6e35c30b
>>
>> When I run this vbs script via a batch file to debug it's output :
>> -------------------TEST.BAT-----------------
>> wscript check_website.vbs
>> echo wscript returned %errorlevel%
>> ------------------------------------------------
>> I get the result of 0 or 1 just like it should be.
>>
>> Do you, or anyone else, have any suggestions on how to finetune this so 
>> that i can solve this issue?
>
> Can you modify check_website.vbs so it *does* return a line of output?
> 

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
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