Skip to content

Random checks randomly failing with random errors #63

@WilliamDEdwards

Description

@WilliamDEdwards

I have setup Sensu on three Windows servers yesterday. Two issues:

check-windows-ram.rb randomly returns: Access is denied.
check-windows-disk.rb randomly returns: Invalid XSL format (or) file name. It does actually return an OK with the disk space usage, but that warning wasn't there yesterday.
check-windows-process.rb randomly returns the errors in this issue: #33

What I gathered from that issue is that the fix is specifying the path to the Ruby executable. So I did:

/opt/sensu/embedded/bin/ruby.exe /opt/sensu/embedded/bin/check-windows-process.rb.bat -p activedirectory

I also tried:

C:\opt\sensu\embedded\bin\ruby.exe C:\opt\sensu\embedded\bin\check-windows-process.rb.bat -p activedirectory

Unfortunately, both return an error:

/opt/sensu/embedded/bin/check-windows-process.rb.bat:1: syntax error, unexpected tCONSTANT, expecting end-of-input
@ECHO OFF

Nothing changed on the servers. The same problems occurred on all three Windows Servers. It's Windows Server 2012.

Strange thing is that Sensu was setup on a Windows Server 2016 two days ago and this issue hasn't come up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions