Hi Anatoli,
you can edit the monitoring of the connection and other server on the basis of running state as well as other state :-
These are the possible values associated with the running State:
0 = STOPPED
1 = STARTING
2 = INITIALIZING
3 = RUNNING
4 = STOPPING
5 = FAILED
6 = RUNNING_WITH_ERRORS
7 = RUNNING_WITH_WARNINGS
like wise you can explore the other options.