misc

nnscfgmaker.sh: a nagios/nsclient++ cfg maker

Posted by Michael Hendrickx on January 28, 2010
code, misc, sysadmin / No Comments

Dear all,

We are in the process of changing the monitoring system on part of our network from Zenoss to Nagios. This is not a Zenoss vs. Nagios debate, as both products are awesome and do the things they are designed for very well. We (Christian and myself) use a combination of Cacti for bandwith monitoring and Zenoss for server and device monitoring. Now, recently we decided to change the latter to Nagios. It is know for its “great deal of flexibility when integrating Nagios into their environment” (Galstad, 2005)

As Zenoss was configured using SNMP Informant to grab information about the MS Windows servers (available disk space, CPU load, etc) and Nagios uses NSClient++; one of the time consuming tasks was getting the client on the server (thank you domain :) ) and configuring each and every server on the Nagios server. I guess there should be some sort of discovery tool for Nagios, but I couldn’t directly find one.

In order to tackle the copy-pasting for a few dozen config files, and to brush up my bash scripting again, I wrote the Nagios Nsclient++ cfg maker, yeah, what’s in a name eh. This client enumerates the target server about what is installed and makes a CFG file based on that. Oh yeah, we’re using nagios with its text files, not the SQL version.

You can download it here (bash script). As it’s GPL’d, feel free to change and redistribute it. As we mainly house HP servers, APC UPS’s and most of them run Windows (for now, evil laugh), so it’s a bit windows/hp minded.

The syntax is very easy, just run the script with the hostname of the server that you want to “enumerate”. Doing that, you’ll have something similar as the output below:

mike@mon:/usr/local/nagios/etc/servers$ ./nnscfgmaker.sh server2
Nagios NSclient++ (check_nt) CFG maker

 + logfile: server2.cfg
 + pinging the server.. ok
 + checking of nsclient++ is installed
 + adding hdd c:\
 + adding hdd e:\
 + adding hdd f:\
 + adding hdd g:\
 + adding hdd h:\
 + adding hdd i:\
 + adding process: MS SQL Server (sqlservr.exe)
 + adding service: Automatic Updates (wuauserv)
 + adding service: DNS Client (DNSCache)
 + adding service: Event Log (Eventlog)
 + adding service: Messenger (Messenger)
 + adding service: Server Service (lanmanserver)
 + adding service: Windows Time (w32time)
 + adding service: SNMP service (SNMP)
 + adding service: HP OpenView Ctrl Service (ovctrl)
 + adding service: Backup Exec Server (BackupExecRPCService)
 + adding service: HP Insight Server Agent (CqMgServ)
 + adding service: HP Insight NIC Agent (CpqNicMgmt)
 + adding service: HP Insight Storage Agent (CqMgStor)
 + adding service: TrendMicro OfficeScan NT Listener (tmlisten)
 + adding service: Trendmicro Antivirus RealTime Scan (ntrtscan)
 - done

mike@mon:/usr/local/nagios/etc/servers$

This creates a files called server2.cfg, which Nagios can read and process.

Hope you like it, let me know if you have any questions or comments.

Take care,
Michael

Ethan Galstad (2005), Nagios. [online] Available from: http://archive.fosdem.org/2005/index/interviews/interviews_galstad.html (Accessed: 28 Jan 2010)

Tags: , , ,

Team collaboration, or competing?

Posted by Michael Hendrickx on January 16, 2010
misc / No Comments

When reading about social media strategies today, I stumbled across follow excerpt:

In most big companies, IT, digital, marketing and sales not only don’t work together, they compete with each other. Until they start collaborating as a team, you will not succeed in social media.

If you’d change the last two words from “social media” to “business”, the statement, sadly, remains the same.

My home country’s Coat of Arms states “Eendracht maakt macht” (roughly translates to Unity makes strength). Aside from also being Brooklyn’s motto, it should be on several company’s mindsets.

Tags: , ,

Running lean IT environments

Posted by Michael Hendrickx on December 18, 2009
misc / No Comments

In the current economic slowdown, many face a semi burnout feeling as jobs seem less challenged and less changes seem to be happening in the short term.

Here are a few things that I believe will increase the team spirit in an IT environment.

1. Destroy boundaries
My team (systems and applications) and the network team work closely together. In the office, we physically sit in cubicles next to each other. While thinking about tearing the cubicles down for a while already, last week we did it. This increased the “bond” between the teams.
We now see each other, and have a more lively atmosphere. Small things just get done more quickly, and communication (and occasional jokes, of course) improved dramatically.

If you minimize boundaries and distance between people, they just seem to work better with each other, and your team spirit increases. Break down walls, have informal team-meetings, and invite all for lunch together.

2. Create small project teams, and give ownership
Both the network guys and myself came up with a few internal “projects”, under a cleanup program to increase security, visibility and control. When we both started in Nakheel, we inherited a scattered infrastructure and thus we’ll be consolidating and streamlining this to make our operational tasks easier. This big program will have a gazillion sub-tasks, each with its own project manager, or rather, owner. This makes people feel more in control, and have them being more passionate about it.

Let users “own” a certain project or program, and they’ll pour more time into it. Make “empowerment” a value amongst your people, rather than just a fancy word on your core value booklet.

3. Create (relevant) tasks on what people want to do
Turns out that few of the members of my team love to do development. With this, we will be creating (or call it “hacking together”) several systems to make our jobs easier. One of these will be revamping our monirong infrastructure. We might create modules for our current systems, and publish them to the community, or if this is too hard, create our own humble monitoring system, and publish it open source.

Check what employees want to do, build one’s career is equally or often more important than building the company. See what your team members want to, and align accordingly.

4. Conduct internal trainings
With IT budgets altered, as all company budgets, companies often don’t have the luxury of “sending their guys” on external trainings. We’re conducting internal trainings to each other, for two reasons; first obvious reason would be to learn new things, second is to start conversations between teams to understand what each one is doing, and see if there’s room for improvement. An extra pair of eyes is never bad.

5. Ask your users what they want, and deliver it without too much hassle
A typical IT setup is that many tools are bought, without the clear need for it. I usually give a car related analogy, so it’s like buying an turbocharged SUV when you just need to pickup weekly groceries. When a department grows, many layers are introduced, to maximize control and give everybody something to do. This often turns into time consuming processes whereby many projects fail. We try to ask what our users want, assess feasibility and deliver it. You’d be surprised how happy you could make them, working with an agile mindset, and putting your techies with the business.

Just a few things, how we try to run things at our ends. We don’t succeed all the time, since I come from a start-up environment (and God do I miss it), and we just have enterprise boundaries to deal with. But we’re trying, and slowly we’re getting there.

CSS Background not showing in IE

Posted by Michael Hendrickx on December 08, 2009
misc / No Comments

I searched for a while, and could not find out why places.ae wasn’t showing it’s background in IE, but it was showing it in Firefox (didn’t check other browsers).

Apparently, I had a “mistake” in my CSS files, and IE seem to trap more on this than firefox. I had the following line:


#city{ background:url(http://img.places.ae/p2bg.jpg)repeat-x scroll left top; width:100%; height:208px;}

And the missing space aftedr the url() parameter, prevented IE from showing the background. Just a quick tip in case you run into the same problems.

Tags: , ,

7days bashes on Linux, should stick to normal gossip

Posted by Michael Hendrickx on November 20, 2009
misc / No Comments

7days recently published an article about Valerie Singleton who created a PC for the elderly.

It was a well written, objective article until statements were made which wasn’t researched enough:

The computer runs on Linux – an operating system of such bewildering complexity to anyone outside its inner circle that trained IT experts have been known to weep in frustration at the process of installing a simple programme.

The reason? Linux has so many incarnations that software often has to be manually modified at the time of installation. That means coding. Yep, amateur programming. Scary, huh? Especially if you’re 82 and you’ve never used a computer before.

“Software” to be manually modified during installation is usually done when you set up services, such as dhcpd, sendmail and bind Let’s assume that a 82 year old will not install their own mailserver, or domain. From a Windows point of view, I doubt that many elderly will install a Windows Active Directory at home also. I would recommend Paddy Smith (the article author) not to mix up Interface and internal workings.

It’s like running a car, driving a car (the interface) is relatively easy, especially if it’s an automatic transmission. Start the car, put the transmission in “D” and push the right pedal. A car’s inner workings is a combination of electronics, air/fuel mixes, precise timed ignitions, and a lot more.

You don’t need a wrench to drive a car.
You don’t need to do coding to run an operating system.

I wish that topics highlighted in 7 Days’ articles were well researched before making statements.

In my eyes, Linux interfaces could be very easy for the young, or the elderly. On the EEE PC, Asus could get their Linux interface pretty right, I’m sure the “inner workings” were done by their IT geeks.
asuslinux

Tags: , ,

Ban Ki Moon is now into 419 scams

Posted by Michael Hendrickx on November 20, 2009
misc / No Comments

un2009
It seems that the United Nations is reserving 500.000 USD and I’m one of the 10 lucky ones to receive it. ;)

It’s the all old 419 scams, all over again. Just wrapped into a JPG image, and using trusted names.

Some things will never change,

Your mobile number has been awarded 430,000.00 Pounds

Posted by Michael Hendrickx on November 06, 2009
misc / 4 Comments
------ SMS ------
From: +22996713827
Sent: Nov 5, 2009 9:54 PM
Subject: (NOKIA PROMO)

(NOKIA PROMO)
Your mobile number has been awarded 430,000.00 Pounds.
Your REF Number is ML10002BN. To claim, email: info@nokiapromo.in
and call +447024084530

The only cool thing is that this SMS was sent from a number in Benin, which has a TLD that says “.bj”. yay.

Tags:

Dubai Twestival 2009 #2

Posted by Michael Hendrickx on September 12, 2009
misc / No Comments

twestival
Hi all,
Just got back from the second Dubai Twestival that took place today at 8 PM. Organized by a wonderful team (PK, Woo, esperanca, Stephanie and Baher and Abhamalpani – please let me know who I missed), it was a success.

Thanks all,
Michael

Tags: , , ,

Starting a UAE business now 40.000 USD cheaper

Posted by Michael Hendrickx on August 12, 2009
misc / 2 Comments

bulbGulfnews tells us that those who are willing to start a business (LLC, Limited liability company), do not have to cough op the 150.000 AED (40.000 USD). With the current economic situation, this is not a bad step at all.

More than 80 % of businesses in the UAE are LLC’s, so it’s a good step. Often, entrepreneurs were put off by setting up a business in the UAE, because of it’s rules and monetary requirements.

I hope this will result in a growth of entrepreneurship in the UAE.

Etisalat’s spyware patch – funny video

Posted by Michael Hendrickx on August 02, 2009
misc / No Comments

Catboy, a radio DJ at Dubai 92, released a funny video on Etisalat’s spyware patch for Blackberries. (more here, here and here)

Simply awesome.