Hello There, Guest! Login Register
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Email notification - Help required

#1
Hi Robbie et al

I'm hoping this is me being stupid but I cant seem to get email notifications to get generated and sent (and thats not because everything is up on the network)

NEMS SST has been configured correctly (thanks Robbie!) and I can get test emails using nems-mailtest.

In NConf i have configured everything that I can think of to get emails generated and in Nagios I can see the settings appear to work as per pic 001 attached (under Reporting > Notifications).

However when i look at /var/log/sendemail.log it doesnt show the email being generated, nor does /var/log/sendemail?

Any ideas as to what I am missing please?

Thanks in advance!


Attached Files Thumbnail(s)
   
 Reply
#2
In NEMS NConf, click "Show" next to "Contacts" and then click the pencil next to your name. Is your email address entered correctly?

I'd have to actually see your config, but one other thought here is that these are going out nearly at midnight. So your notifications are probably set to "work hours" - check the service template you're using (eg., Host Templates -> Linux Servers - or whatever template you're using for these hosts) and ensure your notifications are set to 24x7.

Also, of course, ensure that w is one of the selected notification options. See https://docs.nemslinux.com/usage/notific...efinitions

If still stuck, send me your support.nems and I'll tell you what's up.
Robbie Ferguson // The Bald Nerd

Did I help you out? Appreciate what I do? Please consider saying thanks:
 Reply
#3
Thanks Robbie

The working hours are all fine as its all set to 24x7 at the moment.

The email address looks ok too, Im sure im making a small mistake somewhere but have been over it a few times now and can't spot it.

I'll get the support files generated and sent over shortly.

Many thanks!
 Reply
#4
Sounds good. Happy to see what I can find for you.
Robbie Ferguson // The Bald Nerd

Did I help you out? Appreciate what I do? Please consider saying thanks:
 Reply
#5
Hey Robbie

I got it working! It turns out that if the password has a symbol (i had a #) in it then for some reason it does not work. If I remove the # it works fine.

Maybe worth verifying from your end if that's the case too?

Cheers
 Reply
#6
Hmm, that makes sense. Nagios passes the password along to the smtp mailer, but the hashtag may break the command.

Thanks for letting me know.
Robbie Ferguson // The Bald Nerd

Did I help you out? Appreciate what I do? Please consider saying thanks:
 Reply
 
 
Forum Jump:

Users browsing this thread: 1 Guest(s)