Ticket ID #233 ‐ Resolve MariaDB Service Check Failures in Nagios - GriffinKat/group-a GitHub Wiki

Troubleshooting Nagios Checks

Lab 7.1

The Mariadb check is currently failing in Nagios

image

To remedy this there are some troubleshooting steps we can take to figure out why

1.

When troubleshooting, start with the simplest thing. In this instance going to the databse server and checking that it's running is the best option to start with

2.

Find the hostgroup to which the check applies

image

image image

Update the check command in
/etc/nagios4/conf.d/ppt services.cfg

/etc/puppetlabs/code/modules/nagios/manifests
sudo nano config.pp

image

sudo /opt/puppetlabs/puppet/bin/puppet agent --server=mgmt-a --no-daemonize --verbose --onetime

Restart the Nagios service

sudo systemctl restart nagios4

After completing the lab a new error has emerged concerning the password

image

To fix this, restart the service

sudo /opt/puppetlabs/bin/puppet agent --test

sudo systemctl restart nagios4.service