-
Notifications
You must be signed in to change notification settings - Fork 74
Install on RockyLinux 8 with python3
T.J. Yang edited this page Jun 1, 2023
·
4 revisions
[me@rocky8t01d ~]$ cat /etc/redhat-release ;date
Rocky Linux release 8.8 (Green Obsidian)
Thu Jun 1 06:48:28 CDT 2023
[me@rocky8t01d ~]$
For now, Adagios on SELinux enabled machines does not work.
setenforce 0
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
sudo yum install nagios
Right now the fedora version does not contain the version needed, so we install from git clone
git clone git://github.com/pynag/pynag.git
cd pynag
sudo ./setup.py install
$ pynag list where object_type=service
object_type shortname filename
--------------------------------------------------------------------------------
service None /etc/nagios/objects/templates.cfg
service None /etc/nagios/objects/templates.cfg
service localhost/PING /etc/nagios/objects/localhost.cfg
service localhost/Root Partition /etc/nagios/objects/localhost.cfg
service localhost/Current Users /etc/nagios/objects/localhost.cfg
service localhost/Swap Usage /etc/nagios/objects/localhost.cfg
service localhost/Total Processes /etc/nagios/objects/localhost.cfg
service localhost/Current Load /etc/nagios/objects/localhost.cfg
service localhost/SSH /etc/nagios/objects/localhost.cfg
service localhost/HTTP /etc/nagios/objects/localhost.cfg
----------10 objects matches search condition-----------------------------------
sudo yum install python-simplejson
sudo yum install Django
useradd -G nagios,wheel adagios
su - adagios
cd
git clone git://github.com/opinkerfi/adagios.git
cd adagios/adagios
sudo cp -r etc/adagios /etc/adagios
sudo chown -R nagios:nagios /etc/adagios
sudo chmod g+w -R /etc/adagios
sudo mkdir /var/lib/adagios
sudo chown nagios:nagios /var/lib/adagios
sudo mkdir /etc/nagios/adagios
# Add config directory to /etc/nagios/nagios.cfg
sudo pynag config --set cfg_dir=/etc/nagios/adagios
sudo setfacl -R -m d:g:nagios:rwx /etc/nagios
sudo setfacl -R -m g:nagios:rwx /etc/nagios
cd /etc/nagios
git init
git add .
git commit -a -m "Initial commit"
cd ~/adagios/adagios
./manage.py runserver
[http://localhost:8000]
Go to Misc -> Settings Adjust "nagios url" appropriately, eg http://localhost/nagios
service httpd start
service nagios start