[hobbit] BBWin 0.11 Centralised Config problems

ndegz nndegz at gmail.com
Fri Apr 4 16:21:49 CEST 2008


Hi Etienne,
Thanks for the info. I'm now trying to implement a vbs script solution (
perl is out of the question at the moment) and i'm getting errors. How do
you run a vbs script from client-local?
I've tried the following
file:`C:\listing.vbs`
[WARN]: [files]: C:\listing.vbs command failed : The handle is invalid.
I tried this also
file:`cscript C:\listing.vbs`
and i get this error
[WARN]: [files]: Unknow hash type for file configuration : \listing.vbs`

listing.vbs is a script i borrowed from microsoft's scripting repository

strComputer = "."

Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colFileList = objWMIService.ExecQuery _
    ("ASSOCIATORS OF {Win32_Directory.Name='C:\CFusionMX\Mail\Spool'} Where
" _
        & "ResultClass = CIM_DataFile")

        For Each objFile In colFileList
        Wscript.Echo objFile.Name
    Next



On Thu, Apr 3, 2008 at 10:12 AM, Etienne Grignon <etienne.grignon at gmail.com>
wrote:

> Hello Nick,
>
> 2008/4/3, ndegz <nndegz at gmail.com>:
> >
> >
> > > You should use [win32] instead of   [dcstest2] in your
> > > client-local.cfg because in your bbwin.cfg, the configclass is set to
> > > win32 (<setting name="configclass" value="win32" />). Once you will do
> > > that, BBWin, will get the rules you have set to ignore some events.
> > >
> > Does this mean that you cannot have a client entry in client-local.cfg
> or
> > can we change the configclass in bbwin.cfg?
>
> If you want to use something else than win32, then you will have to
> change the default configclass value in the bbwin.cfg file.
>
> >  Also the `COMMAND` config parameter in client-local.cfg don't appear to
> > work. I have the following entry in my client-local.cfg
> >
> > file:`C:\listing.cmd`
> >
> > The listing.cmd file contains the following entry
> >  dir "C:\CFusionMX\Mail\Spool"
> >
> > hobbit-client.cfg contains
> > FILE %C:\CFusionMX\Mail\Spool\.* MTIME>600 COLOR=red TRACK
> >
> > But all i get is a No Files Checked in the status window
> >
>
> Can you check the output of the command "dir "C:\CFusionMX\Mail\Spool"
>
> The output has to be very clean like this :
> dir "C:\CFusionMX\Mail\Spool"
> C:\CFusionMX\Mail\Spool\mail1
> C:\CFusionMX\Mail\Spool\mail2
> C:\CFusionMX\Mail\Spool\mail3
>
> If you get something like this :
> C:\Program Files\BBWin\tmp>dir
>  Volume in drive C is MainDisk
>  Volume Serial Number is XXXX-XXXXX
>
>  Directory of C:\Program Files\BBWin\tmp
>
> 20/02/2008  19:15    <DIR>          .
> 20/02/2008  19:15    <DIR>          ..
> 20/02/2008  17:15             6 736 bbwin.cfg.work
> 20/02/2008  19:14             1 367 clientlocal.cfg
> 20/02/2008  19:15               274 logfetch.status
> 20/02/2008  19:14           208 287 msg.winxp.txt
>               4 File(s)        216 664 bytes
>               2 Dir(s)   8 418 668 544 bytes free
>
> C:\Program Files\BBWin\tmp>
>
> then it won't work.
>
> You shall need to use something else than the dir command. You may
> write a small perl or vbscript which is more powerful than the dos
> commands.
>
> Best regards,
>
> --
> Etienne GRIGNON
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe at hswn.dk
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20080404/013f78af/attachment.html>


More information about the Xymon mailing list