Debugging Serverscheck

[Deleted User][Deleted User]
Hi,



Is there way to log debug exactly what serverscheck is doing?



As posted in my previous posts, Serverscheck occasionally just stops executing my rules and therefore doesn't monitor.



For example, I have the 'Group View' displayed showing green across all my checks.

I got a call to say there was a problem this morning.

I checked serverscheck 'All Rules' view, and all checks appear to have stopped at 5:02am today... (but all still show as green)



I checked my monitoring server - all services running, no problems in Event View - even the time listed on the serverscheck main page (to the left of the logged in user) shows the current date and time! (like it IS working).

The page is not cached, no changes have been made...



All logs, Graphs and checks have no data from 5:02am.



If I restart the 2 serverscheck services, it all now started working again.



I really need to prevent these 'hangs'.



Thanks

Comments

  • AdministratorAdministrator
    You can run ServersCheck in debugging mode as follows:

    1/ Stop the Monitoring Service

    2/ Start the s-graphs and s-alerts components by double clicking on it

    3/ type following command via the command prompt (and in the ServersCheck directory)

    monitoring_manager > debuglog.txt



    This will output everything to the debuglog.txt (all activity).
  • [Deleted User][Deleted User]
    OK, but when I choose to log off the server it says to close 'S-Alerts.exe'



    Also, doesn't the monitoring service need to be running for me to have the checks working?



    Thanks
  • AdministratorAdministrator
    The s-service is in fact a wrapper around the 3 components that you start up manually. If you are starting them up under the same account as under which the service runs, then you are actually running the monitoring part in desktop mode rather than service mode. This enables you to obtain debug logging info to track down the problem.



    The server should not be logged off when running in debug mode.
  • [Deleted User][Deleted User]
    Hi,

    Is it possible I could get some help in finding why my checks appear to randomly stop?



    This morning at 7:43 all the checks stopped being processed.



    The time at the top of the serverscheck screen still shows current time.

    Both servers check services are running.

    No events are logged in Event Viewer.

    But all the checks just freeze - with no notification or anything.

    I checked the proccess, and they all look normal - no duplicates running are running at high CPU.



    What can I check to find why it stopped? (again)



    Thanks
  • AdministratorAdministrator
    Was the monitoring_manager.exe still running?



    Do you have the debuglog.txt ?



    I will check with development as they were preparing a special built-in for you that watches the checks and if they stop (for whatever reason), then the monitoring_manager will automatically be restarted.
  • AdministratorAdministrator
    The build is ready from following url:

    http://www.serverscheck.com/files/s-service.zip



    Here is what it does:

    1/ It continously monitors the jobs

    2/ If no job has been handled for 5 minutes, then the monitoring_manager is automatically restarted
This discussion has been closed.