Learn to restore nagios configuration backup. If you messed up nagios configuration, you can restore last known good config using these steps.
While troubleshooting or doing some configuration changes (R n D), sometimes you mess up configuration in nagios. This leads to no data dashboard. You need to revert back to last known good configuration so that tool can resume its work.
Normally you should have daily (or frequency of your choice i.e. weekly, hourly etc.) backups scheduled for tool configuration using services like cron. We will see how to configure this configuration backup in another article.
Now, navigate to the directory where configuration backups are kept. Normally they should be in gunzip format.
Once inside that directory run below restore command.
# check_mk --restore check_mk.11-Mar-2016.tar.gz
After restore to make sure, ownership are well in place, run below command
# chown -R apache:nagcmd /etc/check_mk/conf.d/wato/
Lastly restart nagios to take up restored configuration.
# check_mk -R --restart nagios-check_mk
Now go back to dashboard and check its populated with values!