[94] Invalid use of Null

Fr00pFr00p
Hi again,



I've got a strange problem with the ServersCheck Software.

Some of the SERVICES checks return the Error "[94] Invalid use of Null" but the same tests work on an other server without problems. The server which return these errors is our Exchange 2007 Server.

What can I do to get theses checks working on our server?



Kind regards

Comments

  • AdministratorAdministrator
    1) Go to the command prompt

    2) In the command prompt, navigate to the agents subdirectory of the main ServersCheck directory

    3) Save the following file in that agents subdirectory

    http://files.serverscheck.net/conf/services.conf

    4) Open it with notepad and modify it to your settings

    5) Launch following:

    service_check services



    It should create a file called services.log



    Reply with the output of that log file
  • Fr00pFr00p
    Hi,

    I've got a question before I can reply the output.



    In the services.conf under the agents subdirectory which setting I have to use?



    1. IP Adress of the remote machine on which the check fails or the IP of the ServersCheck Appliance?

    2. Should it be the same Logon-Credentials like the check that fails?

    3. What does A:WINS8 means? What I have to put in there when I'm using Windows Server 2003?



    Kind regards
  • AdministratorAdministrator
    - Needs to run on the appliance ; IP is the host being monitored

    - Same credentials like the failing

    - A: indicates a service and behind the short service name you would like to monitor. For example for the World Wide Web Server this would be W3SVC
  • Fr00pFr00p
    Hi again,



    I've tested now the monitoring of the service "DHCPServer" on two different machines.



    Following entrys have been made in the services.conf.



    Machine-Name

    Domain Admin

    Password

    s:DHCPServer





    On the machine where the check fails I got the output

    Error : [94] Invalid use of Null



    On the other machine where the same service is checked I got the output: OK



    If I use "A:DHCPServer" I get on both machines the Error: "Error : [-2147217394] Invalid namespace "



    The problem still exists, that on one machine the check is working and on an other machine the same check fails.



    Kind regards
  • AdministratorAdministrator
    Can you do the same but with a new build of the service_check ?



    The debug build can be downloaded here:

    http://files.serverscheck.net/debug/service_check.exe



    Run it as follows:

    service_check services.conf /DEBUG > debug.log



    This should create a file called debug.log - kindly reply with its output
  • AdministratorAdministrator
    Update: run it as follows:

    service_check services.conf > debug.log

    (so without the /DEBUG switch)
  • Fr00pFr00p
    There isn't a "debug.log" file created there is just a new file created called "services.conf .log" and the file contain following message

    Error : [-2147220983] Unable to find configuration file.



    It seems that there is a problem with your parameters.
  • AdministratorAdministrator
    Sorry wrong command

    service_check services > debug.log


  • Fr00pFr00p
    Ok, I tried it now with the new command and a file called "debug.log" was created with following content:



    Error : [-2147220983] Unable to find configuration file.

    Check:services



    The content of the "services.log" wich has been created too is:

    Error : [-2147220983] Unable to find configuration file.



    It seems that there is still a problem with the parameters.
  • Fr00pFr00p
    Ah, I found the mistake! It has to be service_check services> debug.log without a space between the "services" and the ">" !



    Here is the output of the debug.log



    4/9/2010 12:46:36 PM Retrieving remote wmi object.

    Check:services

    4/9/2010 12:46:36 PM Enumerating remote services.

    Check:services

    Error : [94] Invalid use of Null

    Check:services



    Here is the output of the services.log

    Error : [94] Invalid use of Null



    Hope it helps to solve the problem.
  • Fr00pFr00p
    No idea how to solve this problem?
  • ataubeataube
    I am having a similar issue. We have a Blackberry Enterprise server. This server is used in conjuction with Exchange 2003. Some of the monitors in Serverscheck for this monitor work properly, and some others give the same error message you are recieving [94] Invalid use of null. I have tested WMI and cannot find a resolution to this problem. We previously used Alchemy Network Monitor Pro, and it is able to successfully monitor the services on the server. I am hoping that the Serverscheck support staff can find a resolution to this problem.
  • Fr00pFr00p
    We have also BlackBerry Professional Software running on the server where the error occours but we are using Exchange Server 2007. Is it possible that the BlackBerry Software causes this problem?
  • AdministratorAdministrator
    Release 8.2.0 which includes a completly rewritten backend of the SERVICES check and should solve the reported issue - as we have been unable to replicate it, it was decided to rewrite the check type from the ground up.



    Also new in release 8.2.0 are the BlackBerry check types
  • Fr00pFr00p
    Great, the checks seem to work now ! Thank you
  • ataubeataube
    After upgrading to Serverscheck 8.2.0, my issues were also resolved. Thanks so much for fixing this!
This discussion has been closed.