nagios alerts recipients

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.
ejacobs
Posts: 9
Joined: Wed Dec 30, 2015 11:25 am

nagios alerts recipients

Post 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.
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: nagios alerts recipients

Post 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.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: nagios alerts recipients

Post by hsmith »

Thanks Eric. The file paths may be slightly different as it's coming from epel, but the idea still stands.
Former Nagios Employee.
me.
ejacobs
Posts: 9
Joined: Wed Dec 30, 2015 11:25 am

Re: nagios alerts recipients

Post 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
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: nagios alerts recipients

Post 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.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
ejacobs
Posts: 9
Joined: Wed Dec 30, 2015 11:25 am

Re: nagios alerts recipients

Post by ejacobs »

No luck with that one.
Thanks, anyway
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: nagios alerts recipients

Post 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.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: nagios alerts recipients

Post by hsmith »

Thanks Eric. Let us know what you come up with OP.
Former Nagios Employee.
me.
ejacobs
Posts: 9
Joined: Wed Dec 30, 2015 11:25 am

Re: nagios alerts recipients

Post 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")
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: nagios alerts recipients

Post by hsmith »

Glad to hear it's working! Would you like us to close this thread?
Former Nagios Employee.
me.
Locked