How To Install and Connect an Agent to Pandora FMS Server
A Pandora FMS Agent is an utility put in on computer systems to be monitored utilizing the Pandora FMS Monitoring System. Software brokers carry out checks on server sources (similar to CPU, RAM, storage units, and so on.) and put in functions and companies (similar to Nginx, Apache, MySQL/MariaDB, PostgreSQL, and so on.); they ship the collected knowledge to the Pandora FMS Servers in XML format utilizing one of many following protocols: SSH, FTP, NFS, Tentacle (protocol) or some other knowledge switch means.
Note: Agents are solely wanted for server and useful resource monitoring, whereas community tools monitoring is finished remotely thus no want to set up software program brokers.
This article exhibits how to set up Pandora FMS software program brokers and join them to a Pandora FMS Server occasion for monitoring. This information assumes that you have already got a working occasion of a Pandora FMS server.
Installing Pandora FMS Agents in Linux Systems
On CentOS and RHEL distributions, run the next instructions to set up the required dependencies packages, then obtain the newest model of the Pandora FMS agent RPM package deal and set up it.
# yum set up wget perl-Sys-Syslog perl-YAML-Tiny # wget https://sourceforge.net/projects/pandora/files/Pandora%20FMS%207.0NG/743/RHEL_CentOS/pandorafms_agent_unix-7.0NG.743-1.noarch.rpm # yum set up pandorafms_agent_unix-7.0NG.743-1.noarch.rpm
On Ubuntu and Debian distributions, problem the next instructions to obtain the newest agent DEB package deal and set up it.
$ wget https://sourceforge.net/projects/pandora/files/Pandora%20FMS%207.0NG/743/Debian_Ubuntu/pandorafms.agent_unix_7.0NG.743.deb $ sudo dpkg -i pandorafms.agent_unix_7.0NG.743.deb $ sudo apt-get -f set up
Configuring Pandora FMS Agents in Linux Systems
After efficiently putting in the software program agent package deal, configure it to talk with the Pandora FMS server, within the /and so on/pandora/pandora_agent.conf configuration file.
# vi /and so on/pandora/pandora_agent.conf
Look for the server configuration parameter and set its worth to the IP handle of the Pandora FMS server as proven within the following screenshot.
Save the file and then begin the Pandora agent daemon service, allow it to auto-start at system boot and confirm the service is up and working.
# systemctl begin pandora_agent_daemon.service # systemctl allow pandora_agent_daemon.service # systemctl standing pandora_agent_daemon.service
Adding New Agent to Pandora FMS Server
Next, you want to add the brand new agent through the Pandora FMS console. Go to the net browser and log into the Pandora FMS server console and then go to Resources ==> Manage Agents.
From the following display, click on on Create agent to outline a brand new agent.
At the Agent Manager web page, outline a brand new agent by filling the shape as proven within the following screenshot. Once you’re executed, click on on Create.
After including brokers, they need to mirror within the entrance web page abstract as highlighted within the following screenshot.
If you view the newly created agent below Agent particulars and spotlight its standing indicator, it ought to present no displays. So you want to create modules for monitoring the host the agent is working on, as defined within the subsequent part.
Configuring a Module for Remote Agent Monitoring
For this information, we are going to create a module to verify if the distant host is stay (could be pinged). To create a module, go to Resource ==> Manage brokers. At the Agents outlined within the Pandora FMS display, click on on the agent title to edit it.
Once it masses, click on on the Modules hyperlink as highlighted within the following screenshot.
Then choose the module kind (e.g Create a new community server module) from the following display and click on Create.
From the following display, choose the module element group (e.g Network Management) and its precise verify kind (e.g Host Alive). Then fill within the different fields, and be certain that the Target IP is of the host to be monitored. Then click on Create.
Next, refresh the console and strive to view the agent below Agent particulars, and spotlight its standing indicator, it ought to present “All displays are OK”. And below modules, it ought to present that there’s one module that’s in a standard state.
When you open the agent now, it ought to show some monitoring info as highlighted within the following screenshot.
To take a look at if the module is working high quality, you may shut down the distant host and reset the modules for the agent. It ought to point out a essential standing (RED colour).
That’s all! The subsequent step is to find out how to use superior options of the PandoraFMS system and configure it to monitor your IT infrastructure, by creating extra servers, brokers and modules, alerts, occasions, stories, and a lot extra. For extra info, see the PandoraFMS documentation.