# 9. Remote Server Monitoring

<p class="callout info"><span style="font-size: 11pt; font-family: Arial; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Pandora FMS also offers us the possibility to monitor computers using Linux® or MS Windows® operating systems remotely without the need to install an EndPoint.</span></p>

<span style="font-size: 11pt; font-family: Arial; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">To achieve this, we will need to create **remote execution modules** that allow us to query the device from our Pandora FMS installation by executing a command remotely and obtaining the desired result. For security reasons, authorized user credentials are required for each operating system, so we will first use the **Credential Store** functionality in PFMS and then create a remote execution module for each mentioned operating system.</span>

### Credential Store

<p class="callout info"><span style="font-size: 11pt; font-family: Arial; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">The credential store saves sets of *user/password* so they can be reused in different checks, and whose data is not shown in the check configuration.</span></p>

Through the **Management→Configuration→Credential Store** menu, you can access this functionality and must click the **Add key** button.

First, we will create a credential to connect to a GNU/Debian® (Ubuntu®) computer via SSH:

[![pfms-first-steps-remote-monitoring-image-010.png](https://pandorafms.com/guides/public/uploads/images/gallery/2026-03/scaled-1680-/pfms-first-steps-remote-monitoring-image-010.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2026-03/pfms-first-steps-remote-monitoring-image-010.png)

And then we add a credential for an MS Windows® computer via WMI:

[![pfms-first-steps-remote-monitoring-image-020.png](https://pandorafms.com/guides/public/uploads/images/gallery/2026-03/scaled-1680-/pfms-first-steps-remote-monitoring-image-020.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2026-03/pfms-first-steps-remote-monitoring-image-020.png)

Our credentials should look similar to this:

[![pfms-first-steps-remote-monitoring-image-030.png](https://pandorafms.com/guides/public/uploads/images/gallery/2026-03/scaled-1680-/pfms-first-steps-remote-monitoring-image-030.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2026-03/pfms-first-steps-remote-monitoring-image-030.png)

### Remote execution modules

<span style="font-size: 11pt; font-family: Arial; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Create a remote execution module on the desired agent: </span>

<span style="font-size: 11pt; font-family: Arial; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[![pfms-first-steps-remote-monitoring-image-050.png](https://pandorafms.com/guides/public/uploads/images/gallery/2026-03/scaled-1680-/pfms-first-steps-remote-monitoring-image-050.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2026-03/pfms-first-steps-remote-monitoring-image-050.png)</span>

<span style="font-size: 11pt; font-family: Arial; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">For the module type, in this case, we will choose the one corresponding to numerical data, **Remote execution, numeric data**:</span>

<span style="font-size: 11pt; font-family: Arial; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[![pfms-first-steps-remote-monitoring-image-060.png](https://pandorafms.com/guides/public/uploads/images/gallery/2026-03/scaled-1680-/pfms-first-steps-remote-monitoring-image-060.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2026-03/pfms-first-steps-remote-monitoring-image-060.png)</span>

<p class="callout info"><span style="font-size: 11pt; font-family: Arial; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">If you want to monitor something that returns a true or false state, such as a process status, you just need to ensure that your command returns 0 for a failed value and a non-zero value for a correct one. You must use a **Remote execution, boolean data** data type so that Pandora FMS interprets it as such and omits the use of any thresholds.</span></p>

<span style="font-size: 11pt; font-family: Arial; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Now we are going to configure the check itself and add the commands to be executed to find out the number of processes or tasks that remote computer is running. This value is one of the indications of the workload being performed by the machine in question:</span>

<span style="font-size: 11pt; font-family: Arial; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[![pfms-first-steps-remote-monitoring-image-070.png](https://pandorafms.com/guides/public/uploads/images/gallery/2026-03/scaled-1680-/pfms-first-steps-remote-monitoring-image-070.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2026-03/pfms-first-steps-remote-monitoring-image-070.png)</span>

<span style="font-size: 11pt; font-family: Arial; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Note that:</span>

- <span style="font-size: 11pt; font-family: Arial; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">The IP address or URL of the computer to be checked must be entered. *This is independent of the IP address that may have been added, if applicable, to the agent containing the module in question.*</span>
- <span style="font-size: 11pt; font-family: Arial; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Select the appropriate credential in **Credential identifier**.</span>

<span style="font-size: 11pt; font-family: Arial; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">The commands to use are:</span>

<span style="font-size: 11pt; font-family: Arial; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">For Linux®:</span>

```bash
ps aux | wc -l
```

For MS Windows®:

```bash
tasklist | find /C /V ""
```

Lastly, we will establish the warning and critical thresholds. Since the workload a computer can handle depends intrinsically on the hardware used, for instructional purposes we will arbitrarily set 200 to 299 for warning and over 300 to declare the monitored device in a critical state.

<p class="callout success">We save the module and in a few minutes you will have information similar to the following:</p>

[![pfms-first-steps-remote-monitoring-image-080.png](https://pandorafms.com/guides/public/uploads/images/gallery/2026-03/scaled-1680-/pfms-first-steps-remote-monitoring-image-080.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2026-03/pfms-first-steps-remote-monitoring-image-080.png)

Are you not achieving the results explained in this chapter? Access the [help](https://pandorafms.com/guides/public/books/first-steps-with-pandora-fms/page/21-where-to-look-if-problems-arise) or [support](https://pandorafms.com/guides/public/books/first-steps-with-pandora-fms/page/22-support) section.