Config Agents - CPNV-ES-MAS3-X/Pandora-Containerization GitHub Wiki

Setup Win Mon Cli” & “Setup Lin Mon Cli

Install Agents with bouton new “Deploy agent”

Bouton “Deploy Agents” sur la page Management > Manage Agents

Untilteled Untitled

Windows

#Requirements
- Internet access.
- Have powershell installed.

Enter your IP address of your Server in “Server Address” and “Workstation for the Group

Deploy Agent Windows

It will give you the commands lines to install the agent on Windows, you have to launch a Powershell with the Admin Privileges

Untitled

Copy paste your code in a Powershell console with Administrator privileges :

Invoke-WebRequest -Uri https://firefly.pandorafms.com/pandorafms/latest/Windows/Pandora%20FMS%20Windows%20Agent%20v7.0NG.x86_64.exe -OutFile ${env:tmp}\pandora-agent-windows.exe; & ${env:tmp}\pandora-agent-windows.exe /S  --ip [IP Server] --group "Workstations" --remote_config 1

image-20231219152636774

Once its installed, start it with :

NET START PandoraFMSAgent

image-20231219153021883


Linux

#Requirements
- Internet access.
- curl

Install basic requierements :

sudo apt install curl

For the installer on linux you can do the same thing than the Window client.

Deploy Agent Linuxpng

Untitled

Warning (Install linux)

If not using root account, use this to execute the command as root :

sudo su -c "export PANDORA_SERVER_IP='10.10.10.123' && \
export PANDORA_REMOTE_CONFIG=1 && \
export PANDORA_GROUP='Workstations' && \
curl -Ls https://pfms.me/agent-deploy | bash"

image-20231219155359930

Restart the agent if needed :

sudo /etc/init.d/pandora_agent_daemon restart

image-20231219155431369

Output for Linux and Windows


Basic Metrics

Show CPU RAM and HDD metrics on Pandora FMS Web

Basic Metris are automatically up when deploying a new agent for the Windows client and the Linux client. image

Apache Service Monitoring For Windows and Linux

Linux

#Requirements

- Internet access.
- unzip
- wget

Install basic requirements :

sudo apt install curl unzip wget apache2

Source :

Configuration | Pandora FMS Guides

Configuration :

Download the zip with the script in it on your debian: https://pandorafms.com/library/wp-content/uploads/2022/11/apache_plugin-2.zip

sudo wget https://pandorafms.com/library/wp-content/uploads/2022/11/apache_plugin-2.zip

image-20231219155549535

Extract it in /tmp

sudo unzip apache_plugin-2.zip -d /etc/pandora/plugins

image-20231219155703847

Give it the right to be executed

sudo chmod 755 /etc/pandora/plugins/apache_plugin.sh

Next edit the config file of apache

sudo nano /etc/apache2/apache2.conf

And add the following at the end of the config file (Don't forget to modify [IP Server] with you server IP address)

ExtendedStatus on
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from [IP Server]
</Location>

Save your config file and test it with this command, change [IP Server] with your server IP once again

sudo /etc/pandora/plugins/apache_plugin.sh http://[IPserver]/server-status

Output of the command line

image-20231219160512140

Edit your pandora_agent.conf and those lines in the end of the file and changes the Server IP in those lines

sudo nano /etc/pandora/pandora_agent.conf

module_plugin /etc/pandora/plugins/apache_plugin.sh http://[IP Server]/server-status

You can restart your agent

/etc/init.d/pandora_agent_daemon restart

Output for Linux :

After a few minutes, in your debian agents on your web console you can see the apache monitored

image-20240109103115540

⚠️ **GitHub.com Fallback** ⚠️