Install OpsView with RedHat or CentOS
Python compatibility
To use the Open Integration Manager for agent-based integrations, you need Python 3.8.0 or later and agent version 10.2 or later.
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 the JFrog, PyPI, and yum repositories is required to install all dependencies.
Install the BigPanda Agent on RedHat or CentOS
Configure OpsView
Open the main OpsView configuration file (usually
/usr/local/nagios/etc/nagios.cfg):$ sudo vim /usr/local/nagios/etc/nagios.cfg
Set
log_rotation_methodtod(= daily log rotation)Make sure
log_archive_pathis configured (= location of old logs)Test that OpsView (usually
nagiosuser) has write permissions to thelog_archive_pathfolder
Reload the OpsView service for the changes to take effect.
sudo service opsview restart
Configure the BigPanda Agent
Generate the agent's configuration file:
$ sudo bigpanda-config --init --token <Your Org Bearer Token> --server-url https://eu-api.bigpanda.io --alert-url https://eu.integrations.bigpanda.io $ sudo bigpanda-config --add opsview --app-key <Your App Key>
When prompted, specify the locations of the nagios.log, status.dat, and objects.cache files.
The script output should look like this:
Log File Path: /var/log/nagios/nagios.log Status Dat Path: /var/cache/nagios/status.dat Objects Cache Path: /var/cache/nagios/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 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
Success
You should be able to see all your active alerts from this integration in the Incidents tab.