CentOS 5 :: Moving Logs Automatically?

Mar 8, 2010

I have a logserver.log located at /usr/local/logserver. It's NSLOGDEPTH=100. I'm not sure if this is the reason but my log file is only up to 100 only..samplelogserver001.loglogserver002.log......logserver100.logThe other logs were already removed. I do not have any scripts on logrotate for this specific logs. My question now is: How can I move some logs automatically so that it will not be removed totally from the system. I'm planning to move it locally on the server and compressed it at the same time. My second plan is to move it on another server. Do I need to create a script on this or can be done on logrotate? (note: i do not want to remve old logs)

View 1 Replies


ADVERTISEMENT

Ubuntu :: Automatically Logs Me On Without Asking Me For My Password?

Jun 21, 2010

I don't know if this a bug or some setting that I have changed inadvertently, but when I start up my computer Ubuntu now logs me on automatically to the sole user account I have created but without asking me my password.I rarely fiddle about with settings and am not aware of touching anything to do with user accounts etc. Obviously I don't want this behaviour otherwise I wouldn't have put a password on the account. Everytime I log on I want to choose what language I want to run my system from the log on screen.

In administration > users and groups > it says my user account password is asked at login.Is there an option somewhere else to turn this behaviour on or off?how I could have accidentally turned this behaviour on?

View 2 Replies View Related

OpenSUSE Install :: 11.2 Logs Out Automatically Without Notice?

Feb 16, 2010

Well, its been 2 days since I have had Suse 11.2 on this laptop. (Fujitsu-Siemens Amilo M7400 1.6 GHz Centrino, 60GB HDD)Everything seems to work in order, but at certain times, the computer will just log out on its own, without any reason. It gives no error when it does this, so there is no way for me to determine what the cause is. As far as the rest of the OS goes, everything seems perfectly fine, except for the automatic log out the computer does. It just annoys me when the computer logs out by itself sometimes because then I am lost on where I was before, since nothing gets saved when it does this. It makes things really challenging when you are typing something as I am now and then the computer just logs itself out on its own, leaving me with nothing because it does not save anything. And if so, what are the repair steps to this issue??

View 9 Replies View Related

OpenSUSE :: 11.3 GNOME Constantly Locks Up Or Automatically Logs Out?

Jul 20, 2010

I'm running 11.3 with GNOME on my Dell Inspiron 1525 with on board Intel video card. I had 11.2 64 bit running but did a fresh install of 11.3 with the 32 bit version. When the problems started occurring (locking up, logging out by itself, applications crashing that were fine in 11.2...), I tried reinstalling. When that didn't help I tried the 64 bit 11.3 but the problems keep happening. I can't get any work done. I've noticed that these occur while the computer is idle (either screensaver or later after the display has been turned off). I'll come back to my computer and notice that either the computer is locked up (screensaver frozen, audio on a one-second-loop...) and have to restart the computer or I come back to find the login screen waiting for me (and obviously have a new session when I log in).

View 9 Replies View Related

CentOS 5 :: Logs In Goes To Check The Logs And Gets "/var/log" Permission Denied

Jan 29, 2010

On our app server the logs from the Sybase Mobilink service get logged to /var/log because of that I did a chmod a+rx /var/log and all is well until.... the next day QA logs in goes to check the logs and gets:

Quote:
qa@dwdb [~]$ ls /var/log
ls: /var/log: Permission denied
qa@dwdb [~]$

View 18 Replies View Related

General :: Using Script To Automatically Record Terminal Sessions When A User Logs In?

Mar 3, 2010

I'm trying to set up automatic recording of user sessions when they login without their knowledge. I tried sticking the script command into /etc/profile and but that didn't really work. I also tried /etc/bashrc but that had the same affect.I have also tried setting the shell in /etc/passwd to SHELL=/bin/bash /usr/bin/script -q /testing.txt.

View 8 Replies View Related

General :: Automatically Logs Into A User (not Root) In Graphical Mode And It Does Not Asking For Any Password

Dec 14, 2010

When I start my ubuntu linux system it automatically logs into a user (not root) in graphical mode and it does not asking for any password. when I try to go to the command prompt the password is required. How do I give password for my user. The provider installed the system and not me..

View 5 Replies View Related

Programming :: Bash - Automatically Build A Set Of Packages And Redirect Output Into Logs - Failed Make Should Return A Non-zero Value

Jun 27, 2011

I have a set of bash scripts that I'm running that automatically build a set of packages for me and redirect their output into logs. Basically, I have a bunch of lines that are something like this: ${CONFIGURE_DIR}/configure &> ${LOG_DIR}/log or cd ${CONFIGURE_DIR} && make &> ${LOG_DIR}/log, etc.

This is supposed to make the entire process silent. However, sometimes with some packages some output leaks to my console (either stdout or stderr). I'm thinking that maybe the configure scripts/make are executing commands within new shell instances that don't inherit my redirect, or something to that effect.

Another reason for thinking this is that in another part of my script I detect errors when running make by testing with "if [ $? -ne 0 ]", and if the redirect leaks to my console and also the leaked output indicates that the build failed ("make: Error" and so on), then my $? test fails (i.e., it thinks that $? == 0, whereas a failed make should return a non-zero value). It's as if my original script can't "see" the results from child commands executed from later scripts.

View 1 Replies View Related

CentOS 5 :: Moving Files From CentOS VPS > Windows Home PC?

Jun 11, 2011

I am wondering what is the fastest way for me to move files from a VPS running CentOS to my home PC? I do not have FTP or anything like that installed. Are there commands I can enter in putty, for example, that will simply download an entire directory on the VPS onto my home PC?

View 2 Replies View Related

CentOS 5 Hardware :: Moving Centos From Intel To Amd?

Jul 14, 2011

I got a crash on intel machine running intel cpu (CENTOS 5)I would like to know if i can move hdd to new machine with amd cpu? 3 hdd (raid 0 on 2 of them)system is on hdd without raid.

View 1 Replies View Related

CentOS 5 :: Access Logs On Vsftpd?

Mar 12, 2009

Is it possible for vsftpd to have logs so I can see IP addresses user has used to connect to FTP ?

View 3 Replies View Related

CentOS 5 :: Unable To Access Logs?

Dec 8, 2009

I set up freenx server and set up a client on same machine and now when I go to my logs it crashs and bugzilla save before it can crash. I go to send info and the page says bugzilla wont work and gives a 999 code need newer gnome??

**this is when I go to the logs page

Distribution: CentOS release 5.4 (Final)
Gnome Release: 2.16.0 2007-02-18 (CentOS)
BugBuddy Version: 2.16.0

[Code]....

View 1 Replies View Related

CentOS 5 :: Apache Not Browsing - No Logs

Jan 19, 2010

Just installed CentOS 5.4 selecting Server configuration where web server was installed.

After install, I browsed to the ip of the box and no apache test page shows up. /var/log/httpd/error_log doesn't show any browse attempts.

service httpd start
OK

try again and no browsing.

Did a :

yum install httpd

it installed httpd.i386 along some other dependencies.

Did a:
service httpd restart
OK

and still not browsing.

basics of getting apache running and configured on a fresh server?

View 6 Replies View Related

CentOS 5 :: Where To Find Build Logs For Dependency

Aug 28, 2009

Is there any way of getting the build logs of the CentOS packages? I'm dealing with a possible build problem in CentOS's Samba similar to [URL], so it would be very useful to have the build logs available to check for such dependency problems, etc.

View 6 Replies View Related

CentOS 5 :: Moving From Centos 5.2 To 5.3 Breaks USB HUB Use?

Jul 4, 2009

I help develop an Asterisk channel driver that uses USB audio devices to link amateur radio stations via the Internet.All worked well under Centos 5.2 but I recently upgraded to Centos 5.3. I now get either "cannot submit datapipe for urb 0, error -28: not enough bandwidth" followed by a kernel panic or choppy audio depending on the use of either single or multi-TT hubs. For at least 4 devices, things do work under Centos 5.3 if I have a PC with 4 USB ports and do not use a hub. Of course I need to use a hub in most cases errors but even with a single device connected, data seems to be lost resulting in choppy audio. We need the hubs to work for larger systems and PC's with only 2 USB ports.Hardware:

USB 2.0 Audio Device Class 1.0, C-Media CM108
USB 2.0 HUB, 7 port with one TT, NEC UPD720113 or
HUB 2.0 HUB, 7 port with multiple TT's, Genesys Logic GL852.

[code].....

View 1 Replies View Related

General :: CentOS 5.5 Is Rebooting Frequently Without Any Logs On The Server?

Feb 4, 2011

My server is rebooting frequently(4 to 5times a day) without any logs, can any one help me out to fined the cause for the unexpected reboots of the server. reboot system boot 2.6.18-194.3.1.e Fri Feb 4 15:16 (00:-24)

[root@elastix log]# cat /etc/redhat-release
CentOS release 5.5 (Final)
[root@elastix log]# uname -a
Linux elastix 2.6.18-194.3.1.el5 #1 SMP Thu May 13 13:09:10 EDT 2010 i686 i686 i386 GNU/Linux

[code]...

View 2 Replies View Related

CentOS 5 Server :: Wrong Time On Logs By Sendmail?

Feb 22, 2009

I have this server that runs Tomcat . this server sends mail with localhost as MTAthe local MTA is sendmail (with the default settings) . from time to time i have this strange thing and the emails it sends never reach the destination. the log shows it left the server , but looking at the logi see that the time on the log is wrong . sometime its correct and ometines its +2 hours. i guess this email are bounced at the destinationfor sending at future time . all this email that didnt reach the destination have this in common

Feb 22 15:47:44 BE00 sendmail[12969]: n1MDlikZ012969: from=<support@example.com>, size=5912, class=0, nrcpts=1,
msgid=<5269969.391235310464949.JavaMail.tomcat@BE00.example.com>, proto=ESMTP, daemon=MTA,

[code]....

View 3 Replies View Related

CentOS 5 :: Syslog-ng Remote Clients But No Local Logs?

May 13, 2010

I installed syslog-ng so I can receive remote logs. this is working however since I disabled syslog on my syslog-ng server I am not logging in /var/log/messages cron and some others.locally)I know this is because my syslog-ng.conf only references remote and not local.How can I edit the syslog-ng.conf file so that I can receive remote and local? I tried this however when adding in portions of the default config, I only receive local and not remote logs anymore. I am forwarding my config.

# syslog-ng configuration file.
#
# This should behave pretty much like the original syslog on RedHat. But

[code]....

View 2 Replies View Related

CentOS 5 :: Moving RPM On Disk To A Dir?

Aug 19, 2010

What I'm doing is attempting to create a minimalized CentOS which only installs the base components.

I decided that I'd install everything I need, then I did a ..

rpm -qa > installed-packages

I think used this new file to move all the RPMs that were used during the installation from ~/CentOS/disk/CentOS/ to ~/CentOS/graveyard

[root@localhost CentOS]# cat installed-rpms-no-vers | while read file; do mv disk/CentOS/${file}* ~/CentOS/graveyard/ ;done
mv: cannot stat `disk/CentOS/iptables-ipv6*': No such file or directory
mv: cannot stat `disk/CentOS/nss-tools*': No such file or directory

[Code]....

View 5 Replies View Related

CentOS 5 Server :: Rotating Named Logs Via Syslog.conf?

Mar 1, 2010

OS CentOS 5.4 I have a DNS server that is logging all named and dns requests to the chrooted named directory. By default named logs to /var/log/messages but I want to isolate all the dns queries and requests to separate files. I know I can add entries to /etc/syslog.conf to "roll" the logs and logrotate should pick them up but fuzzy as to the syntax. I don't know what "tag" to use in the first fieild. for example

# Log anything (except mail) of level info or higher.
# Don't log private authentication messages!
*.info;mail.none;authpriv.none;cron.none/var/log/messages

Here is the logging section of my named.conf

# pwd
# /var/named/chroot/etc
logging
{

[code]....

View 5 Replies View Related

CentOS 5 Networking :: Logs Filling With Messages From Myri10ge Driver?

Nov 8, 2010

I'm wondering why I keep getting the following in /var/log/messages on a system running the latest CentOS 5 64 bit kernel:

Nov 8 09:50:24 hostname kernel: myri10ge: eth2: link down
Nov 8 09:50:24 hostname kernel: myri10ge: eth2: link up
Nov 8 09:50:34 hostname kernel: myri10ge: eth2: link down

[Code]....

View 5 Replies View Related

General :: Moving From Fedora To CentOS?

Mar 31, 2010

I have Fedora installed and I am trying to change to CentOS. Can't boot from live CD I download

View 2 Replies View Related

CentOS 5 Hardware :: Moving From IDE To SATA?

May 27, 2009

This might be a common topic but searching yielded me no results. I am trying to take one of my NAS servers from an IDE hard disk to a new SATA hard disk. Reinstalling the OS is not an option. I have a working system and have cloned the disk using Acronis True Image to a SATA hard disk.

First, Grub has to be reinstalled which is no problem. I have done this and it works just fine. My SATA drive is booting through Grub and attempting to load CentOS. Obviously the problem lies in that my original drive is /dev/hda and my new disk is /dev/sda

I have changed the following to try and correct the issue:
/boot/grub/menu.lst
/boot/grub/device.map
/etc/fstab

The new disk is still having problems booting. I have attempted before to create a new inittab but I am not sure it was successful and I encountered the same issues. After booting via Grub, here is the message that I receive

Unable to access resume device (LABEL=SWAP-hda3)
mount: could not find filesystem '/dev/root'
setuproot: moving /dev failed: No such file or directory

[Code]...

There must be some places that still reference hda. That first line of the panic message talks about SWAP-hda3. I have changed an entry like that in the Grub config but it still shows up at boot time.

View 1 Replies View Related

CentOS 5 :: Moving Files To Second Partition?

Dec 8, 2009

Here is a dumb question (For some reason I can never remember Linux commands but can always remember DOS commands). I don't know what it is, but I think it's the "everything is a file or a directory" nature of Linux that I can't remember it.

Anyhow, I have an instance running on Amazon EC2. I have noticed recently that FreePBX (an Asterisk GUI) is warning me of shortage of disk space. So here is the output:

[root@ip-10-251-123-3 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 9.9G 8.8G 621M 94% /
/dev/sda2 147G 188M 140G 1% /mnt

[Code].....

So, it seems that I have a lot of space in sda2 but I don't know how to access it. how to do a symbolic link (or I can search with google) to move some folders to sda2 and then link them.

View 12 Replies View Related

CentOS 5 :: Moving Drives To New Hardware?

Jun 22, 2011

I have recently lost quite a bit of electronics around the house to a power surge/lightning strike (all items were on APC backups). The drives from my server were undamaged and I have a new server to host them in. I am having a hard time getting the new server to boot up with the old drives (trying to avoid a fresh install/rebuild of server). The hardware is very similar but not identical. At this point it gets to the following during the boot process:

Scanning and configuring dmraid support devices
md: Autodetecting RAID arrays
MD: autorun ...
MD: ... autorun DONE.
MD: Autodetecting RAID arrays.

[Code]...

View 2 Replies View Related

CentOS 5 Server :: Stop Apache Logs (access/error/ssl) From Being Deleted?

Apr 22, 2009

I don't mind that apache logs "rotate". By that, I mean that periodically the most recent log is renamed "*.1" and the older logs are bumped up a number In my particular situation, I do mind that the log that was "*.4" is deleted rather than being renamed to "*.5" when that periodic renaming happens.

I know most of the other /var/log files have the same behavior. What does this? Can I change it so my apache logs are "rotated" up but aren't deleted? I know this will take some hard drive space, but I have a lot of it.

EDIT: CentOS 5.3, kernel 2.6.18-128.1.6.el5, Apache 2.2.3

View 1 Replies View Related

CentOS 5 :: Moving /var And /usr Partitions To Different Hard Disk?

Apr 3, 2009

Especially /var because I am running a MYSQL server on this box. I want to know if there is a safe procedure to follow to move these partitions from the current sda2 and sda3 that they are now to sdb2 and sbd3 because this is a much bigger disk. I don't want to break MYSQL and I don't want to be down for a long period. I have heard of some people suggesting a sym link to a /newvar and /newuser on sdb but I have also read this will not work when moving to a different physical drive.

View 3 Replies View Related

CentOS 5 :: Moving Root Filesystem To Another Disk?

May 19, 2009

Ive setup a filesystem on a RAID 0+1 and am looking at moving root filesystem from a single disk to the new one. I could not install CentOS on mirrored filesystem as the RAID card did not have a pre-built driver for CentOS 5.3, so I had to compile the driver after installing the system.

What Im going to do now is:

1.Mount the new mirrored filesystem under /root1
2.use find | cpio to copy everything from the existing / to /root1
3.use grub to create a boot record on /root1
4.edit /root1/etc/fstab to point / to the new disk
5. reboot the system and keep my fingers crossed

Is this the way to go? Am I missing anything?

View 6 Replies View Related

CentOS 5 Hardware :: Moving System From Usb To E-sata?

Nov 11, 2009

I've a pc running Centos 5.4 with an uniq external hard disk hooked by USB (no internal drive). I'd like to hook it through e-sata to get performance improvment. So I am using a sata->e-sata connector to plug the disk.The disk is well detected by the bios, and Centos begin to boot but when it wants to mount the volume groups I've a kernel panic.VG and LV names are detected, but the system says it can't find them (there is a /dev/root not found error message)If I boot the system through a live cd I can mount and access VG/LV without problem any hint to get the system up and running through sata ?

grub.conf:

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that

[code]...

View 1 Replies View Related

CentOS 5 Networking :: Moving Interfaces At Boot?

Oct 6, 2010

I have a series of four config scripts which all run in sequence of each other.first occurs during the whole kcikstart thing.Kickstart then tells rc.local to run step2, which then tells rc.local to run step 3. No steps are repeated, after they are run they delete themselves from rc.local.After each step, it reboots.Step 3 is responsible for creating the /etc/sysconfig/network-scripts/ifcfg-eth1 file, and populating it. It greps ifconfig -a for the mac address of USB0.

#! /bin/bash

# Check to see if the usb nic takes eth2, if it does, move it to eth1[code]............

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved