Script to auto create webinject xml config files from a list of URL ./buildskel SKELFILE URLFILE FILEOUTPUT buildskel URLFILE THe URL list is just a one url per line text file
Can't locate Sys/Statistics/Linux.pm
When using check_stats.pl on Centos 7 I got a known error but not so easy to fix… PROBLEM: # su – nrpe -c “/usr/lib64/nagios/plugins/check_stats.pl -C -w 90% -c 95%” Can’t locate Sys/Statistics/Linux.pm in @INC (@INC contains: /usr/lib64/nagios/plugins /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl […]
Access log to DB
Send apache access log to a mysql database #!/bin/bash # 2015-03-04 Nereu – versao Tomcat #set -x if [ ! -d /usr/local/tmp/his/$1 ] then echo ‘Ops!not found data/produto!’ echo “Uso: $0 YYYYMMDD_Produto” echo “Exemplo: $0 20150508_product” exit 1 fi date […]
Relax and Recover
Relax and Recover (ReaR) http://relax-and-recover.org/ . Thread sobre ReaR na Symantec http://www.symantec.com/connect/forums/netbackup-linux-bare-metal-restore-using-open-source-relax-and-recover-rear . Configurando NFS server # service rpcbind start # service nfs start # service nfslock start # lvcreate –name LV_media –size 4G VG_ROOT # mkfs -t ext4 -O […]
centos 6 change keyboard layout command line
centos 6 change keyboard layout command line vi /etc/sysconfig/keyboard KEYTABLE=”br-abnt2″ MODEL=”abnt2″ LAYOUT=”br” KEYBOARDTYPE=”pc” to exit vi do CRTL-ZZ