Topic: https://jloh.co/posts/nagios-nrpe-ansible-role/
hide preview

What's next? verify your email address for reply notifications!

jonathanthirkill 8y, 217d ago

Mooash - Thanks for this. Pushed this out to 4 web boxes but when NRPE is restarted the following error is pipped to /var/log/messages;

systemd: Starting NRPE...
nrpe[21425]: Unable to open config file '/etc/nagios/nrpe_local.cfg' for reading
nrpe[21425]: Continuing with errors...
nrpe[21425]: Unable to open config file '/etc/nagios/nrpe_ansible.cfg' for reading
nrpe[21425]: Continuing with errors...
nrpe[21425]: Could not open config directory '/etc/nagios/nrpe.d' for reading.
nrpe[21425]: Continuing with errors...

As the commands are defined in /etc/nagios/nrpe_ansible.cfg I am unable to add any commands.

Any ideas?

Thanks,
Jonathan

remark link
hide preview

What's next? verify your email address for reply notifications!

jloh 8y, 216d ago

What OS are you running this on? Can you open an issue on GitHub here (https://github.com/jloh/nag...for easier tracking.

hide preview

What's next? verify your email address for reply notifications!

Daniel 8y, 226d ago

Hi, I'm just new to ansible and I'm trying to get my head round it. I am trying to use it to deploy nagios in order to monitor my 10 client servers, but a bit confused, I wanna know the file to edit in ansible that will take care of the multiple client servers I want to monitor with nagios? Thank you as I look forward to reading your quick response. Cheers.

remark link
hide preview

What's next? verify your email address for reply notifications!

jloh 8y, 226d ago

Hey. If you have a look at the GitHub page here (https://github.com/jloh/nag...there is an example playbook. If you're having trouble applying the roles to hosts, I'd suggest starting here (http://docs.ansible.com/ans...and learning how to group hosts.

hide preview

What's next? verify your email address for reply notifications!