#209: Set Up Nagios Monitoring Using Puppet Module - Jenrite/OE2-project-group-B GitHub Wiki

image

First I set up my puppet directory as the lab instructs

image

Then in the manifests folder I created my .pp files

image

I wrote the install.pp script, based on the mariaDB lab documentation

image

After that I updated site.pp to include the nagios script but I had a typo writing include as incude casing this error

image

After fixing the typo the test ran fine

image

image

After the install.pp script was tested and functional Rueben began finished the service script

image

An updated site.pp to include service

image

And the agent test runs successfully

image

config.pp file in nagios manifests courtesy of Ola

image

This was then added to the init.pp file

Then run sudo puppet agent --test on mgmt-b machine which creates /etc/nagios4/conf.d/ppy_hosts.cfg file

Followed up with sudo systemctl restart nagios4.service

image