Ubuntu Servers :: Change Rsyslogd Destination "on The Fly"?

Oct 20, 2010

I have a web service that needs to change to destination of rsyslogd on the fly. I have tried this in a bash script and it does not work.

pidrsyslogd='pidof -x rsyslogd'
sudo kill $pidrsyslod
rsyslogd -4 -l $LOGFILEURL

I get the error that rsyslogd is "already running"; as soon as I kill it in the second line it restarts.

View 2 Replies


ADVERTISEMENT

Ubuntu Servers :: Rsyslogd Using 197% Cpu For The Past Few Days?

Jul 13, 2011

I'm running natty server on Rackspace cloud and rsyslogd has been using 197% off my cpu (quad core I believe) for the past few days. Does anyone have an pointers as to how to figure out what is going on?

View 1 Replies View Related

General :: Cp - Mv Destination Name Change

May 26, 2010

When I use the cp or mv command to copy/move files is there a way for me to have the destination file assume the same name of the source file, however add an additional suffix.

For example

Code:

Now what if I wanted this...

Code:

Do I have to type the destination file out manually everytime? or is there a quick way for the cp or mv command to assume the source file name and add the .bak

View 5 Replies View Related

Ubuntu :: Change The Destination For Hidden Files?

Jul 12, 2011

Can I change the destination for hidden files that are in the Home Directory? I'd like to put all the hidden files in my Home directory into a seperate folder inside of Home. (10.04)

View 9 Replies View Related

Server :: Change Destination For Httpd Log ?

Feb 23, 2010

I'm running Mandriva 2010.0 as a web server, i had 2 HDD in the erver. i dedicate 1 HDD just for LOGS and system backup (160 GB). i would like to change the log destionation directory from /var/log/httpd (defaults) into /backup/log/httpd how can i do that.? coz i couldn,t find the configuration in the webmin. that log would be useful for webalizer/awffull statistic in several days ahead.

View 3 Replies View Related

Ubuntu Networking :: Using Iptables To Change A Destination Port But Keep The Ip The Same?

Mar 23, 2010

I am playing around with transparent proxies, The current way I am doing things is the program makes a request to a computer on port 80, I use

Code:
iptables -t nat -A OUTPUT -p tcp --destination-port 80 -j REDIRECT --to-port 1234 to redirect to my proxy that I am playing with. the proxy will send out a request to port 81 (as all outbound port 80 are being fed back in to the proxy) so I want to do something like

Code:
iptables -t nat -A OUTPUT -p tcp --destination-port 81 -j DNAT --to-destination xxxx:80 The problem lies with the xxxx part. How do I change the destination port without changing changing the destination ip? Or am I doing this setup completely wrong,

View 2 Replies View Related

Ubuntu :: Open A Terminal And Change The Directory To The Download Destination

Jan 13, 2011

[URL]

This is step 2.2:

Quote:

Open a terminal and change the directory to the download destination.

I'm not entirely sure what that means! I've tried doing the other steps without doing that one and it doesn't seem to work.

View 1 Replies View Related

Ubuntu :: Change Default Save To Destination In Open Office Writer 3.2?

May 23, 2010

In Open Office Writer 3.2, is there any way that I can change the default "save as" "to" location from Documents folder to some other location (e.g., Desktop) in Lucid? I have looked thru everything I can find under tools>options, but I don't see anything that appears relevant.

Any command line deal I could do from terminal that might accomplish this?

This question is in connection with this thread: [URL]

View 2 Replies View Related

General :: Change /temp Directory From Its Original /dev/hda8 To Destination /dev/hdd5?

Dec 7, 2009

On Debian Standard System I would like to is change /tmp directory from it's original /dev/hda8 to destination /dev/hdd5

Code:

Disk /dev/hda: 6448 MB, 6448619520 bytes
255 heads, 63 sectors/track, 784 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

[code]...

If I change /dev/hda8 to /dev/hdd5 and reboot the startx command fails to run.

View 7 Replies View Related

General :: Run The Same Command(s) On The Many Destination Servers From Source Server?

Jan 4, 2011

I am trying to run the same command(s) on the many destination servers from my source server.source server user "report" ssh keys are added to all destination hosts.

hosts.cfg:
----------
gadikota_dev01

[code]....

View 3 Replies View Related

Software :: Iptables - Unable To Log To Rsyslogd

May 16, 2011

I am using iptables and what i want to do is have is log to a specific file that i have set for it. Here is what i edited to rsyslog.conf

#kern.* /dev/console
:msg, contains, "iptables" /var/log/iptables
& ~

now as far as iptables rules here is what i am working with...

iptables -A INPUT -i eth0 -p tcp --tcp-flags ALL NONE -m limit --limit 5/m --limit-burst 7 -j LOG --log-level 4 --log-prefix "iptables"

however when i run my script i get this kind of output:

iptables v1.4.9: unknown option `--log-level'

Try `iptables -h' or 'iptables --help' for more information. when i do 'iptables -L -n' i get this kind of output..

LOG tcp -- 0.0.0.0/0 0.0.0.0/0 tcp flags:!0x17/0x02 state NEW limit: avg 5/min burst 7 LOG flags 0 level 4 prefix `iptables'

why i am getting this error unknown option '--log-level' and two why is not writing anything to /var/log/iptables when i do 'cat /var/log/iptables' i get nothing

View 27 Replies View Related

Ubuntu :: Cannot Change Directory To A More Than Three Folder Tree Destination Folder From In Terminal?

Sep 18, 2010

I cannot change directory to a more than three folder tree destination folder from ~ in terminal. I've checked everything. No Typos or misspell. The destination folder was recognized by "ls" command but when I went to it, the terminal said, "no such file or directory."

View 7 Replies View Related

Server :: Rsyslogd Doesn't Seem To Listen On All Interfaces

Dec 5, 2009

I'm running ubuntu 9.10, the box has 2 network interfaces. I've got rsyslogd running on this box also. On one of the interfaces I have a VoIP ATA which I've configured to send syslog messages to the ubuntu box, however they're not coming up in the log file (I've configured syslogd.conf to capture logs for local2.debug and local3.debug).

rsyslogd seems to be working ok for data coming through on the other interface, but not this one. I've verified the ATA is sending data by using tcpdump and have confirmed it's using local2.debug and local3.debug. It seems perhaps it might not be listening on all interfaces? rsyslog is running with the -c4 switch.

View 2 Replies View Related

Ubuntu :: Scapy Can't Find Destination MAC?

Aug 10, 2010

I'm making a program that uses Scapy to sniff for a packet being sent to a certain host, then sending another packet with the Ethernet, IP and TCP headers identical, but a different payload.Whenever I try to run this, however, I get these errors:Code:WARNING: No route found for IPv6 destination :: (no default route?)WARNING: Mac address to reach destination not found. Using broadcast.Does anyone know what I can do to fix these problems?

View 2 Replies View Related

Ubuntu :: Source And Destination Folders Are Valid?

Apr 26, 2011

Which of these (if any) are correct?

cp -r /var/www/vhosts/niftyfiftyparty.com/httpdocs/sites/all/modules/*.* /var/www/vhosts/keylargodivecenter.com/httpdocs/sites/all/modules/*
in /var/www/vhosts/niftyfiftyparty.com/httpdocs/sites/all/modules/
cp -r *.* /var/www/vhosts/keylargodivecenter.com/httpdocs/sites/all/modules/*
in /var/www/vhosts/keylargodivecenter.com/httpdocs/sites/all/modules/
cp -r /var/www/vhosts/niftyfiftyparty.com/httpdocs/sites/all/modules/*.* *

Both the source and destination folders are valid. There are several folders in the niftyfiftyparty modules folder that I need in the other one.

View 2 Replies View Related

Ubuntu :: Can't Change My DNS Servers / What To Do?

Jan 16, 2011

I changed my MAC address in /etc/network/interfaces. To make it work I had to change eth0 to eth1. The Internet connection works fine but network-admin is now gone. The icon is gone and the command line says: The program 'network-admin' is currently not installed. You can install it by typing: sudo apt-get install gnome-network-admin.

I've tried changing the DNS servers by hand in /etc/resolv.conf three different ways:

sudo gedit /etc/resolv.conf

gksudo "gnome-open %u"

gksudo nautilus

But every time I restart it resets back to my ISPs DNS servers. I'm afraid if I try to install network-admin again it's going to really mess everything up (just a feeling).

View 1 Replies View Related

Ubuntu Networking :: Shaping Banwidth According To Destination Mac Address?

Jan 20, 2010

I'm trying to shape bandwidth using HTB method and filtering classes with destination mac address. for this I've found two codes but none of them seem to filter bandwidth as i want (test with iperf) can some one explain me the problem with theses codes

Code:
tc qdisc add dev eth0 root handle 1: htb
tc class add dev eth0 parent 1: classid 1:1 htb rate 1000kbit ceil 1000kbit
tc filter add dev eth0 parent 1: protocol ip prio 3 u32 match u16 0x0800 0xFFFF at -2 match u16 0xM4M5 0xFFFF at -4 match u32 0xM0M1M2M3 0xFFFFFFFF at -8
code2:

[Code]...

View 1 Replies View Related

Ubuntu :: RAR Archive - Extracted Files Not In Destination Folder

Sep 14, 2010

I have a RAR archive, split into 40 sections, containing a folder with a total of 2GB of data. When I Open the Archive using "File Roller 2.30.1.1" and drag the archived folder to destination folder, it says that its uncompressing, but after its uncompressed, there is nothing there, in the destination folder. Where was the 2GB extracted stuff gone?

View 1 Replies View Related

Ubuntu :: Firewall Of Destination Avoid Answering To Pings / Get Name's IP Without Using It?

Feb 15, 2011

I need to check the output of a name resolution, but I configured the firewall of the destination to avoid answering to pings.
Is there any other way to get a name's IP without using ping? (I mean something like $resolv name.com)

View 2 Replies View Related

Ubuntu :: Deleted Folders During Grsyc Backup On The Destination Hd?

Mar 31, 2011

i took a back up using grsync and stupid me, the "delete on destination" was enabled.So, i lost some folders and files that i used to keep only on the receiver hd to keep my host clean

View 5 Replies View Related

Ubuntu Servers :: Change Domain Name Instead Of Ip?

Dec 28, 2010

I have the lastest version of ubuntu server up and running along with a website shopping script working perfectly. Now I need to change the url in the address bar so that it stops displaying my ip address and shows instead my choice of domain name for whatever page has been opened. I have a number of domains available and each are redirecting traffic to my home server, but the address bar url alters to my ip address whichever I use. How then do I go about this change? Obviously this is to do with dns resolving stuff which I have no experience of. Can someone put down in as few steps as possible what I need to do?

View 7 Replies View Related

General :: Specifying A Destination Path While Creating A Zip?

Feb 5, 2010

Let us assume I have a zip file called patch.zip, when I run unzip -l patch.zip I get the following output.

bin/a
bin/b
lib/c

To this zip file I want to add a new file, "Readme.txt" located at /path/to/Readme.txt in such a way that, when I re-run unzip -l patch.zip again I get something like this

bin/a
bin/b
lib/c
doc/Readme.txt

View 2 Replies View Related

General :: Gunzip To A Different Destination Directory?

May 9, 2010

how do I gunzip to a destination directory other than the current one?

this did not work:

gunzip *.gz /putthemhere/

View 2 Replies View Related

Networking :: Unable To Connect Destination IP?

May 20, 2011

When I ping the router 165.213.100.1, i get the following proper response.

[root@ ~]# ping 165.213.100.1
PING 165.213.100.1 (165.213.100.1) 56(84) bytes of data.
64 bytes from 165.213.100.1: icmp_seq=1 ttl=62 time=0.860 ms

[code]...

View 9 Replies View Related

General :: File Transmission Through FTP To Destination?

Jul 9, 2011

We used to send files in the form of .jpg, .tif, and/or .pdf. Normally the file name will be in the form of 08072011IE01CTYHUB.PDF (DDMMYYYY - is the date, IE - publication, 01 - page number, CTY - edition name and HUB - destination in three characters). These files will be stored in a common folder (say SOURCE). I need a script to move these files to destination by reading the destination from the file name through FTP. At destination these files should be moved to a folder meant for CTY. Please note before the file is sent through FTP it should be compressed (zipped) At SOURCE folder the files will be as:

08072011IE01CTYHUB.pdf
08072011IE01CTYSMG.pdf
08072011IEdavanamCTYHUB.pdf
08072011IEversaVANSMG.tif

etc. where first 8 characters are date in the form of DDMMYYYY, next 2 characters are publication, last 3 characters are destination, previous 3 characters are edition and left over in the middle are page number in the form of NN or name. Presently I am zipping these files and send it through FTP to the destination. At destination my counterpart takes the file, stores in appropriate location (like folder name CTY) for use. To automate the above process, I want a script.

View 1 Replies View Related

General :: What Is Source / Destination Ports

Mar 9, 2011

I want to know what is a source port and what is a destination port.

View 7 Replies View Related

Ubuntu :: Editing The Destination For A WINE Launcher In The Applications Menu?

Apr 9, 2011

I would like to edit the destination a launcher which opens a program using WINE. It is Applications >> Wine >> Programs >> World of Warcraft >> World of Warcraft. When I use Edit Menus to check the launcher properties I learn it is set as Type: Application, and Command: [URL]...How would I instead have it point directly at opening, with WINE, /home/dusf/.wine/dosdevices/c:/Program Files/World of Warcraft/Wow.exe?

The -opengl argument shouldn't matter as I have it preconfigured to run with opengl in the config. If relevant, when I navigate to c:/Program Files/World of Warcraft/, and open Wow.exe manually, it opens using WINE automatically.

View 1 Replies View Related

Ubuntu Servers :: In LDAP How To Change Organization

Jan 20, 2010

I've got 8.10 of Ubuntu and currently running openLDAP and have SAMBA domain using this along with the PAM changes on all machines to authenticate the logins.Now I've got a situation where I need to change the organization it currently is dc=mycomp, dc=local and I need to change the "local" part.

I thought that I could slapcat it out then change all dc=local to dc=blech and then reload the LDAP database. Then go around and change all the ldap configuration points to match.I don't think its as simple as change the base dn and everything below that will update.

View 1 Replies View Related

Ubuntu Servers :: KVM - How To Change Storage Directory

Jan 24, 2010

I'm running Ubuntu 9.10 with Kvm. I've used a howto to configure my network. Seems to work fine, I've installed the Virtual Machine manager, when I go to create my Virtual Machine, I see the the image is automatically created in /var/lib/libvirt/images. I have a totally separate path for my images. How to I configure a different image directory

View 1 Replies View Related

Ubuntu Servers :: Apache Won't Change From Default?

Mar 7, 2010

no matter what I do I cannot get my fresh install of apache to change off the default

Quote:

Originally Posted by apache

It works! This is the default web page for this server. The web server software is running but no content has been added, yet.

this is really annoying, my config file at /etc/apache2/apache2.conf is as follows (it is mainly the original with a few commented changes)

Code:
#
# Based upon the NCSA server configuration files originally by Rob McCool.
#
# This is the main Apache server configuration file. It contains the

[Code].....

View 1 Replies View Related







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