HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   ISPConfig monitor System Log (http://www.howtoforge.com/forums/showthread.php?t=58104)

norbie 28th July 2012 08:25

ISPConfig monitor System Log
 
Thought I'll open this thread, because I think there is a wrong config variable or? for the syslog log.

On an Ubuntu system 12.04 Server LTS the "system" log is not called "messages" instead they use "syslog"

I might be wrong however once I retrieve the system log file, an error is thrown.
Quote:

"Unable to read /var/log/messages"
Dunno if this is fixed pointer or if it can be configured to point to /var/log/syslog ?

Just thought I post my thoughts. :D

Cheers,
Norbert

falko 28th July 2012 11:20

I've added this to our bugtracker, so we will check that.

mmidgett 2nd November 2012 18:58

If you have a server like I have and it doesn't work you can make a link and it will work just fine

sudo ln -s /var/log/syslsog /var/log/messages

sudo chown syslog:adm /var/log/messages

This is fix the monitor in Ispconfig3 using ubuntu 12.04LTS and Ver 3.0.4.6

norbie 5th November 2012 05:15

Sym Link works
 
Hi mmidgett,
the work around works fine for my setup.
Could have been my idea :D , but it wasn't!!!

Thanks,
Norbert

mmidgett 5th November 2012 14:43

I just noticed that syslog must have rotated the log cause the link Is now broken. I wouldnt do my recomendation unless you scripy the deleting of the old links and create new ones. I think It would be better to look through the code and find where it calls it and change it. I will look for It today and post my findings.

norbie 5th November 2012 22:55

Not a big deal!
 
Hi mmidgett,
it's really not a big deal, I can always SSH and read the Syslog directly.

Just had a look at the Monitor within the ISPConfig panel and it still looks alright.
I don't know how often Logrotate does create new logfiles?
Perhaps my system didn't get to that point yet or logrotate isn't involved as much?

On the other hand it seems to be weird that logrotate would break the link.
How does logrotate create new logs, hmmm. Think it stops logging, then renames the old logfiles, if older tar balls them, then creates a new logfile with the name given in /usr/local/ispconfig/server ( sorry just looked at it, this is varable (PHP) so it sits deeper).
I got lost!!! Just finding the relevant part of it is a challenge.

Cheers, and TNX,
Norbert

norbie 5th November 2012 22:59

Sorry
 
I am not rewriting what I just lost.

The board logs you out and on login, destroys whatever you were putting together.
:mad:
No big deal, on the syslog, I always can check via SSH.

Cheers,
Norbert


All times are GMT +2. The time now is 20:04.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.