Page 1 of 2
nagios alerts recipients
Posted: Fri Feb 19, 2016 8:23 am
by ejacobs
I'm new to nagios. Running 3.5.1 (from EPEL on CentOS 6.7). I set my self up as the recipient of alerts. And I do get them. But I see many other addresses that seem to correspond to directories under root, (ie etc@mydomain). I don't know where they come from nor how to get rid of them.
Re: nagios alerts recipients
Posted: Fri Feb 19, 2016 9:07 am
by eloyd
You will want to look through at /usr/local/nagios/etc/nagios.cfg and then every file located in /usr/local/nagios/etc/objects. It sounds like you have some dummy/starter services configured that came pre-configured in the samples.
Re: nagios alerts recipients
Posted: Fri Feb 19, 2016 12:30 pm
by hsmith
Thanks Eric. The file paths may be slightly different as it's coming from epel, but the idea still stands.
Re: nagios alerts recipients
Posted: Tue Feb 23, 2016 9:03 am
by ejacobs
Thanks for your attempts, but I have checked everything and I can't find anything amiss. FWIW, I have installed NagiosQL in hopes it might clean things up, but strange email addresses oersist
Re: nagios alerts recipients
Posted: Tue Feb 23, 2016 9:11 am
by eloyd
Assuming your Nagios installation is in /etc/nagios, try this:
Code: Select all
find /etc/nagios -name \*.cfg -exec grep -l "etc@mydomain" {} \;
/code]
Assuming your Nagios installation is in /usr/local/nagios, try this:
[code]
find /usr/local/nagios -name \*.cfg -exec grep -l "etc@mydomain" {} \;
I know it looks weird, but trust me, if Nagios is generating it, you'll find the file that contains that string. Replace the Nagios location with your actual Nagios location if it differs from those above. Once you've found the file, either edit it to remove the offending information, or post it here for further help.
Re: nagios alerts recipients
Posted: Tue Feb 23, 2016 12:34 pm
by ejacobs
No luck with that one.
Thanks, anyway
Re: nagios alerts recipients
Posted: Tue Feb 23, 2016 12:39 pm
by eloyd
Time for the big guns. You're running this on your Nagios server, right?
Code: Select all
find / -type f -exec grep -l "etc@mydomain" {} \;
That will search your entire file system for "etc@mydomain." If that doesn't find it, then I have no clue.
Re: nagios alerts recipients
Posted: Tue Feb 23, 2016 2:57 pm
by hsmith
Thanks Eric. Let us know what you come up with OP.
Re: nagios alerts recipients
Posted: Tue Feb 23, 2016 4:49 pm
by ejacobs
Well, not quite sure what I did, but I kept poking and tweaking and now I've gotten rid of the extraneous addresses. Thanks everyone for your help. (I suspect it may have been getting rid of the comment "Your email address here")
Re: nagios alerts recipients
Posted: Tue Feb 23, 2016 4:52 pm
by hsmith
Glad to hear it's working! Would you like us to close this thread?