check service status on ubuntu server by windows-service on windows server
<p>i have a huge problem with my Windows-Service (C#). We had a system change on a few servers (from windows 2012R2 to Ubuntu) and for all these servers i wrote a monitoring tool as windows service running on a windows server. In this service i checked a few things on the server which worked fine. One of the things i had to check was if some special windows services (e.g. iis) are in <code>state = running</code>.</p>

<p>So - is there ANY possibility to check an Ubuntu-Service programmatically from my monitoring service? Can i set commands on the Ubuntu shell? Or start a bat File?</p>

<pre><code>ServiceController sc = new ServiceController("servicename", "ubuntu-IP"))
</code></pre>

<p>Using a ServiceController doesn't work i guess because of Windows != Ubuntu?!</p>

<p>It should be an "easy" way to do it - so if it would be too ornate i just don't do it. </p>

<p>Any information would be appreciated.</p>