Fedora Servers :: Can Not View Complete Detail Of /var/log/messages
Apr 18, 2011
I want to check my system general log file by the following command.
PHP Code:
It just show me only these two lines Normally every day at morning I check all system general log files and some times it is too much long that I press space bar to go my prompt.
My server is running Red Hat 4.1.2-44.I am having an issue with it hanging (website doesn't respond, can't connect via SSH (it's a remote server)) after 4am on every 3rd Sunday or so.A reboot is required to get the server responding again.I have checked every logfile I can find and found nothing that helps me. The thing I have noticed is that some of these log files start afresh after the reboot so my initial thoughts are that it is a logrotate issue or something similar.
The last activity I can find before the reboot (at 8:32) is in the logfile /var/log/cron: Mar 28 04:22:01 crond[9356]: (root) CMD (run-parts /etc/cron.weekly) Mar 29 08:32:39 crond[3884]: (CRON) STARTUP (V5.0)
I need the complete reference guide to set up my own SQUID transparent proxy Server with Gateway support. I am using Fedora 14. Please help me with LINKS/REFERENCE. I am a learner in Squid.
I have a Fedora server at home. I don't want it to be running all the time to reduce the power usage and be more green It only works , whet it is really needed. So when it is not in use (no ssh or http connections have been active for some time), a custom python script suspends it. I have set it to wake up on unicast messages, so when somebody connects to it, the server wakes up.In Fedora 12 everything worked fine: when the server was sleeping and you connected to it using ssh or a web browser, the client waited for couple of seconds until the server was up and then connected (actually it worked even when server was turned off: the command "ssh [user]@[server]" just waited until server was booted up and then connected.)
Now I installed Fedora 13 on the server. When I try to connect to the server when it's sleeping, the client waits for some time (and server wakes up), then the connection just times out. When I try to connect again, it works. When server is up and running, I can connect to it. So when it is sleeping I have to connect twice: first to wake it up and then connect again to log in.Do you have any ideas what is causing this problem, as it is really annoying for me and I don't want to have it running all the day.Also, I have not set up the network in the best way, I think. To start the network at boot, i have put the command
Code:
ifup eth0 to /etc/rc.local.
To start the network when resurming from suspend, I have creted a script with the same command in /usr/lib64/pm-utils/sleep.d. It works, but it does not seam to be the *right* way to do this. Maybe this is also causing the first problem. So how have you managed to get a working network connection on your Fedora 13 headless server?
I occasionally see messages in my logwatch report then cannot find the actual log entry. Is there any way I can have logwatch give a clearer report?an example:
I have installed Fedora 12 x86_64 and vsftpd. I would like to set up an user for FTP so that he/she could only view/edit files in one certain folder (the one that I set up). How would I go about doing that?
I am running Fedora 8. Each time I run a YUM command, I get the message that there are unfinished transactions, and to run yum-complete-transaction. Upon running yum-complete-transaction, it fails with this error. How can I remove this uncompleted transaction so I can finish the last one?
i installed phpmysql on F12 and it keeps prompting me for a user name and password. i tried login in with my root password but it does not permit me. How do i bypass this please. Also Aache wont let me view other locally hosted sites on my derver directory. restricts my permission.
I use web server apache use php fastcgi (Centos 5.2, apache 2.2.9 , php 5.2.5 and fcgi-2.2.4 ). I receive error : "The server encountered an internal error or misconfiguration and was unable to complete your request. contact the server administrator, no-reply@zz.vn and inform them of the time the error occurred, and anything you might have done that may have caused the error. I view log :
I wish to prevent the samba messages (mainly nmbd and winbindd) from appearing in the system log (/var/log/messages). I want to allow samba logging to the standard samba logfiles, but prevent the syslog getting clogged up by samba. I added syslog = 0 to smb.conf and reloaded the config but the messages were still appearing. I also tried the following (and restarted the syslog via /sbin/service syslog restart) # Suppress messages from samba.
For interests sake the messages I'm getting are below (I'm not concerned about the messages themselves, I can chase them up at my leisure via the samba logs) Mar 18 09:58:29 SERVER nmbd[3808]: query_name_response: Multiple (2) responses received for a query on subnet xx.yy.z.zz for name DOMAIN<1d>. Mar 18 09:58:29 SERVER nmbd[3808]: This response was from IP xx.yy.z.zz, reporting an IP address of xx.yy.z.zz.
Just curious if it is possible to schedule a complete system shutdown and start up?
My box with ubuntu server on it is only used as an ssh/proxy server, so I would like save on energy costs and add a layer of security by completely shutting it down during the hours I do not use it.
I have an Ubuntu 9.10/64 Server configured with LVM in a 1Tb sata disk in my home server. For a simple server, LVM adds complexity if you need to recover your system, so I decided to migrate from LVM to normal partitions. I have another 1Tb disk to copy my system disk. In the backup disk, i have created same size partitions and trasfered files from /boot and root volumes with rsync, presenving perms etc... and excluding /dev /proc /sys etc... I have then modified /etc/fstab to mount new UUID's and reinstaled grub via live CD and chroot.
At this point, when I replace my system disk with backup one, the boot process start as usual, but when it starts loading services the boot process does not continue. The system is not "frozen". If I press intro, there is a line feed on screen. If I mount the backup disk in another system, there is nothing writed to /var/log/syslog or dmesg files during the boot process. I can change terminal with <alt>F2 but there is no login. In console, with backup disk I get:
Code: ....type 1505 audit.... operation="profile_load"..... Done. fsck from util-linux-ng 2.16 /dev/sda1: clean ...... fsck from util-linux-ng 2.16 /dev/sda5: clean ...... * Stopping remote control daemon(s): LIRC * Loading LIRC modules lircd-0.8.6[1057]: lircd(default) ready, using /var/run/lirc/litcd * could not access PID file for nmbd
And with original system disk: Code: ....type 1505 audit.... operation="profile_load"..... Done. fsck from util-linux-ng 2.16 /dev/sda5: clean ...... fsck from util-linux-ng 2.16 * Stopping remote control daemon(s): LIRC * Loading LIRC modules lircd-0.8.6[1057]: lircd(default) ready, using /var/run/lirc/litcd /dev/mapper/coll-root: clean ...... * could not access PID file for nmbd * Setting preliminary keumap... Ubuntu 9.10 coll tty1 coll login:
i've installed nagios just from a while and after i installed centreon, since this when i try to log in the web interface of nagios it shows up this message: Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request. contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Apache/2.2.17 (Ubuntu) Server at localhost Port 80
I have configured my Cisco ASa Firewall to send its logs to my ubuntu server in /var/log/cisco/ I see the logfiles populating in real time, but i can also see all the logs are also wtitten to /var/log/messages. How can i make sure i do not have a log redundancy? I dont want my firewall logs displayed in messages since there are now sent to /var/log/cisco.
On this Ubuntu 8.04.4 LTS server, I want to log the messages from a Linksys router. So I made this change to "/etc/init.d/sysklogd" SYSLOGD="-r" Then in "/etc/syslog.conf" I added the following to the top of the file: Code: if $fromhost isequal 'Linksys' then /var/log/Linksys.log & ~
Then I rebooted the server. But there is no "/var/log/Linksys.log" file.
I have had a LAMP setup on my computer for a while without any trouble but I have suddenly become unable to access it through either localhost or my IP address. I have tried removing and reinstalling the packages but it still doesn't work and the /var/log/apache2/error.log does not give me any errors.
when i type localhost i can see the page, when i type 127.0.0.1 i can see the page, when i type 192.168.0.30 i can view the page when i type the websitename.dyndns.info i can't seem to view the page or when i type 96.24.144.216 can't see the page.
I have a fresh installation of Ubuntu 10.04 LTS I have installed Boxee on it that is all and I am trying to set it up as a Samba Server. I have followed the instructions on following page:[URL]..On the box that I am trying to setup as a Samba Server using Nautilus I can view the shares no problem. On another Ubuntu box no such luck. I can get too Windows Network and I can see my workgroup. When I try and open the workgroup I get the following dialogue box for some time: Opening "WORKGROUP". You can stop this operation by clicking cancel. And then this error dialogue box:
Unable to mount location Failed to retrieve share list from server I have spent sometime trying to resolve this myself but have had little luck. As far as I know I have no firewalls in place; Ubuntu does not have one by default is that correct? At this time I don't have a Windows computer to try to connect too the server at this time, but plan to in the future that is why I want to use Samba.
I am connecting the two boxes with an D-Link DIR-825 router; both boxes are on the same subnet. Are there settings in the router that could be affecting this?
I'm getting the following messages sent to my root account mailbox. It appears to be reporting an issue finding ntpdate, however when running the following command:
aptitude show ntpdate | grep State
It shows as installed and any ntpdate commands work with no issues, so I have no idea why this is getting regularly reported?
From root@mydomain.co.uk Wed Feb 03 18:20:01 2010 Return-path: <root@mydomain.co.uk> Envelope-to: root@mydomain.co.uk Delivery-date: Wed, 03 Feb 2010 18:20:01 +0000
I want to know if there is a way to disable the GUI console on 10.04 Server I want the traditional pure text console ... no plymouth, no plymouth-theme, just 80x24 console. Another question, Is there a way to get those traditional messages when booting? Like 8.04 Server does?
Is there a way I can redirect messages from kernel ringbuffer to a logfile, e.g. with rsyslogd? With redirect I mean that the messages do no longer appear in dmesg, but only in the logfile. In my case that should be iptables log messages.