Welcome to the Pandora FMS Module Library

This is a library with modules, documentation and tools for Pandora FMS users, both public Open Source and Enterprise. Please use your support credentials (same as used to enter support/ticketing system) in the menu to your right. You will be granted access to a resourceful module library, such as Oracle, VMware, JBoss and others, ready to be used in production enviroments, with official professional support from Artica. If you do not own an enterprise account, you still can browse and download lots of modules, you can even register a free account and contribute with your own modules/tools for other public users.

Home > Articles

How to get running several Pandora FMS agents in the same Linux/Unix system

Author: slerena2 Create in: 09/11/2009 Update in: 01/01/1970
Module type : Documentation

Describes what do you need to do to run several different agents in the same system.

Module data

How to get running several Pandora FMS agents in the same Linux/Unix system

First at all, you need to setup two different .conf files:

cp -R /etc/pandora /etc/pandora2

/etc/pandora/pandora_agent.conf for agent #1
/etc/pandora2/pandora_agent.conf for agent #2

Edit the new .conf file to have a different hostname and choose your own modules.

You need also to alter the original script to launch the pandora agent, so copy original one:

cp /etc/init.d/pandora_agent_daemon /etc/init.d/pandora_agent_daemon2

Edit the new one at /etc/init.d/pandora_agent_daemon2

Alter PANDORA_PATH variable to point to /etc/pandora2

Standard script doesn't support multiple agents (but this could change in the future), so probably you need to edit pidof_pandora funcion and make it as the following:

function pidof_pandora () (
PANDORA_PID=`ps aux | grep $DAEMON $PANDORA_PATH| grep -v grep | head -1 | awk '{ print $2 }'`