Skip to main content

Install the BigPanda Agent for RedHat or CentOS

Python compatibility

To use the Open Integration Manager for Agent-based integrations, Python version>= 3.8.0 and an Agent version >= 10.2 are required.

Prerequisites

python >= 3.8.0 is required for the latest version of the BigPanda Agent, and will be installed by the BigPanda Agent installer if it does not exist.

Note: Access to JFrog, pypi, and yum repositories are required to install all dependencies.

Create an App Key

Create an app key in BigPanda.

Integration specific

You'll need a separate app key for each integrated system.

https://files.readme.io/9865f2f-Integrations_App_Key_Creation.jpg

App Key Configuration in BigPanda

Install the BigPanda Agent on RedHat or CentOS

Configure the BigPanda Agent

Generate the agent's configuration file:

$ sudo bigpanda-config --init --token <Your Org Bearer Token>
$ sudo bigpanda-config --add listener --app-key <Your App Key>

When prompted, specify the locations of <integration_name>.log, status.dat, and objects.cache files.

The script output should look like this:

Log File Path: /var/log/icinga/icinga.log
Status Dat Path: /var/cache/icinga/status.dat
Objects Cache Path: /var/cache/icinga/objects.cache

Of course, the actual paths will depend on your installation.

Update Permissions

Give the agent read permissions to the objects.cache, status.dat and log files. A possible way to do it:

$ sudo usermod -a -G "<GROUP OF OBJECT CACHE FILE>,<GROUP OF LOG FILE>,<GROUP OF STATUS DAT FILE>" bigpanda

Start the BigPanda Agent

Start the BigPanda agent service by running the following command:

$ sudo systemctl start bigpanda

if systemd is not installed, use the alternative command.

 $ sudo service bigpanda start

Verify the agents have started:

$ systemctl status bigpanda

Troubleshooting

You should have the bigpanda directory with the bigpanda.conf config file located at /etc/bigpanda/bigpanda.conf.

If the configs are missing or the package did not set up correctly, stop the service the and reinstall the package.

  $ sudo systemctl stop bigpanda

if systemd is not installed, use the alternative command:

 $ sudo service bigpanda stop

To reinstall the package:

  $ sudo yum reinstall -y bigpanda

Uninstall the BigPanda Agent from RedHat or CentOS

  1. Connect to the server where you want to uninstall the BigPanda Agent package. You must have root privileges.

  2. Run the following commands.

    • sudo yum remove bigpanda-agent
    • sudo rm /etc/yum.repos.d/bigpanda.repo

Uninstall the BigPanda Agent manually

Package will not be removed from package manager's database

This method does not remove the package from your package manager's database. Consider using this information to verify that the Agent files are completely removed.

  1. Stop the BigPanda service by running the following command:

    sudo service bigpanda stop
  2. Remove the BigPanda python module from the Python3 library. This library is usually located in /usr/lib/python<VERSION>/site-packages/bigpanda or /usr/lib/python<VERSION>/dist-packages/bigpanda.

    You can verify site package locations with the following commands:

    $ python3 -m site
    $ pip3 list -v
  3. Remove the following files:

    • /usr/bin/bigpanda-agent/

    • usr/bin/bigpanda-config

    • etc/init/bigpanda.conf

    • etc/init.d/bigpanda

    • /etc/bigpanda

    • var/log/bigpanda

    • var/lib/bigpanda

    • var/run/bigpanda

    Using the find command can help locate files

    Use the find command to help locate files: $ sudo find / -name bigpanda*

  4. Remove the BigPanda user and group by running the following commands:

    sudo userdel -r bigpanda
    sudo groupdel bigpandav