Don’t fear the penguin

Ιουλίου 6, 2009

Οδηγόντας

Κατηγορίες: Uncategorized — Tags:, — Sotiris Tsimbonis @ 12:43 πμ

Οταν κυκλοφορώ πεζός ή σπρώχνοντας παιδικό καρότσι, πολλές φορές χρειάζομαι έντυπα από τους streetpanthers.

Οταν οδηγώ όμως, πολλές φορές εύχομαι να είχα μια συσκευή ή έναν τρόπο για να επικοινωνίσω με τους άλλους οδηγούς γύρω μου (εμβέλεια 50μ)..

  • Εχει βραδυάσει και κυκλοφορούν στην πόλη χωρίς φώτα
    “ΦΩΤΑ ΡΕΕΕΕ”
  • Κυκλοφορούν με κάποια πόρτα ανοιχτή (ή το καπώ!)
    “ΚΛΕΙΣΕ ΚΑΜΙΑ ΠΟΡΤΑ ΜΑΣΤΟΡΑ, ΓΙΑΤΙ ΘΑ ΠΕΣΕΙ Η ΓΙΑΓΙΑ ΑΠΟ ΤΟ ΠΙΣΩ ΚΑΘΙΣΜΑ”
  • Περιμένω να βγω από διασταύρωση, και ο απέναντι που έρχεται “ξεχνάει” να βγάλει φλας..
    “ΦΛΑΣ ΡΕ $(*&%$”

Ας μπορουσα, για παράδειγμα, να στείλω SMS στον αριθμό πινακίδας του οχήματος..

UPDATE: ΝΑ μια πολύ καλή εφαρμογή για το Bluetooth που έχουν τώρα όλα τα καινούρια αυτοκίνητα..

Ιουλίου 3, 2009

gasprice

Κατηγορίες: Uncategorized — Tags: — Sotiris Tsimbonis @ 11:50 μμ

Αυτό τον καιρό που έχω άδεια (λόγω προαγωγής) οδηγώ καθημερινά (ενώ τον άλλο καιρό χρησιμοποιώ πάντα λεοφορείο για να πάω στη δουλειά).

Ενα site που είχα δει παλιότερα αλλά τώρα άρχισα να χρησιμοποιώ λοιπόν, είναι το gasprice.gr.

Δουλεύει εθελοντικά και μπορει ο καθένας μας να ενημερώνει για τις τιμές καυσίμων σε πρατήρια που βλέπει συχνά (πχ. στο δρόμο σπίτι-δουλειά-σπίτι καθημερινά).

Πραγματικά πολύ ωραίο site και χρήσιμο!

Ιουνίου 25, 2009

Προαγωγή

Κατηγορίες: personal — Tags: — Sotiris Tsimbonis @ 1:21 μμ

Κάποιος σοφός μου είχε πει:

Στο 1ο παιδί γίνεσαι χαζομπαμπάς…
Στο 2ο παιδί γίνεσαι μπαμπάς…
Στο 3ο παιδί γίνεσαι πατέρας…

Σήμερα πήρα προαγωγή από χαζομπαμπάς σε μπαμπάς :-)

Ιουνίου 24, 2009

RANCID – the Really Awesome New Cisco confIg Differ

Κατηγορίες: favorite tools, network — Tags:, — Sotiris Tsimbonis @ 10:04 πμ

Do you want to backup all your router configurations in one location? Keep them under revision control? Also include their hardware specs, modules etc? grep for serial numbers or configuration directives in all of them? Execute a series of command in some of them? Generate graphs of your network topology automagically? Run security audits on your configs? See what changed last night by other co-workers?

Meet RANCID, the Really Awesome New Cisco confIg Differ, by Shrubbery Networks!

RANCID monitors a router’s (or more generally a device’s) configuration, including software and hardware (cards, serial numbers, etc) and uses CVS or Subversion to maintain history of changes.

RANCID does this by the very simple process summarized here:

  • login to each device in the router table (router.db),
  • run various commands to get the information that will be saved,
  • cook the output; re-format, remove oscillating or incrementing data,
  • email any differences from the previous collection to a mail list,
  • and finally commit those changes to the revision control system

Rancid currently supports Cisco routers, Catalyst switches, Juniper routers, F5 devices, HP Procurve switches and a host of others.

Using a tool like ViewVC, WebSVN or chora to put your repository on the web is a must.


A possible alternative is ZipTie, nowadays known as NetworkAuthority Inventory by AlterPoint.

Ιουνίου 23, 2009

Munin – performance monitoring tool

Κατηγορίες: System Administration, favorite tools — Tags:, — Sotiris Tsimbonis @ 9:49 πμ

My favorite performance monitoring tool: Munin by linpro.

Munin monitoring tool surveys all your computers and remembers what it saw. It presents all the information in graphs through a web interface. Its emphasis is on plug and play capabilities. After completing a installation a high number of monitoring plugins will be playing with no more effort.

Using Munin you can easily monitor the performance of your computers, networks, SANs, applications, weather measurements and whatever comes to mind. It makes it easy to determine “what’s different today” when a performance problem crops up. It makes it easy to see how you’re doing capacity-wise on any resources.

Munin uses the excellent RRDTool and the framework is written in Perl, while plugins may be written in any language. Munin has a master/node architecture in which the master connects to all the nodes at regular intervals and asks them for data. It then stores the data in RRD files, and (if needed) updates the graphs. One of the main goals has been ease of creating new plugins (graphs).

Previous articles in my blog about munin:

Ιουνίου 22, 2009

mtr: Matt’s traceroute

Κατηγορίες: System Administration, favorite tools — Tags:, — Sotiris Tsimbonis @ 10:49 πμ

Another favorite tool.. mtr by Matt Kimball.

mtr combines the functionality of the ‘traceroute’ and ‘ping’ programs in a single network diagnostic tool.As mtr starts, it investigates the network connection between the host mtr runs on and a user-specified destination host. After it determines the address of each network hop between the machines, it sends a sequence ICMP ECHO requests to each one to determine the quality of the link to each machine. As it does this, it prints running statistics about each machine.

Ιουνίου 19, 2009

Dstat: Versatile resource statistics tool

Κατηγορίες: System Administration, favorite tools — Tags:, — Sotiris Tsimbonis @ 10:05 πμ

Meet Dstat, the Versatile resource statistics tool by Dag Wieers.

Dstat is a versatile replacement for vmstat, iostat, netstat, nfsstat and ifstat. Dstat overcomes some of their limitations and adds some extra features, more counters and flexibility. Dstat is handy for monitoring systems during performance tuning tests, benchmarks or troubleshooting.

Dstat allows you to view all of your system resources instantly, you can eg. compare disk usage in combination with interrupts from your IDE controller, or compare the network bandwidth numbers directly with the disk throughput (in the same interval).

Dstat gives you detailed selective information in columns and clearly indicates in what magnitude and unit the output is displayed. Less confusion, less mistakes.Dstat is unique in letting you aggregate block device throughput for a certain diskset or networkset, ie. you can see the throughput for all the block devices that make up a single filesystem or storage system.

Ιουνίου 18, 2009

Dconf: System config collector

Κατηγορίες: System Administration, favorite tools — Tags:, — Sotiris Tsimbonis @ 4:24 μμ
Recommended tool for any linux distro: Dconf by Dag Wieers.
Dconf is a tool to collect a system’s hardware and software configuration. It allows to take your system configuration with you or compare systems (like nodes in a cluster) to troubleshoot HW or SW problems.

Dconf is also useful in projects where you have to manage changes as a team. Dconf can send out changes to your systems to a list of email addresses so that they can be revised.

As a sysadmin, you won’t become too paranoid if less experienced people have root-access. As a consultant, you won’t feel isolated if you don’t have remote access to your systems. As a support engineer, you won’t become frustrated if a customer has fiddled around with some important config file and you have to find what.

Ιουνίου 9, 2009

Βεργίνα

Κατηγορίες: Uncategorized — Tags: — Sotiris Tsimbonis @ 3:39 μμ

Χθες κάναμε οικογενειακώς μια μικρή εξόρμηση μέχρι τη γειτονική Βεργίνα.. Η αλήθεια είναι ότι είχα χρόνια να πάω, η τελευταία φορά πρέπει να ήταν το 1990 (γιατί αυτά που έχουμε κοντά τα ξεχνάμε..).

Λόγω της ημέρας (Αγ. Πνεύματος) τα Ανάκτορα ήταν κλειστά, αλλά οι Βασιλικοί Τάφοι ανοιχτοί χωρίς είσοδο επι πληρωμής για το κοινό. Ο χώρος που έχουν κάνει για να προβάλουν τους Μακεδονικούς Τάφους είναι, με διαφορά, το καλύτερο Ελληνικό μουσείο που έχω πάει μέχρι τώρα (και έχω πάει σε αρκετά)! Εντυπωσιάστηκα! Εμεινα άφωνος! Τους βγάζω το καπέλο!

vergina_tafoi_19Εκεί που παλιά ήταν ο υπαίθριος αρχαιολογικός χώρος με τους Τάφους, έχουνε κάνει μια τεράστια χωμάτινη “τούμπα” που έχει καλύψει τα ευρύματα. Μπαίνεις μέσα σ’αυτό τον τεχνιτό τύμβο (σταθερή θερμοκρασία,  εντυπωσιακό σκοτάδι), και βλέπεις αρχικά διάφορα ευρύματα από το χώρο, κατάλληλα φωτισμένα ώστε να τα αναδείχνουν. Προχωρόντας υπάρχει ένα Ηρώων και παρακάτω ο πρώτος Μακεδονικός Τάφος.. Μετά κι άλλα ευρήματα και προχωρόντας τον τάφο του Φιλίππου Β’.. Μπορείς μάλιστα να κατέβεις μέχρι κάτω στην ανασκαφή σε απόσταση μόλις 5 μέτρων! Είναι πραγματικά σχεδόν απίστευτο! Επίσης υπάρχει στο χώρο η πανοπλία του Φιλίππου, η χρυσή λάρνακα με το αστέρι της Μακεδονίας κλπ. Επιπλέον υπάρχουν άτομα του μουσείου να σε βοηθήσουν και να σου λύσουν τυχών απορίες (όχι οι ξεναγοί επι πληρωμής, άλλοι).

Πάνω από τον τύμβο, ο εξωτερικός χώρος πανέμορφος! Τεράστιος κήπος με πολλά λουλούδια, δέντρα, μονοπάτια, παγκάκια, αυτόματο πότισμα.. Πολύ περιποιημένος, άνετα κάθεσαι για να ταϊσεις το μωρό ή για να απολαύσεις μια ηλιόλουστη ημέρα!!

Η τούμπα με τους Μακεδονικούς Τάφους από ψηλά

Η τούμπα με τους Μακεδονικούς Τάφους από ψηλά

Και επιπλέον, ο Δήμος Βεργίνας πολύ σωστός και οργανωμένος! Απαγορεύει τη σταθμευση αυτοκινήτων κοντά στον αρχαιολογικό χώρο (γιατί αν ήταν να φτάνουνε όλοι εκεί κοντά με το αυτοκίνητο.. θα γινόταν πανδαιμόνιο).. Υπάρχουν parking ντόπιων επι πληρωμής (1.5 ευρώ) σε απόσταση 500m από το χώρο, αλλά και μια τεράσια έκταση για δωρεάν parking σε απόσταση 2 λεπτών.. Αν κάποιος πάρει κλήση για παράνομη στάθμευση ..τα ‘θελε και τα παθε!

Το φράγμα του Αλιάκμονα στη Βέροια

Το φράγμα του Αλιάκμονα στη Βέροια

Φεύγοντας, σταματήσαμε και στο φράγμα του Αλιάκμονα.. Ο χώρος στην όχθη διαμορφωμένος πολύ ωραία για ψάρεμα, οικογενειακά πικ-νικ, φαγητό σε ταβέρνα κλπ!

Μαΐου 19, 2009

RIPE DNS Basics

Κατηγορίες: DNS — Sotiris Tsimbonis @ 10:37 πμ

A beginner DNS presentation from RIPE NCC that shows how a simple DNS query is resolved “behind the scenes”…

Announcement follows:

The RIPE NCC is pleased to announce the launch of the first module of our DNSSEC e-learning course, entitled “DNS Basics”.

This introductory module explains how DNS works by following a simple query, and can be viewed at:
https://e-learning.ripe.net/training/e-learning/

In the coming months we will be releasing several more modules. Next up are:

Module 2: DNS Vulnerabilities
Module 3: DNSSEC

The RIPE NCC E-Learning Centre is a free-of-charge service available to everyone. If you have any questions, please feel free to contact us at <e-learning@ripe.net>.

Happy Learning,

Rumy Kanis
Training Services Manager
RIPE NCC

Μαΐου 18, 2009

CDP for linux

Κατηγορίες: System Administration — Tags: — Sotiris Tsimbonis @ 2:18 μμ

Network Inventory .. What a nightmare to keep up-to-date!

Luckily, if you use Cisco switches, CDPR is here to help you discover where do all your network cables end up.. Simply run it on your linux server, wait a few seconds, and your cisco switch will broadcast the info.

Read about it at http://www.debian-administration.org/article/Where_art_thou_-_CDPR.

The opposite is also useful as well..  A daemon run on linux systems that speaks Cisco Discovery Protocol, thus showing up on your switch’s cdp neighborhood ..

I found cdp-send of cdp-tools that works, but ladvd works better with bonding :)

sw-02>show cdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
 S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone

Device ID        Local Intrfce     Holdtme    Capability  Platform  Port ID
sw-01            Fas 0/23           150          S I      WS-C3550-1Gig 0/4
router-01        Fas 0/24           158           R       3640      Fas 0/0
linux.local      Fas 0/19           176           H       Linux     eth0

sw-02>show cdp neighbors detail
Device ID: linux.local
Entry address(es):
 IP address: 192.168.1.11
Platform: Linux,  Capabilities: Host
Interface: FastEthernet0/19,  Port ID (outgoing port): eth0
Holdtime : 160 sec

Version :
Linux 2.6.18-92.1.22.el5 #1 SMP Tue Dec 16 11:57:43 EST 2008 x86_64

advertisement version: 2
Duplex: full
Management address(es):

Απριλίου 28, 2009

Send mon alerts to twitter

Κατηγορίες: System Administration — Tags:, — Sotiris Tsimbonis @ 7:55 πμ

Just a quick proof of concept hack..

I modified twitter-cmdline script to fit mon’s alert specs..

Download twitter-cmdline-1.03 and place it in /usr/lib/mon/alert.d (or appropriate path of your mon installation).

Then grab twitter.alert and put it there too.

Run twitter.pl and give your twitter credentials (stored in ~/.twitterrc the first time it runs). It’s probably a good idea to create an extra twitter account for this.

Now use twitter.alert in your mon config to send alerts in twitter, where people can follow them!

watch system01
    service disk_root
        interval 5m
        monitor munin.monitor -M df -F _dev_cciss_c0d0p1 -w 90 -c 95 -H
        depend SELF:ping
        period _ANYTIME_
            alertevery 15m summary
            comp_alerts
            alertafter 3
            alert twitter.alert
            upalert twitter.alert

Απριλίου 27, 2009

Teleworking

Κατηγορίες: Uncategorized — Tags: — Sotiris Tsimbonis @ 10:43 πμ

Quoting from “The Pond”  by Rands

Working remotely isn’t a privilege; it’s work. And it’s the same work we’re all doing back at the mothership… fully clothed… in the Pond.

…and if you are a teleworker or manage teleworkers, you should read the comments too!

Απριλίου 22, 2009

Integrating Munin with Mon

Κατηγορίες: System Administration — Tags:, — Sotiris Tsimbonis @ 1:18 πμ

Munin already integrates with Nagios .. But I didn’t find anything for mon ..

So I hacked check_munin.pl from Nagios Exchange to work with mon ..

Download munin.monitor and place it in mon.d/ of your mon installation.

Now you can monitor ANY munin value using mon.

Use something like the following in your systems_monitor.m4

watch system01
    service disk_root
        interval 5m
        monitor munin.monitor -M df -F _dev_cciss_c0d0p1 -w 90 -c 95 -H
        depend SELF:ping
        period _ANYTIME_
            alertevery 15m summary
            comp_alerts
            alertafter 3
            alert mail.alert _MY_EMAIL_
            upalert mail.alert _MY_EMAIL_
    service toomanyqueuedmails
        interval 5m
        monitor munin.monitor -M sendmail_mailqueue -F mails -w 50 -c 100 -H
        depend SELF:ping
        period _ANYTIME_
            alertevery 15m summary
            comp_alerts
            alertafter 3
            alert mail.alert _MY_EMAIL_
            upalert mail.alert _MY_EMAIL_
    service dnsresponse
        interval 5m
        monitor munin.monitor -M dnsresponse_193.92.110.1 -F avg -w 20 -c 50 -H
        depend SELF:ping
        period _ANYTIME_
            alertevery 15m summary
            comp_alerts
            alertafter 3
            alert mail.alert _MY_EMAIL_
            upalert mail.alert _MY_EMAIL_

Make sure that your MON server’s IP is allowed in munin-node.conf of your munin client.

Απριλίου 15, 2009

munin plugin to monitor dns response times

Κατηγορίες: DNS, System Administration — Tags:, — Sotiris Tsimbonis @ 12:00 μμ

A munin plugin that allows you to monitor the response time of any DNS that allows you to recurse.

dnsresponse_ — it’s a poor man’s smokeping DNS probe :)
(wordpress.com does not allow arbitrary file uploads, so grab it from munin-exhange)

To install it, place it in /usr/share/munin/plugins/ and run “munin-node-configure –shell“.

By default it graphs the Average, Median and StdDev of 20 DNS queries.

sample dnsresponse_ graph

sample dnsresponse_ graph

Παλιότερα άρθρα »

Blog στο WordPress.com.