Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Hey all, I recently moved my Nagios from FreeBSD to CentOS 6.5. I've had a few hurdles to get over but things are running smoothly now.
I am in the process of configuring alerts and I'm trying to figure out my contacts.cfg file. I copied my file over from FreeBSD but it's configured quite a bit differently from what I'm seeing for Linux. Here's a sample I found on SourceForge ( http://nagios.sourceforge.net/docs/3_0/ ... ml#contact )
That's a very robust config file, yes. You can always use templates if you don't want to fill in all values each time but what you have there will work just fine. Just out of curiosity, what did your contact configs look like on your FreeBSD system? They should have looked pretty similar.
Sigh, I also see that I didn't mention that alerts aren't being sent out. I checked /usr/local/nagios/var/nagios.log and I don't see anything in there about alerts errors or otherwise.
Check /var/log/maillog for entries relating to failed emails. It's possible they are sending but being rejected. Check the Notifications section in the web interface to see if Nagios *thinks* they are being sent.
Yep, that did it. I just did another "Send custom service notification" and I got the text in about 20 seconds. Well ok then, we're off to the next step in getting the alerting configured for my devices that warrant that level of monitoring.