Jump to content

Strabo

Members
  • Content Count

    10
  • Joined

  • Last visited

Community Reputation

2 Neutral

About Strabo

  • Rank
    Noob
  1. I almost forgot the simple one security is turned on by default and you can't connect remotely unless you change it. In the example below I canged it to allow all so I could connect to it from anywhere I wanted to from the internet or local lan.
  2. Ok so it has been a while since I wrote a how-to for this site so here goes. This seems to be one of the more sought after confgiurations for network monitoring. You will need apache (httpd), mrt, and net-snmp-utils installed. since most noobs use RPM installations I am sure you can figure ou how to use the add remove programs or rpm -ivh <rpm>. Below is the example of me adding my internet ip of my firewall to mrtg. First you need to make sure you can get snmp data from the device you wish to monitor. #you hould see this output for snmp walk: Now you need to make the config (cfg) file for the device you want to monitor. Now you need to run the env statement "three" times: #You should see this after each time ran: Now you need to make the actual index files for each machine: #Very important you need to append the new machine to the line each time, if you do not you will only see the newest entry. Now lets edit mrtg to poll ever 5 minutes: Now restart the crond service. Strabo
  3. Strabo

    IP update

    http://www.tzo.com has a Linux client too.
  4. My original how-to shows how to get the server up and running. If you are worried about security try changing the permissions on start.sh and stop.sh to> chmod 700 *.sh so only root can execute the scripts. Strabo
  5. We are going to install Nagios monitoring tool and Nagat for configuring the nagios sctuff. If you search Sourceforge you will see a few different nagat tools that users have written to do different stuff. I am also going to include the nrpe_nt executable, the wincheck_counter (this does command line perfmons on windows) and a vb script that does services up or down state. The great thing about Nagios is you can make your own Plugins for it etc... This how-to requires apache and php to be installed and configured correctly! Get nagios and decompress it. Make a directory to install Nagios in You need to add the user and group for nagios. Now lets configure the application for installation. You should see this output: Next you have to do the following as it states from the output above. The command "make install-config" installs sample config scripts in You need to make the directory read write so you can edit the files with the Nagat configuratoin tool. Now you need to edit Apache. Now insert the following under ScriptAlias. Now you can check the nagios config from the terminal. I like using the tool in Nagat that does the same thing so you can see it in a webpage. You can put security on each section of the reporting tool to limit access to it. This is stored in CFG.CGI file. Enter the password when asked. now lets put the .htaccess files in the directories for security. Enter in this in the .htaccess file. Now it is time to install the nagios plugin so you can actually monitor stuff. These are some of the generic default monitoring scripts for like Oracle or cpu etc.. The app is "nagios-plugins-1.4.0alpha1.tar" Now lets compile the plugin. OK you know the drill with make and make install. Now if you use Nagat you have to do chmod 777 on the directory with the executable. You need to do the same thing for hte nagios execuable too. Now lets install NRPE 2.0 so you can execute remote commands on another machine. nrpe-2.0.tar.gz
  6. I forgot to mention that you should login to the Linux server locally first so it can create your home directory (it makes you check ok to the popup). If you try to ssh to the box remotely the first time you login to the server it will authenticate then the ssh session will close (fails to make the home directory is the cause of the problem). I tested this with putty.exe. If I find a fix I will post it. Once you login locally with your Windows ADS account you can then login via ssh with no problems. Strabo
  7. This post is to show you how to use Windows ADS accounts to login to your Linux server instead of manually making seperate Linux local accounts. The reason I did this is because some of our clients wanted to use sftp and the easiest way to manage all the different accounts for each client is creating OU's in Active Directory Services in Windows. This document will work with Windows 2000 or 2003 ADS. Winbind is integrated with Samba and will require you to configure Samba and PAM for this operation to work succesfully. Lets get started Step 1: Lets backup your smb.conf file incase you make a mistake you can start over cp /etc/samba/smb.conf /etc/samba/smb.bak Step 2: Now its time to edit your smb.conf file vi /etc/samba/smb.conf Step 3: Now enter in the following below. You can delete the contents of your orginal smb.conf file as this will replace everything in there. You will have to change the following lines to your configuration: workgroup =
  8. This script will backup your mysql databases, gzip them up, ftp them off site, email you confirmation. For emailing you you have to create a file with the text for the body of the email. The email file used in this script is sqlbackup could have something like this in it. To do several databases just do like this to backup 4 databases named db1 - db4 The Actual Script!!! Note to attach a backup to your email you have to use "uuencode" which I personally do not do as I would rather not attach several megs or hundreds of megs to my email. Strabo
  9. Anyweb, Invisionboard is a great forum platform, thanks for pointing me to it. On the other hand it is very customizable so when you going to change the skin ? Strabo
  10. This will tell you how to install apache tomcat java and tomcat connector step by step with screen shots so you wont get lost. I got ZERO help in doing this from anyone on IRC. Here is the link to my doc but if you can't get it for some reason (1.2 mb big) i'll paste the instructions below wihtout scren shots. http://www.xn85turbo.com/Apache-Tomcat-Tom...ector-Setup.doc [strabo] These are the environment variables! echo "#Set a few environmental variables for Tomcat, Java, and Apache" >> /etc/profile echo "export CATALINA_HOME=/usr/local/tomcat/" >> /etc/profile echo "export JAVA_HOME=/usr/local/java" >> /etc/profile echo "export APACHE_HOME=/usr/local/apache" >> /etc/profile echo "#Start Tomcat and Apache echo "/usr/local/sbin/start.sh" >> /etc/rc.local echo "#Set a few environmental variables for Tomcat, Java, and Apache" >> /etc/rc.local echo "export CATALINA_HOME=/usr/local/tomcat/" >> /etc/rc.local echo "export JAVA_HOME=/usr/local/java" >> /etc/rc.local echo "export APACHE_HOME=/usr/local/apache" >> /etc/rc.local Step 1: Go get the apps listed in each install section! Step 2: Change to the directory with the applications> cd /usr/local/src/NfuseApache Step 3: Unpack Apache first: tar zxvf httpd-2.0.47.tar.gz Step 4: Change to the Directory with the apache installation files> cd /usr/local/src/NfuseApache/httpd-2.0.47 Step 5: Configure Apache: ./configure --prefix=/usr/local/apache --enable-so Step 6: Make the package> make Step 7: Install the package> make install Step 8: Test Apache configuration> /usr/local/apache/bin/apachectl configtest Step 9: Set the Apache variable> export APACHE_HOME=/usr/local/apache Verify that the variable is set> echo $ APACHE_HOME Install Tomcat: Step 1: Change to the installation directory> cd /usr/local/src/NfuseApache Step 2: Copy tomcat to /usr/local/ > cp -p tomcat-4.1.27.tar.gz /usr/local/ Verify its there> ls /usr/local/ Step 3: Change to the /usr/local directory > cd /usr/local/ Step 4: Unpack Tomcat> tar zxvf tomcat-4.1.27.tar.gz Step 5: Make a symbolic link ot the tomcat installation directory> ln -s /usr/local/jakarta-tomcat-4.1.27 /usr/local/tomcat Verify its there> ls Step 6: Set the tomcat directory variable> export CATALINA_HOME=/usr/local/tomcat Step 7: Verify that it now read the new variable> echo $CATALINA_HOME Build install JAVA Step 1: Make the java package executable> chmod 777 chmod 777 j2sdk-1_4_2_03-linux-i586.bin Step 2: Copy the package to /usr/local/ > cp j2sdk-1_4_2_03-linux-i586.bin /usr/local/ Step 3: Change to the /usr/local/ directory> cd /usr/local/ Step 2: Unpack the Java package> ./ j2sdk-1_4_2_03-linux-i586.bin Step 3: Read the Disclaimer and except it at the end by typing> yes The package will unpack and create a directory called j2sdk1.4.2_03 Step 4: Make a symbolic link to the java directory> ln -s /usr/local/j2sdk1.4.2_03/ /usr/local/java Step 5: Verify the /usr/local/java symbolic link was created> ls /usr/local Step 6: Set the java directory variable> export JAVA_HOME=/usr/local/java Verify the variable was set for java> echo $JAVA_HOME Build Tomcat/Apache Connector: Step 1: Change to the installation directory> cd /usr/local/src/NfuseApache/ Step 2: Unpack the connector package> tar xvzf jakarta-tomcat-connectors-jk-1.2-src-current.tar.gz Step 3: Set the Connector Home variable> export CONNECTOR_HOME=/usr/local/src/NfuseApache/jakarta-tomcat-connectors-jk-1.2.5-src Verify the variable is correct> echo $ CONNECTOR_HOME Step 4: Change to the connector installation directory> cd $CONNECTOR_HOME/jk/native Step 5: Run the build command> ./buildconf.sh Step 6: Run the configure command to link it to apache> ./configure --with-apxs=/usr/local/apache/bin/apxs Step 7: Make the package> make Step 8: Install the package> make install Step 9: Verify it made the file mod_jk.so> find / -name mod_jk.so
×
×
  • Create New...