cdn.optin-machine.com/test.png
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <netdb.h> | |
int main(void) { | |
struct protoent *proto; | |
setprotoent(0); | |
while ((proto = getprotoent()) != NULL) { | |
fprintf (stdout, "%s ", proto->p_name); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# /!\ moved to https://github.com/bdossantos/nagios-plugins | |
# | |
# check_ddos Nagios plugin | |
# | |
# Options : | |
# -w/--warning) | |
# Warning value (number of SYN_RECV) | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /usr/local/src/ | |
wget http://prdownloads.sourceforge.net/sourceforge/nagios/nrpe-2.14.tar.gz | |
tar -zxf nrpe-2.14.tar.gz | |
cd nrpe-2.14 | |
./configure --with-nagios-user=shinken --with-nagios-group=shinken --libexecdir=/usr/local/shinken/libexec --enable-libtap --enable-extra-opts --enable-perl-MODULES | |
make all | |
make install-plugin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
apt-get install libio-all-lwp-perl -y; | |
ln -s /usr/share/munin/plugins/apache_* /etc/munin/plugins/; | |
invoke-rc.d munin-node restart; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
apt-get install libssl-dev build-essential git-core -y; | |
git clone git://github.com/isaacs/nave.git /usr/local/src/nave; | |
pushd /usr/local/src/nave | |
chmod +x nave.sh; | |
./nave.sh usemain 0.8.9; | |
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Cookbook Name:: mongodb | |
# Recipe:: default | |
case node['platform'] | |
when "ubuntu" | |
execute "apt-get update" do | |
action :nothing | |
end | |
execute "add gpg key" do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
time 5 min 10 min 15 min | |
warning: 90% 70% 60% | |
critical: 100% 80% 70% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# client body | |
client_header_timeout 3600; | |
client_body_timeout 3600; | |
client_max_body_size 128m; | |
# proxy options | |
proxy_read_timeout 3600; | |
proxy_connect_timeout 3600; | |
#ignore_invalid_headers on; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bdossantos:~/ $ ping -c 4 91.121.149.132 | |
PING 91.121.149.132 (91.121.149.132): 56 data bytes | |
64 bytes from 91.121.149.132: icmp_seq=0 ttl=54 time=87.858 ms | |
64 bytes from 91.121.149.132: icmp_seq=1 ttl=54 time=77.375 ms | |
64 bytes from 91.121.149.132: icmp_seq=2 ttl=54 time=76.998 ms | |
64 bytes from 91.121.149.132: icmp_seq=3 ttl=54 time=75.763 ms | |
--- 91.121.149.132 ping statistics --- | |
4 packets transmitted, 4 packets received, 0.0% packet loss |
OlderNewer