Page 1 of 1

Questions from a beginner -m1kkel

Posted: Wed Apr 24, 2013 8:53 am
by m1kkel
Hello.

I have just installed XI.

I have created some general services in the CoreConfig Manager. Example:

"Memory Usage" - WMI check.
Then i have added a hostgroup to that check, called "WindowsServers"

The checks are working fine, everything is good. Except a few things:

1. I have created myself as a contact, under Alerting - Contacts. I have also added me to that service check, Memory usage. But i do not recive any alarms. I have enabled D U R under "Host notifications options" and W U C under "Service notification options"

Still did not help.

HOWever if i create myself as a user in the nagios system, i DO recive alerts. But i have not put that user into that service called "Memory usage" neither have i attached that user on any hosts. I find that really weird?

If i check the nagios report "Notifications" i can see that a notification was sent to the contact - but the contact does however not recive a email. Dont know if the notification_email_handler requires some postfix setup????

I have set SMS alerting up, and that works just like expected. Add the contact to a service, and an sms is generated and sent out.

Please help

I

Re: Questions from a beginner

Posted: Wed Apr 24, 2013 9:12 am
by slansing
What is happening here is more than likely you have the wrong notification handlers selected, please take a look at this wiki page and give it a run through, that should get you up and running :) :

http://support.nagios.com/wiki/index.ph ... n_Problems

Re: Questions from a beginner

Posted: Wed May 01, 2013 8:42 am
by m1kkel
Hello there.

Thanks for the answer. I have set up a contact, and tried a custom nitification. NagiosXi shows that a mail should have been sent, aswell as a SMS.

I do revice the SMS, but not the email.

If i use a user instead of a contact, it works. But i want to use contacts, and not users.

I have attached a image where you can see, that nagios tries to notify "MikkelPrivatMail" with Custom: notify-host-by-email..

Re: Questions from a beginner

Posted: Wed May 01, 2013 8:52 am
by m1kkel
From the /var/log/maillog i can see that somwhow, nagios sends mails from [email protected] instead of the mail address i defined under "mail settings" .. and that is the problem, because the mail is deferred. How do i change that?

Re: Questions from a beginner

Posted: Wed May 01, 2013 12:51 pm
by lmiltchev
The "from" address can be easily set only when using the default xi notification handler. Since you are using "notify-host-by-email" and "notify-service-by-email", you will have to find a way to modify the "from" address via mta. What is the output of the following command?

Code: Select all

ll /etc/alternatives/mta

Re: Questions from a beginner

Posted: Thu May 02, 2013 1:23 am
by m1kkel
Hey. I managed to change the hostname, and now email alerts for contacts gets sent out.

Re: Questions from a beginner -m1kkel

Posted: Mon May 20, 2013 1:34 pm
by slansing
Hey m1kkel, I split the topics since we were working with another user on your original one. Can I assume that MikkelPrivatmail is not also a user, or is it? Also, please provide me with a sample host/service that should be sending emails right now due to a state change that has not. Are you able to see any alert notifications triggered in the notifications page? Home > Notifications.