Questions from a beginner -m1kkel

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
m1kkel
Posts: 4
Joined: Wed Apr 24, 2013 8:39 am

Questions from a beginner -m1kkel

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Questions from a beginner

Post 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
m1kkel
Posts: 4
Joined: Wed Apr 24, 2013 8:39 am

Re: Questions from a beginner

Post 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..
You do not have the required permissions to view the files attached to this post.
m1kkel
Posts: 4
Joined: Wed Apr 24, 2013 8:39 am

Re: Questions from a beginner

Post 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?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Questions from a beginner

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
m1kkel
Posts: 4
Joined: Wed Apr 24, 2013 8:39 am

Re: Questions from a beginner

Post by m1kkel »

Hey. I managed to change the hostname, and now email alerts for contacts gets sent out.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Questions from a beginner -m1kkel

Post 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.
Locked