LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Delivery Status Notification (Failure) (https://www.linuxquestions.org/questions/linux-newbie-8/delivery-status-notification-failure-825066/)

EricTRA 08-13-2010 12:36 AM

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

Xanios 08-13-2010 02:13 AM

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? >.<

EricTRA 08-13-2010 02:27 AM

Hi,

Are you still getting connection refused in your logs?

Kind regards,

Eric

EricTRA 08-13-2010 02:31 AM

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

Xanios 08-13-2010 02:44 AM

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 ):

EricTRA 08-13-2010 02:55 AM

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

Xanios 08-13-2010 03:01 AM

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'.

EricTRA 08-13-2010 03:23 AM

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

Xanios 08-15-2010 10:12 PM

Hi,

I guess so.

Thank you.


By the way, email notifications have stopped sending lol! x_x

EricTRA 08-16-2010 01:10 AM

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

Xanios 08-16-2010 01:43 AM

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

EricTRA 08-16-2010 01:48 AM

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

Xanios 08-16-2010 01:49 AM

Hi,

but the problem is, even when i'm at home, i also have stopped receiving emails too x_x

EricTRA 08-16-2010 01:51 AM

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

Xanios 08-16-2010 01:55 AM

Hi,

Oh okay x_x


All times are GMT -5. The time now is 09:16 PM.