LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 09-04-2012, 05:26 AM   #1
sodsada
LQ Newbie
 
Registered: Sep 2012
Posts: 4

Rep: Reputation: Disabled
Question Setting up a mail notification Nagios on a Ubuntu


Hi,

I am currently working on Nagios Core 3.2.3 and i'm trying to setup a mail notification.

I already install postfix but i don't know exactly how to test email or send email out via Ubuntu.

Could you please advise how to with this?

here is my logfile.

root@ubuntu:~# tail -f /var/log/mail.log
Sep 4 17:16:27 ubuntu postfix/error[29734]: 12B2843C43: to=<root@mail.bfl.la>, relay=none, delay=378797, delays=378780/17/0/0, dsn=4.4.3, status=deferred (delivery temporarily suspended: Host or domain name not found. Name service error for name=mail.bfl.la type=MX: Host not found, try again)
 
Old 09-04-2012, 05:50 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well that's nothing to do with postfix, it can't resolve the destination domain. can you resolve it from a dig command?
 
Old 09-04-2012, 05:57 AM   #3
sodsada
LQ Newbie
 
Registered: Sep 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Hi Chris,

after did dig command and the i got the result below but i don't know the meaning.

Please advise!

root@ubuntu:~# dig bfl.la

; <<>> DiG 9.8.1-P1 <<>> bfl.la
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 63926
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;bfl.la. IN A

;; Query time: 1833 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Sep 4 17:54:48 2012
;; MSG SIZE rcvd: 24
 
Old 09-04-2012, 06:14 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well your DNS just isn't working. do you have legitimate name servers defined in /etc/resolv.conf?
 
Old 09-04-2012, 06:28 AM   #5
sodsada
LQ Newbie
 
Registered: Sep 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Hi Chris,

it is Dynamic resolv.conf file and there is a message DO NOT EDIT THIS FILE BY HAND

root@ubuntu:~# cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.0.1

normally i was edit this file by insert DNS IP address but it always reset by itself and i don't why
 
Old 09-04-2012, 06:32 AM   #6
sodsada
LQ Newbie
 
Registered: Sep 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Hi Chris,

when i did dig command on internally it is working.

root@ubuntu:~# dig bfl.net

; <<>> DiG 9.8.1-P1 <<>> bfl.net
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 15366
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;bfl.net. IN A

;; ANSWER SECTION:
bfl.net. 600 IN A 10.10.40.11
bfl.net. 600 IN A 10.0.49.80
bfl.net. 600 IN A 10.10.40.3

;; Query time: 7 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Sep 4 18:30:50 2012
;; MSG SIZE rcvd: 73
 
Old 09-04-2012, 06:35 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
right, so you presumably do NOT have a dns server running locally? Why does it say 127.0.0.1 in there? TBH I've no experience with the resolvconf tool, but looks like it comes back to the dns-nameservers setting in your interface config file:

http://www.linuxcertif.com/man/8/resolvconf/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Nagios E-mail Notification setting turiyain Linux - Server 1 08-17-2012 08:29 AM
[SOLVED] Setting up a mail notification Nagios on a Ubuntu machine Sturme Linux - Networking 17 04-08-2011 04:13 PM
E-mail notification with Nagios Hiroyatamoto Linux - Newbie 7 06-30-2009 11:18 AM
Nagios E-mail notification Hiroyatamoto Linux - General 5 07-02-2008 03:55 AM
Nagios E-mail notification setup Hiroyatamoto Linux - Newbie 3 07-01-2008 04:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 11:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration