Mailbox full?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Mailbox full?

Post by WillemDH »

I've been receiving messages lately that I have new mail in/var/spool/mail/root

[root@srvnagios01 mail]# ls -l
total 50072
-rw-rw----. 1 nagios mail 64371 May 20 14:12 nagios
-rw------- 1 root mail 51199196 Oct 23 19:30 root
-rw-rw---- 1 rpc mail 0 May 29 16:30 rpc

When I do a tail, it seems the last message is from somewhere in september... Is it possible my root mailbox is full? Is there some way to rotate this? Or clean it up periodically? All email also seems to stay unread somehow.

Grtz
Nagios XI 5.8.1
https://outsideit.net
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Mailbox full?

Post by slansing »

Take a look at the top answer on this page:

http://superuser.com/questions/306163/w ... linux-unix

In essence, they are system messages.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Mailbox full?

Post by WillemDH »

Yes I got that, I tried

Code: Select all

mail -N
d *
So I did

Code: Select all

> /var/spool/mail/root
which seems to have emptied the mailbox

Now it seems I get every 5 minutes an email with mrtg errors. Looking around a bit, it seems http://support.nagios.com/forum/viewtop ... =16&t=8626 is explaining exactly the issue we have.. I'll make the updates to the crontab for mrtg tomorrow.
Nagios XI 5.8.1
https://outsideit.net
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Mailbox full?

Post by abrist »

Great. Keep us informed of your progress.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Mailbox full?

Post by WillemDH »

Ok, a colleague of mine had changed the ip addres of a switch and apparently in the mrtg.cfg file there were traces of the old IP. He did a replace all in the mrtg.cfg and now we dont get any new email in the root mailbox. It seems strange we got errors for all the ports, while they only monitor the uplink port, but I'm not gonna look into that... Got enough work already with my servers and storage... Thread can be closed..
Nagios XI 5.8.1
https://outsideit.net
Locked