Can’t locate Sys/Statistics/Linux.pm

August 5th, 2016 No comments

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 /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/lib64/nagios/plugins/check_stats.pl line 33.
BEGIN failed–compilation aborted at /usr/lib64/nagios/plugins/check_stats.pl line 33.

Continue reading “Can’t locate Sys/Statistics/Linux.pm” »

Categories: Linux Tags: , ,

Access log to DB

May 24th, 2016 No comments

This script loads tomcat or apache logs into a mysql database.

Here is the code:

#!/bin/bash
#
# 2015-03-04 Nereu - versao Tomcat
#

 Continue reading “Access log to DB” »
Categories: HowTo, Linux Tags:

Centreon Install howto

May 24th, 2016 No comments

Centreon Install
(without package, manual)
NAT: 10.240.80.41

Pagina 1 (http://documentation.centreon.com/docs/centreon/en/2.5.x/installation/from_packages.html)

Continue reading “Centreon Install howto” »

Categories: HowTo, Uncategorized Tags:

Relax and Recover

May 24th, 2016 No comments

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

Continue reading “Relax and Recover” »

centos 6 change keyboard layout command line

May 20th, 2016 No comments

centos 6 change keyboard layout command line

vi /etc/sysconfig/keyboard
KEYTABLE=”br-abnt2″
MODEL=”abnt2″
LAYOUT=”br”
KEYBOARDTYPE=”pc”

Continue reading “centos 6 change keyboard layout command line” »

Categories: HowTo, Linux Tags: , , ,

tomcat multiple instances script

May 20th, 2016 No comments

This scripts is easy to use and creates multiple tomcats on a single server.
I still find it amazing and sad that by default and by RedHat support, you can only
install a single Tomcat instance per server! This is crazy.
Imagine a 16 CPU 64GB server with a single instance.

Continue reading “tomcat multiple instances script” »

Categories: bash, BashScripts, HowTo, Tomcat Tags:

rtorrent how to

May 20th, 2016 No comments

I needed a simple linux torrent client that work via Proxy!
I tried Transfer,Deluge,uTorrent(via wine, very buggy!) none of them worked.
Deluge has a known bug of using proxy.
uTorrent worked for a bit by proxy but very buggy with wine and Linux Mint.

Continue reading “rtorrent how to” »

Categories: HowTo Tags: , ,

Centreon Reporting Dashboard Undetermined

May 16th, 2016 3 comments

Centreon 2.7.x Reporting Dashboard Undetermined
There is a problem with centreon Dashboard where it can not generate the reporting
correctly.

Continue reading “Centreon Reporting Dashboard Undetermined” »

Categories: Centreon Tags: , ,

MotoGP 2016 races online

April 26th, 2016 No comments

I will post all motogp races here:

I do have older ones 2009,2010,2011 at
http://www.4shared.com/dir/tSmvFr3w/MOTOGP.html#dir=tSmvFr3w

Continue reading “MotoGP 2016 races online” »

Categories: MotoGP2016, News Tags: , , ,

iptables block country script

April 25th, 2016 No comments

My own server is daily attacked by SSH scanner and bruteforce scripts.
My fail2ban solution

Continue reading “iptables block country script” »