Skip to content
FELIPE FERREIRA

FELIPE FERREIRA

System Administrator

  • Home
    • ME
    • Hobby
      • Motogp
  • Linux
    • Amazon-AWS
    • bash
    • LinuxCommands
    • Varnish
    • Centos
    • BashScripts
    • tomcat
  • Exchange
  • ESX
  • Varnish
  • Security
  • Centreon

Tag: bash

By : Felipe Ferreira02/05/2012
BashScripts 1 Comment on File cleanup script for Linux

File cleanup script for Linux

Sometimes disks fill up with logs for example, and we the administrators have to login sometimes even wake up just to delete log files! Well this script solves the problem. In this case I used to cleanup Glassfish log files. […]

View the post
Tags: bash, cleanup, delete, files, Linux, logs, script
By : Felipe Ferreira17/04/2012
Nagios, plugins 1 Comment on check_file_age

check_file_age

I wrote to scripts with the same idea, to monitor a file age, I have written it also in vbs in the past. Now I did it in bash and php. BASH Version, example: check_file_age.sh /opt/solr-3.4.0/app/solrrioshow/conf/dataimport.properties 1440 1441 UPDATED: Its […]

View the post
Tags: bash, check_file_age, Linux, Nagios, php, script.check_file_age
By : Felipe Ferreira08/09/201113/09/2019
bash, BashScripts, HowTo, Linux Leave a Comment on SSH Automatic Login

SSH Automatic Login

SSH Automatic Login Well I am tired of entering my password 100 times a day, are you too? The solution I wrote this script using the powerful expect download expect I actually use a more complex script since our root […]

View the post
Tags: automatic, automtization, bash, change, expect, login, password, root, script, ssh, su, tasks
By : Felipe Ferreira12/07/2011
HowTo Leave a Comment on Bash to run after linux installation

Bash to run after linux installation

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 […]

View the post
Tags: bash, installation, Linux, run
By : Felipe Ferreira20/06/2011
BashScripts, HowTo, Linux, Nagios, plugins 4 Comments on check log script

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 […]

View the post
Tags: bash, centreon, check, check_log, e-mail, grep, log, Nagios, script, tail
By : Felipe Ferreira27/10/2010
HowTo, Linux Leave a Comment on Compare float in bash

Compare float in bash

Compare float in bash If you have a regular if and one of the integers has a float value like 1.200 you will get an error message. The best way to do is using the bc command. Like: $ echo […]

View the post
Tags: bash, compare, float, HowTo, script, values
By : Felipe Ferreira30/09/2010
Nagios, plugins Leave a Comment on check_vmstats

check_vmstats

So many check_mem scripts out there but I am still not satified so I wrote my own. Many scripts report the total use of memory but they dont care how much memory is placed in cache by the OS or […]

View the post
Tags: bash, check, check_vmstat, Linux, Nagios, plugin, sh, vmstat

Posts navigation

Previous 1 … 3 4 5 Next

Recent Posts

  • How to Write a node application to run openai chatgtp inside a docker container
  • AWS Solution Architect Study Guide
  • check_vmware_esx slow

Categories

SEARCH

https://www.buymeacoffee.com/felipeferreira
All Right Reserve. Theme: Franchise by Moral Themes.