Current time: 05-22-2024, 04:42 AM Hello There, Guest! (LoginRegister)


Post Reply 
Problem mit den Cronjobs heute Nacht.
Author Message
MoritzDorn Offline
Junior Member
*

Posts: 178
Joined: Nov 2007
Reputation: 0
Post: #1
Problem mit den Cronjobs heute Nacht.
Hallo,

heute Früh haben mich zwei Mails erreicht, einmal der

[rkhunter] Daily run

Code:
Scanning for hidden files...  [ Warning! ]
-----------------------------------------------------------------

Found warnings:
[06:26:13] WARNING, found:  /dev/.udev (directory)  /dev/.static (directory)

-----------------------------------------------------------------

If you're unsure about the results above, please contact the
Rootkit Hunter team through the Rootkit Hunter mailinglist
at rkhunter-users@lists.sourceforge.net.
Some errors has been found while checking. Please perform a manual check on this machine (xyz)

Gestern war da noch die Meldung mit dem Root login, den hab ich dann gestern gesperrt.

Ist was bekannt mit den zwei Ordnern? Kann ich die löschen, ohne dass ISPCP eine Einschränkung erhält?

Und dann kam noch das hier.

Cron <root@xyz> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )

Code:
/etc/cron.daily/logrotate:
----- awstats_updateall 1.0 (build 1.15) (c) Laurent Destailleur -----
awstats_updateall launches update process for all AWStats config files (except
awstats.model.conf) found in a particular directory, so you can easily setup a
cron/scheduler job. The scanned directory is by default /etc/awstats.

Usage:  awstats_updateall.pl now [options]

Where options are:
  -awstatsprog=pathtoawstatspl
  -configdir=directorytoscan
  -excludeconf=conftoexclude[,conftoexclude2,...] (Note: awstats.model.conf is always excluded)

sh: line 2: postrotate: command not found
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
error: error running shared prerotate script for /var/log/apache2/*.log
run-parts: /etc/cron.daily/logrotate exited with return code 1

Ich habe awstats nicht aktiviert.

Und dann als ich auf mein Server wollte, war er offline, bzw. die Webseiten waren offline.

Biser lief alles super, und auf einmal dass. Ich hatte gestern nur den Root login deaktiviert, sonst habe ich am System nichts geändert.

mfg
Schönen dritten Advent.
12-17-2007 02:33 AM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #2
RE: Problem mit den Cronjobs heute Nacht.
Schau ins /etc/logrotate.d/apache2 - da dürfte der Fehler liegen...

Vielleicht mal hier posten

Gruss J
12-17-2007 02:51 AM
Visit this user's website Find all posts by this user Quote this message in a reply
MoritzDorn Offline
Junior Member
*

Posts: 178
Joined: Nov 2007
Reputation: 0
Post: #3
RE: Problem mit den Cronjobs heute Nacht.
joximu Wrote:Schau ins /etc/logrotate.d/apache2 - da dürfte der Fehler liegen...

Quote:/var/log/apache2/*.log {
weekly
missingok
rotate 52
compress
delaycompress
notifempty
create 640 root adm
sharedscripts
prerotate
/var/www/ispcp/engine/awstats/awstats_updateall.pl
postrotate
if [ -f /var/run/apache2.pid ]; then
/etc/init.d/apache2 restart > /dev/null
fi
endscript
}
12-17-2007 02:53 AM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #4
RE: Problem mit den Cronjobs heute Nacht.
Soviel ich weiss, sollte das prerotate anders sein:

Code:
..sharedscripts
  prerotate
    /var/www/ispcp/engine/awstats/awstats_updateall.pl now -awstatsprog=/usr/lib/cgi-bin/awstats.pl &> /dev/null
  endscript
danach postrotate....

die eine Zeile zwischen prerotate und endscript ist nur eine Zeile :-)

Gruss J
(This post was last modified: 12-17-2007 02:58 AM by joximu.)
12-17-2007 02:57 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Zothos Offline
Release Manager
*****
Dev Team

Posts: 1,262
Joined: Feb 2007
Reputation: 10
Post: #5
RE: Problem mit den Cronjobs heute Nacht.
da gabs doch letztens erst ne änderung. Schau dir ma die file an die im aktuellen Trunk liegt. Oder verwendest du die?!?
12-17-2007 08:37 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)