Nagios3

PING services_nagios2.cfg

cat /etc/nagios3/conf.d/services_nagios2.cfg 
# check that ping-only hosts are up
define service {
        hostgroup_name                  all
        service_description             PING
	check_command                   check_ping!100.0,20%!500.0,60%
        use                             generic-service
	notification_interval           0 ; set > 0 if you want to be renotified
}

define hostextinfo{
        hostgroup_name          ONUs
        notes                   ONUs
        notes_url         ...

Debian /etc/network/interfaces

cat /etc/network/interfaces

This file describes the network interfaces available on your system

and how to activate them. For more information, see interfaces(5).

The loopback network interface

auto lo
iface lo inet loopback

The primary network interface

auto eth0
iface eth0 inet static
address 192.168.1.10
netmask 255.255.252.0
network 192.168.0.0
broadcast 192.168.3.255
gateway 192.168.1.1
dns-nameservers 192.168.1.1
dns-search home.com

rdesktop command line

rdesktop -d domain -u usuario -p passowrd -g 1200x768 host:3389

PHP MeuIP

<?php

if (!empty($_SERVER['HTTP_CLIENT_IP'])) { 
    echo $_SERVER['HTTP_CLIENT_IP'];
} else if (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { 
    echo $_SERVER['HTTP_X_FORWARDED_FOR']; }
else { echo $_SERVER['REMOTE_ADDR']; }

?>