Nagios check_netsnmp_memory and RHEL6

Today I was searching for a nagios check which gets memory information over snmp. So I came across check_netsnmp_memory. It has also a nice php template for pnp4nagios. To test the command I run: # ./check_netsnmp_memory -L “Memory Utilization” -A ‘*’ -H graylog2.domb.net -C public -a ‘total,user,cached,buffer,%used_real,%used_swap,%user_real,%cached_real’ -w ‘,,,500MB,,65%,65%,’  -c ‘,,,800MB,,80%,80%,’ As a result I… Read More »Nagios check_netsnmp_memory and RHEL6

Cleaning a host entry from MySQL DB with puppet 2.7.11-2

Yesterday I’ve had to clean up a host from the storeconfig mysql database. I ran the puppetstoredconfigclean.rb script and bumped into the following documented Bug http://projects.puppetlabs.com/issues/12405 which will be fixed in version 2.7.12: # ./puppetstoredconfigclean.rb  kvm0.domb.net ################################################################### /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require’: no such file to load — sqlite3 (MissingSourceFile) from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require’ from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:510:in `require’ from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:355:in… Read More »Cleaning a host entry from MySQL DB with puppet 2.7.11-2

EL 6.2 RHEL6.2 Puppet 2.7.9 The Foreman Mcollective RabbitMQ

This How to will walk you thru the steps of installing Pupppet, The Foreman, RabbitMQ, and MCollective: 1. Add your hostname to /etc/hosts.conf and /etc/sysconfig/network [root@puppet ~]# echo -e “127.0.0.1 puppet.${DOMAIN} puppet foreman.yourdomain.com foreman localhost” > /etc/hosts [root@puppet ~]# echo -e “NETWORKING=yes\nHOSTNAME=puppet.yourdomain.com” > /etc/sysconfig/network [root@puppet ~]# hostname foreman.yourdomain.com 2. First we need to add the… Read More »EL 6.2 RHEL6.2 Puppet 2.7.9 The Foreman Mcollective RabbitMQ

Bitdefender 2012 free for Linux Mint 12

Today I was searching anti virus software for Linux and I came across Bitdefender. Surprisingly Bitdefender gives away free licenses for home use. Here are the steps to install Bitdefender on Mint 12: 1. Go to their website http://download.bitdefender.com/SMB/Workstation_Security_and_Management/BitDefender_Antivirus_Scanner_for_Unices/Unix/Current/EN_FR_BR_RO/Linux/ and download the file BitDefender-Antivirus-Scanner-7.6-4.linux-gcc4x.i586.deb.run 2. Set the correct permission for BitDefender-Antivirus-Scanner-7.6-4.linux-gcc4x.i586.deb.run # chmod +x BitDefender-Antivirus-Scanner-7.6-4.linux-gcc4x.i586.deb.run… Read More »Bitdefender 2012 free for Linux Mint 12

RHEL6 SELinux cheat sheet

Lot of admin turn SELinux off because it looks complicated. Here is a cheat sheet to make your life easier Two important documentations about Selinux can be found here: http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Security-Enhanced_Linux/index.html http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Managing_Confined_Services/index.html —————————————————————————– If you work on Centos or Redhat, install the following packages on your system: setroubleshoot.noarch : Helps troubleshoot SELinux problems setroubleshoot-plugins.noarch : Analysis… Read More »RHEL6 SELinux cheat sheet

RHEL6 openldap server

Please note that all  double quote characters in this example are plain ASCII ” characters not  typographical ones! Step 1: first we need to install the required packages: #yum install openldap-servers migrationtools Step2: As the configuration for LDAP is stored inside the LDAP server itself the configuration has to be done by editing LDIF files… Read More »RHEL6 openldap server