9. Remote Server Monitoring

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.

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.

Credential Store

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.

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

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

pfms-first-steps-remote-monitoring-image-020.png

Our credentials should look similar to this:

pfms-first-steps-remote-monitoring-image-030.png

Remote execution modules

Create a remote execution module on the desired agent:

pfms-first-steps-remote-monitoring-image-050.png

For the module type, in this case, we will choose the one corresponding to numerical data, Remote execution, numeric data:

pfms-first-steps-remote-monitoring-image-060.png

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.

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:

pfms-first-steps-remote-monitoring-image-070.png

Note that:

The commands to use are:

For Linux®:

ps aux | wc -l

For MS Windows®:

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.

We save the module and in a few minutes you will have information similar to the following:

pfms-first-steps-remote-monitoring-image-080.png

Are you not achieving the results explained in this chapter? Access the help or support section.


Revision #12
Created 12 November 2020 13:23:05
Updated 9 April 2026 09:26:50 by Jimmy Olano