# Some Essential checks

## Check keeper :

echo ruok | nc 127.0.0.1 9181

sudo systemctl restart clickhouse-keeper

Check cluster

<span style="background-color: #ffffff; padding: 0px 0px 0px 2px;"><span style="color: #000000; background-color: #ffffff; font-family: 'Monospace'; font-size: 10pt; white-space: pre;"><span style="color: #800000; font-weight: bold;">SELECT</span> \* <span style="color: #800000; font-weight: bold;">FROM</span> <span style="color: #956037; text-decoration: underline; text-decoration-color: #ff0080; text-decoration-style: wavy;">system</span><span style="text-decoration: underline; text-decoration-color: #ff0080; text-decoration-style: wavy;">.</span><span style="color: #6c5151; text-decoration: underline; text-decoration-color: #ff0080; text-decoration-style: wavy;">clusters</span> <span style="color: #800000; font-weight: bold;">WHERE</span> <span style="color: #800000; font-weight: bold;">cluster</span>=<span style="color: #008000;">'default'</span><span style="color: #ff0000;">;</span></span></span>

# Additional Keeper tests

### **Cluster monitoring**

<div class="contain-inline-size rounded-2xl corner-superellipse/1.1 relative bg-token-sidebar-surface-primary" id="bkmrk-echo-mntr-%7C-nc-127.0"><div class="sticky top-9"><div class="absolute end-0 bottom-0 flex h-9 items-center pe-2"><div class="bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs">  
</div></div></div><div class="overflow-y-auto p-4" dir="ltr">`<span class="hljs-built_in">echo</span> mntr | nc 127.0.0.1 9181`</div></div>Should show:

<div class="contain-inline-size rounded-2xl corner-superellipse/1.1 relative bg-token-sidebar-surface-primary" id="bkmrk-zk_server_state-lead"><div class="sticky top-9"><div class="absolute end-0 bottom-0 flex h-9 items-center pe-2"><div class="bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs">  
</div></div></div><div class="overflow-y-auto p-4" dir="ltr">`<span class="hljs-attribute">zk_server_state</span>    leader   (<span class="hljs-literal">on</span> one node)zk_server_state    follower (<span class="hljs-literal">on</span> other two nodes)`</div></div>### **Server stats**

<div class="contain-inline-size rounded-2xl corner-superellipse/1.1 relative bg-token-sidebar-surface-primary" id="bkmrk-echo-stat-%7C-nc-127.0"><div class="sticky top-9"><div class="absolute end-0 bottom-0 flex h-9 items-center pe-2"><div class="bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs">  
</div></div></div><div class="overflow-y-auto p-4" dir="ltr">`<span class="hljs-built_in">echo</span> <span class="hljs-built_in">stat</span> | nc 127.0.0.1 9181`</div></div>### **List znodes**

<div class="contain-inline-size rounded-2xl corner-superellipse/1.1 relative bg-token-sidebar-surface-primary" id="bkmrk-echo-ls-%2F-%7C-nc-127.0"><div class="sticky top-9"><div class="absolute end-0 bottom-0 flex h-9 items-center pe-2"><div class="bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs">  
</div></div></div><div class="overflow-y-auto p-4" dir="ltr">`<span class="hljs-built_in">echo</span> <span class="hljs-built_in">ls</span> / | nc 127.0.0.1 9181`</div></div>