I am working on this script for a repetitive task we do at work. We often do a scan for inactive ports in building switches and if they are inactive for a long time, we set them to a dummy vlan that offers no ip connectivity to anyone connecting to it and turning on the…
Category: IT
Python script to search for certain mac address in Legacy Cisco enabled Campus LAN + Some History on my relationship with Network Automation
Introduction Hello all. It’s been some time now that I have started learning about network automation/programming through the Cisco DevNet channel, learning about NetDevOps, CICD and all those magical notions, presented by various incredible people on the Cisco Devnet Team. Automation with Network Devices is not new to me. I have been experimenting for a…
Ansible Playbook for upgrading Ubuntu based Nagios Server to latest version
Use Ansible to upgrade your Nagios Server
Blog maintenance
I was forced to update my blog and delete a few old posts as I am preparing to post some work related (IT) material in twitter pointing here.Most deleted posts concern old work interests and World of Warcraft links.The material to be posted will be about Nagios, Ansible, Python, and Automation in general.
Εγκατάσταση Nagios 4.1.0 σε Ubuntu Server 14.04.3 LTS με plugins, check_nrpe, check_esxi_hardware και nagiosgraph
Σήμερα έπιασα ξανά το θέμα του upgrade σε Nagios 4 και έμαθα ότι στις 18/8 (χθες) βγήκε το Nagios 4.1.0 stable. Ξεκίνησα (μετά από δοκιμή για upgrade) ένα clean install στον ubunagios03 με εγκατάσταση από την αρχή του Ubuntu Server 14.04.3 LTS και nagios core 4.1.0 & nagios plugins v.2.1.1 Πρώτα ενεργοποίησα το χρήστη root…
Copy & Paste with vim
These are the sources: http://stackoverflow.com/questions/4620672/copy-and-paste-content-from-one-file-to-another-file-in-vi http://vim.wikia.com/wiki/Cut/copy_and_paste_using_visual_selection http://www.tech-recipes.com/rx/219/copy-and-paste-text-with-vi-or-vim/ Since you already know how to cut/yank text, here are a few ideas for pasting it back into another file: Edit the first file, yanking the text you want. Then open your second file from within vi (:e /path/to/other/file) and paste it Open both files together in a…
vim search and replace commands
If you want to match something at the end of the line you need to use the $ character at the end of the string pattern. The following are taken from : http://www.linux.com/learn/tutorials/8255-vim-tips-the-basics-of-search-and-replace Let’s start by looking at searches and doing search and replace operations within Vim. You can do a search in normal mode…
Ubuntu Server Network Configuration
Here is a link for Ubuntu Server Network Configuration. The guide is valid for 12.04 version. https://help.ubuntu.com/12.04/serverguide/network-configuration.html Below are some important parts: Static IP Address Assignment To configure your system to use a static IP address assignment, add the static method to the inet address family statement for the appropriate interface in the file /etc/network/interfaces….
amd and hackintosh project
Here are some links I have found about the hackintosh project. I am interested in installing that as dual boot in my pc. http://www.macbreaker.com/2012/01/look-at-state-of-amd-hackintoshing.html and some more: http://lifehacker.com/5672051/how-to-build-a-hackintosh-mac-and-install-os-x-in-eight-easy-steps http://www.hackintosh.com/ http://wiki.osx86project.org/wiki/index.php/Installation_Guides http://suhastech.com/how-to-amd-hackintosh-install-dual-boot-windows-7-and-mac-os-x-snow-leopard-10-6-6-or-10-6-7/ http://blog.nawcom.com/ http://www.macbreaker.com/2012/04/lion-legacy-kernel-finally-released.html http://www.macbreaker.com/2012/02/how-to-install-mac-os-x-snow-leopard-on.html http://tonymacx86.com/downloads.php http://www.macbreaker.com/2012/01/how-to-use-multibeast-comprehensive.html
nagios sms
I am trying to find a way to send sms messages whenever an alert is generated in a nagios monitoring system. The links below contain material that can lead to a solution. Implementation links: http://www.lecentre.net/blog/archives/985 http://www.youtube.com/watch?v=oZIB8OAVBtY http://www.sms-integration.com/p_110-nagios-sms.html http://matt.bottrell.com.au/archives/205-Nagios-2-way-alerting-via-SMS-Part-2.html SMS Gateways links for Greece: http://www.clickatell.com/products/sms_gateway.php?cid=31683 http://www.smsn.gr/index.php?mm=home http://www.smsgateway.gr/ The first one seems promising as it can provide…