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 how many users in a group
Nagios plugin to Check how many users in a group check_group.vbs This script verifies if the number of users in a particular group changes. The output in debug mode Example: c:Program Files (x86)Nc_netscript>cscript.exe //nologo C:PROGRA~2NC_Netscr iptcheck_group.vbs -g CN=Domain Admins,CN=Users -u […]
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 […]
Centreon 2.2
Centreon 2.2 changelog New Features Multi Engines (Nagios, Icinga, Shinken) Possibility to use multiple event broker modules New command service configuration interface with argument descriptions New search fields in Monitoring > Services pages (search by host, service, plugin output) Shortcut […]