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

Month: March 2014

By : Felipe Ferreira25/03/2014
BashScripts, Nagios, plugins Leave a Comment on check_varnish_uptime

check_varnish_uptime

Simple script to check if the varnish daemon has been restarted latelly Here is the code: #!/bin/bash #Get current varnish uptime #Version 1.0 #By Felipe Ferreira Set 2013 #Variables CRIT=900 #Check arguments print help if [ $# -lt 1 ]; […]

View the post
Tags: bashh, check, Nagios, uptime, varnish
By : Felipe Ferreira25/03/2014
Uncategorized Leave a Comment on check links

check links

This code has not been tested in the last 2 years… Here is the code: #!/usr/bin/perl use Time::HiRes; use LWP::UserAgent; use HTML::LinkExtor; my $start_begin = [ Time::HiRes::gettimeofday( ) ]; my $base_url = $ARGV[0]; my $virtual_host = $ARGV[1]; my $a = […]

View the post
By : Felipe Ferreira25/03/2014
BashScripts, Nagios, plugins, Varnish Leave a Comment on check_backend.sh

check_backend.sh

Another bash script to monitor if there were any failed connections to the backend’s. It is a simple aproach using the command: varnishstat -1 -f backend_fail Then it puts the output on a tmp file and next time it runs […]

View the post
Tags: bash, check_backend.sh, Linux, Nagios, varnish
By : Felipe Ferreira25/03/2014
Nagios, plugins, Windows Leave a Comment on check_con.vbs

check_con.vbs

Check connections for windows A Visual Basic Script to check how many open connections exists in a certain port. Here is the code: ‘Script Check Number of ESTABLISHED connections ‘Author: Felipe Ferreira ‘Data: 29/07/2010 ‘Version: 1.0 (nagios) ‘———-NAGIOS VARs Const […]

View the post
By : Felipe Ferreira25/03/2014
BashScripts, Nagios, plugins Leave a Comment on varnish check_hitratio

varnish check_hitratio

We need to know if varnish is caching hit ratio is as it should. So I wrote this simple bash plugin for nagios. ./check_hitratio.sh 96 90 OK – 98.67% hit_ratio|hit_ratio=98.67 96 = warning 90 = critical if no arg is […]

View the post
Tags: bash, hitratio, Nagios, plugin, varnish
By : Felipe Ferreira14/03/2014
Nagios, plugins 6 Comments on check_http.sh

check_http.sh

Simple bash script using curl to check a website. It works on HTTP and HTTPS. Requirement: curl Usage ./check_http.sh Example: ./check_http.sh ‘http://oglobo.globo.com’ oglobo 1 OK – Site oglobo.globo.com key oglobo time 0.019 |’time’=0.019s;1 Here is the code: #!/bin/bash #Verificar um […]

View the post
Tags: check, curl, http, Nagios, script
By : Felipe Ferreira12/03/2014
BashScripts 1 Comment on script to monitor cpu usage by process

script to monitor cpu usage by process

A bash script to get the CPU usage by process usage: nohup ./check_proc bwengine 70 & bwegnine is the process name we want to monitor 70 is to log only when the process is using over 70% of the CPU. […]

View the post
Tags: bash, cpu, monitor, process, script

Posts navigation

1 2 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.