Bash script to run post installation of CentOS or RedHat. #/bin/bash # post installation script # # #set -x echo “. Post installation script” # # /etc/hosts # echo “. /etc/hosts” # # nozeroconf # echo “. removendo suporte a […]
glassfish disable trace method
Glassfish can not disable the trace method witch is a security problem! This is what the Oracle support wrote me: I did some testing using the following CLI method because it is not possible to use the GUI to alter […]
check log script
Nagios bash check_log Its often needed to check log files for a keyword. So I wrote a simple bash script to do that plus integrate with nagios and perfdata so it also generate graphic. The script is based on tail […]
How to install snort on centos 5.5
How to install snort on centos 5.5 This guide is a step by step on how to install from source snort-2.9.0.5 on CentOS 5.5 64bits it should work the same way for RedHat. Also with the mysql option enabled. The […]
WLST How To Start Stop
WLST How To Start Stop Weblogic command line using wlst is not that simple to learn. $ wlst connect(‘user’,’password’,’t3://localhost:7201′); ls(‘Servers’); GET STATUS: state(‘ecestgpres1′,’Server’) TO STOP: shutdown(‘castgpres1′,’Server’,’true’,10) TO START: start(‘castgpres1’) NOTES: How to ask for help: help(‘all) – very usefull to […]
Troubleshooting Centreon Graphs
TO IDENTIFY ERROS WITH GRAPH, verify if: service-perfdata file exist in Nagios “var” directory ( /var/local/nagios/ # ll /usr/local/nagios/var/service-perfdata To find out where is inside centreon: Configuration>Nagios>Centreon>Central>”Perfdata file” service-perfdata is growing (if Nagios insert data il file) (if not try […]
Upgrade ubuntu from 10.10 to 11.04
Network Upgrade for Ubuntu Desktops (Recommended) You can easily upgrade over the network with the following procedure. Open the Update Manager application from the System ? Administration menu. In Update Manager, click the Settings… button, and enter your password […]
