nagios alerts recipients
nagios alerts recipients
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
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.
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Re: nagios alerts recipients
Thanks Eric. The file paths may be slightly different as it's coming from epel, but the idea still stands.
Former Nagios Employee.
me.
me.
Re: nagios alerts recipients
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
Assuming your Nagios installation is in /etc/nagios, try this:
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.
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" {} \;
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Re: nagios alerts recipients
No luck with that one.
Thanks, anyway
Thanks, anyway
Re: nagios alerts recipients
Time for the big guns. You're running this on your Nagios server, right?
That will search your entire file system for "etc@mydomain." If that doesn't find it, then I have no clue.
Code: Select all
find / -type f -exec grep -l "etc@mydomain" {} \;
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Re: nagios alerts recipients
Thanks Eric. Let us know what you come up with OP.
Former Nagios Employee.
me.
me.
Re: nagios alerts recipients
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
Glad to hear it's working! Would you like us to close this thread?
Former Nagios Employee.
me.
me.