LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-13-2010, 01:36 AM   #46
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295

Hello,

I don't see any reason at first hand for which you are not receiving regular notifications. Can you check inside your nagios.cfg file what the value of interval_length is set to? It should be 60 (seconds). Also post from the nagios.cfg file the lines that begin with cfg_file= to see what configs get loaded.

Kind regards,

Eric
 
Old 08-13-2010, 03:13 AM   #47
Xanios
Member
 
Registered: Jul 2010
Posts: 216

Original Poster
Rep: Reputation: 30
Hi,

the interval_length is set to 60 seconds. and here is the cfg_file:

Code:
cfg_file=/usr/local/nagios/etc/objects/commands.cfg
cfg_file=/usr/local/nagios/etc/objects/contacts.cfg
cfg_file=/usr/local/nagios/etc/objects/timeperiods.cfg
cfg_file=/usr/local/nagios/etc/objects/templates.cfg

# Definitions for monitoring the local (Linux) host
cfg_file=/usr/local/nagios/etc/objects/localhost.cfg

# Definitions for monitoring a Windows machine
cfg_file=/usr/local/nagios/etc/objects/windows.cfg

cfg_dir=/usr/local/nagios/etc/serviceext
and may i ask one thing, if, my school network blocks access to port 587, thus causing 'Connection Refused'. The solution to it would be to unblock it? >.<
 
Old 08-13-2010, 03:27 AM   #48
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hi,

Are you still getting connection refused in your logs?

Kind regards,

Eric
 
Old 08-13-2010, 03:31 AM   #49
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hello,

Check if there is mail in the mailqueue with the command:
Code:
postqueue -p
or
Code:
sudo postqueue -p
if you are logged in as regular user.

If there are mails listed, then try delivering them again using:
Code:
postqueue -f
or
Code:
sudo postqueue -f
if you are logged in as regular user.

After that check your mails again. If you still get connection refused, while you were able to send before, and nothing has changed, then check if the school network blocks the traffic in any way.

Kind regards,

Eric
 
Old 08-13-2010, 03:44 AM   #50
Xanios
Member
 
Registered: Jul 2010
Posts: 216

Original Poster
Rep: Reputation: 30
Hi,

Yup, in school i always get Connection Refused.
But when i tried at home, it works.
So it shows that school has blocked it..i guess

Sent the mail but didn't receive it. sigh ):
 
Old 08-13-2010, 03:55 AM   #51
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hi,

Are you at your school right now? And what's showing in the logs? When you state trying from home what do you mean exactly? Where is your Nagios server located? At your school or at your home?

Kind regards,

Eric
 
Old 08-13-2010, 04:01 AM   #52
Xanios
Member
 
Registered: Jul 2010
Posts: 216

Original Poster
Rep: Reputation: 30
Hi,

I'm in school now. Logs gave me:

Code:
Aug 13 15:47:16 ubuntu postfix/smtp[2891]: D1C0440ABA: to=<xanios@gmail.com>, relay=none, delay=2818, delays=2797/0.02/21/0, dsn=4.4.1, status=deferred (connect to smtp.gmail.com[72.14.213.109]:587: Connection refused)
Aug 13 15:47:16 ubuntu postfix/smtp[2892]: connect to smtp.gmail.com[72.14.213.109]:587: Connection refused
Aug 13 15:47:16 ubuntu postfix/smtp[2892]: 655F940A5C: to=<root@server.com>, orig_to=<root>, relay=none, delay=4936, delays=4915/0.04/21/0, dsn=4.4.1, status=deferred (connect to smtp.gmail.com[72.14.213.109]:587: Connection refused)
Aug 13 15:47:16 ubuntu postfix/smtp[2893]: connect to smtp.gmail.com[72.14.213.109]:587: Connection refused
Aug 13 15:47:16 ubuntu postfix/smtp[2893]: 0B8D340ADA: to=<xanios@server.com>, relay=none, delay=2796, delays=2775/0.06/21/0, dsn=4.4.1, status=deferred (connect to smtp.gmail.com[72.14.213.109]:587: Connection refused)
These are the last few lines in log files.


What i meant was, i had a backup and i bought it home. At home i trail and error and made the email works, i was able to receive emails at home. BUT when i used the same working file in school instead, it doesn't work. I got 'Connection Refused'.
 
Old 08-13-2010, 04:23 AM   #53
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hi,

If the exact same config works from your home but fails at school, then I think it's safe to say the problem lies with the network connection at school. Talk to the network admins about this and see if they are willing to allow the connection.

Kind regards,

Eric
 
Old 08-15-2010, 11:12 PM   #54
Xanios
Member
 
Registered: Jul 2010
Posts: 216

Original Poster
Rep: Reputation: 30
Hi,

I guess so.

Thank you.


By the way, email notifications have stopped sending lol! x_x
 
Old 08-16-2010, 02:10 AM   #55
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hello and good morning,

Stopped as in 'all services up and running'? Or the 'bad' way, that you're not getting any notifications at all? What are the log showing? Is this happening from your home network or at school?

Kind regards,

Eric
 
Old 08-16-2010, 02:43 AM   #56
Xanios
Member
 
Registered: Jul 2010
Posts: 216

Original Poster
Rep: Reputation: 30
Hi,

It's in a bad way. Hmm. There are still a lot of services down yet i am no longer receiving notifications ):

Both in school and at home, this also happens.

Now i'm in school x.x
 
Old 08-16-2010, 02:48 AM   #57
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hello,

Have you already talked to the network admin about opening the port for you so you can send out mails? If, like I think, that you're school network is blocking sending mail, then you'll have to wait untill you get home to start troubleshooting.

Kind regards,

Eric
 
Old 08-16-2010, 02:49 AM   #58
Xanios
Member
 
Registered: Jul 2010
Posts: 216

Original Poster
Rep: Reputation: 30
Hi,

but the problem is, even when i'm at home, i also have stopped receiving emails too x_x
 
Old 08-16-2010, 02:51 AM   #59
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hello,

That I understood from your post, but since you're at school at the moment, with the network that presumably blocks your access, you cannot start troubleshooting since you'll be unable to send out mails.

Kind regards,

Eric
 
Old 08-16-2010, 02:55 AM   #60
Xanios
Member
 
Registered: Jul 2010
Posts: 216

Original Poster
Rep: Reputation: 30
Hi,

Oh okay x_x
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Delivery status notification from Cron. glore2002 Debian 4 10-12-2009 06:43 PM
Delivery status notification- Using Postfix 2.2.7 on Clarkconnect Enterprise 4.2 cgreen6911 Linux - Enterprise 0 03-26-2009 05:39 PM
How to disable delivery status notification courier sci3ntist Linux - Server 0 01-15-2008 07:35 AM
delivery failure notification pansarevaibhav Linux - Newbie 1 12-16-2006 04:21 AM


All times are GMT -5. The time now is 10:33 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration