Hi,
I use Ubuntu. I installed NTOP briefly, then decided I didn't want it. I then uninstalled it using Synaptic's "Completely remove including all configuration files". I then upgraded from Ubuntu 9.04 to 9.10. Every day since installing and removing, I have received the error email below. I have searched the pc (including hidden files) and I cannot find any reference to ntop in etc or var or subdirectories thereof. I've googled and can't find a reason why this is. Most answers I find on google say there's a residual ntop file somewhere in etc or var, but I can't find it.
There is a package file in /var/cache/apt/archives and a file called /var/lib/update-rc.d/ntop containing the text update-rc.d -f ntop remove
Any idea how I can stop this happening? Regards Steve
-------- Original Message -------- Title: Anacron job 'cron.daily' on myserver Subject: Anacron job 'cron.daily' on myserver Date: Fri, 06 Nov 2009 07:53:13 +0000 From: Anacron <redacted> To: <redacted>
/etc/cron.daily/logrotate: error: error accessing /var/log/ntop: No such file or directory error: ntop:1 glob failed for /var/log/ntop/*.log
On Fri, 2009-11-06 at 21:19 +0000, steve-ALUG@hst.me.uk wrote:
Hi,
I use Ubuntu. I installed NTOP briefly, then decided I didn't want it. I then uninstalled it using Synaptic's "Completely remove including all configuration files". I then upgraded from Ubuntu 9.04 to 9.10. Every day since installing and removing, I have received the error email below. I have searched the pc (including hidden files) and I cannot find any reference to ntop in etc or var or subdirectories thereof. I've googled and can't find a reason why this is.
...
/etc/cron.daily/logrotate: error: error accessing /var/log/ntop: No such file or directory error: ntop:1 glob failed for /var/log/ntop/*.log
What is in the /etc/logrotate.d directory?
Steve.
Steve Fosdick wrote:
What is in the /etc/logrotate.d directory?
Steve.
$ ls /etc/logrotate.d apport consolekit jockey-common speech-dispatcher apt cups pm-utils unattended-upgrades aptitude dpkg ppp winbind checkbox exim4-base rsyslog wpa_action clamav-freshclam exim4-paniclog samba wpa_supplicant
No mention of ntop :-( Steve
On 06-Nov-09 21:19:15, steve-ALUG@hst.me.uk wrote:
Hi, I use Ubuntu. I installed NTOP briefly, then decided I didn't want it. I then uninstalled it using Synaptic's "Completely remove including all configuration files". I then upgraded from Ubuntu 9.04 to 9.10. Every day since installing and removing, I have received the error email below. I have searched the pc (including hidden files) and I cannot find any reference to ntop in etc or var or subdirectories thereof. I've googled and can't find a reason why this is. Most answers I find on google say there's a residual ntop file somewhere in etc or var, but I can't find it.
There is a package file in /var/cache/apt/archives and a file called /var/lib/update-rc.d/ntop containing the text update-rc.d -f ntop remove
Any idea how I can stop this happening? Regards Steve
-------- Original Message -------- Title: Anacron job 'cron.daily' on myserver Subject: Anacron job 'cron.daily' on myserver Date: Fri, 06 Nov 2009 07:53:13 +0000 From: Anacron <redacted> To: <redacted>
/etc/cron.daily/logrotate: error: error accessing /var/log/ntop: No such file or directory error: ntop:1 glob failed for /var/log/ntop/*.log
Have a look inside the file /etc/logrotate.conf
If there are any lines in there referring to ntop, try commenting them out with a '#' and see if that stops it.
-------------------------------------------------------------------- E-Mail: (Ted Harding) Ted.Harding@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 06-Nov-09 Time: 21:44:45 ------------------------------ XFMail ------------------------------
On Fri, 06 Nov 2009 21:19:15 +0000 steve-ALUG@hst.me.uk allegedly wrote:
I use Ubuntu. I installed NTOP briefly, then decided I didn't want it. I then uninstalled it using Synaptic's "Completely remove including all configuration files". I then upgraded from Ubuntu 9.04 to 9.10. Every day since installing and removing, I have received the error email below. I have searched the pc (including hidden files) and I cannot find any reference to ntop in etc or var or subdirectories thereof. I've googled and can't find a reason why this is. Most answers I find on google say there's a residual ntop file somewhere in etc or var, but I can't find it.
Deletia
-------- Original Message -------- Title: Anacron job 'cron.daily' on myserver Subject: Anacron job 'cron.daily' on myserver Date: Fri, 06 Nov 2009 07:53:13 +0000 From: Anacron <redacted> To: <redacted>
/etc/cron.daily/logrotate: error: error accessing /var/log/ntop: No such file or directory error: ntop:1 glob failed for /var/log/ntop/*.log
Check /etc/logrotate.conf for an entry attempting to rotate files in /var/log/ntop. Delete any such entry and the error message (which comes from cron) will go away.
Mick
---------------------------------------------------------------------
The text file for RFC 854 contains exactly 854 lines. Do you think there is any cosmic significance in this?
Douglas E Comer - Internetworking with TCP/IP Volume 1
http://www.ietf.org/rfc/rfc854.txt ---------------------------------------------------------------------
mick wrote:
Check /etc/logrotate.conf for an entry attempting to rotate files in /var/log/ntop. Delete any such entry and the error message (which comes from cron) will go away.
Mick
Mick (and Ted) Here is logrotate.conf - no mention of ntop. :-( Steve
# see "man logrotate" for details # rotate log files weekly weekly
# keep 4 weeks worth of backlogs rotate 4
# create new (empty) log files after rotating old ones create
# uncomment this if you want your log files compressed #compress
# packages drop log rotation information into this directory include /etc/logrotate.d
# no packages own wtmp, or btmp -- we'll rotate them here /var/log/wtmp { missingok monthly create 0664 root utmp rotate 1 }
/var/log/btmp { missingok monthly create 0660 root utmp rotate 1 }
# system-specific logs may be configured here
On Fri, 06 Nov 2009 22:30:04 +0000 steve-ALUG@hst.me.uk allegedly wrote:
Mick (and Ted) Here is logrotate.conf - no mention of ntop. :-( Steve
OK - so check /etc/logrotate.d for an entry for ntop. That file will be included in the logrotate.
Mick ---------------------------------------------------------------------
The text file for RFC 854 contains exactly 854 lines. Do you think there is any cosmic significance in this?
Douglas E Comer - Internetworking with TCP/IP Volume 1
http://www.ietf.org/rfc/rfc854.txt ---------------------------------------------------------------------
On 06 Nov 22:50, steve-ALUG@hst.me.uk wrote:
mick wrote:
OK - so check /etc/logrotate.d for an entry for ntop. That file will be included in the logrotate.
See other post for list of all files in that directory. I've checked every single file there, and there's no mention of ntop.
cd /etc/logrotate.d grep -r -h "ntop" *
That will list the file that has the entry... otherwise, just on the offchance that somehow there's an entry that's globbing in a strange way...
cd /var/log ls -lad ntop*
If there's a file or directory there, that might be causing the issue, if that's the case, then you should be able to do: rm -rf /var/log/ntop*
Hope that 'elps,
Brett Parker wrote:
cd /etc/logrotate.d grep -r -h "ntop" *
That will list the file that has the entry... otherwise, just on the offchance that somehow there's an entry that's globbing in a strange way...
cd /var/log ls -lad ntop*
If there's a file or directory there, that might be causing the issue, if that's the case, then you should be able to do: rm -rf /var/log/ntop*
Hope that 'elps,
Thanks Brett, the grep returned results. That perplexed me. I thought then I thought I'd do a sudo -i to switch to root and then "ls" again and lo! there it was - ntop. It just wasn't visible as my standard user. That didn't occur to me. I've removed it and hopefully all will be sorted now.
Thanks all. Steve