I recently installed Nagios 2.0.4b. I know it’s a beta and I shouldn’t be running it, but I’m just playing for now.
Anyway, for some reason it doesn’t send me emails on alerts. I’m not sure why and I’ve looked in the docs to find out more about how it works, but it doesn’t have much info on how it actually mails the alert. I’m fairly certain I have my contact defined right:
‘nagios’ contact definition
alias Tom Jones
Anyway, what doesn’t seem clear to me is "how does it know where to send the email. I don’t see where you define an SMTP server, and I didn’t set one up on my Linux box.
What’s odd here is also that I had two of us in a group. Strangely, it was emailing to my coworker, but not me. I’ve since removed him, cause it was annoying him during my testing. Anyway, it’s still not emailing me.
I checked the log files, but I don’t see anything about this.
I did notice one post that said to check the rights on the /var/mail and see that there isn’t even a “nagios” directory:
[root@localhost etc]# ls -la /var/mail
lrwxrwxrwx 1 root root 10 Oct 13 10:18 /var/mail -> spool/mail
Should there be one?
Any thoughts or directions you could point me to.