RSYNC between 2 Servers

to copy of files from your synology(….0.1) to new synology(…0.2)
connect to new Synology(…0.22) with Putty (ssh) as root and run followed command line:

date >/root/SOUT.log; date >/root/ERROUT.log; rsync -av 1>>/root/SOUT.log 2>>/root/ERROUT.log 10.0.0.1:/volume1 /volume1

description:

date >/root/SOUT.log        will set the starttime of rsync proces
date >/root/ERROUT.log    will … Continue reading

Nagvis on Nagios with MKLivestatus

download mk-livestatus
wget http://mathias-kettner.de/download/mk-livestatus-1.1.10p3.tar.gz
tar xzf mk-livestatus-1.1.10p3.tar.gz
cd mk-livestatus-1.1.10p3
yum install gcc-c++
./configure
make -j 8
make install
add in /usr/local/nagios/etc/nagios.cfg

“broker_module=/usr/local/lib/mk-livestatus/livestatus.o /usr/local/nagios/var/rw/live”

set this Option in /usr/local/nagios/etc/nagios.cfg
“event_broker_options=-1”

MK-Livestatus is ready to use!

Donwload NagVis

wget nagvis-1.5.10.tar.gz
tar … Continue reading

RHEL 5.6 als Router

edit /etc/sysctl.conf

set “net.ipv4.ip_forward” from 0 to 1 to enable Routing on ipv4

reread conf with:

/sbin/sysctl -p

for static routing edit

/etc/sysconfig/network-scripts/route-eth0

or

/etc/sysconfig/network-scripts/route-eth1

dependent from reachable networks on this interface

example entry:   10.131.0.0/24 via 192.168.131.1

 

 

windows :

route add  ZielNetz MASK ZielNetMask ZielGateway IF 10

 

Continue reading

Windows GPO

Alle Einstellungen die mit dem Gruppenrichtlinen-Snap-In (gpedit.msc) getroffen werden speichert Windows in der Datei registry.pol ab. Wenn sich jetzt ein Benutzer am System anmeldet werden die Informationen aus der Datei in die Registry geschrieben. Und jetzt kommts diese Datei existiert zweimal einmal unter c:\windows\system32\grouppolicy\machine und unter c:\windows\system32\grouppolicy\user.
Im ersten … Continue reading