Archive

Archive for the ‘Tools’ Category

Kleine Tools – große Wirkung

May 1st, 2011 No comments

lock_openGerade im AD-Umfeld finde ich die Tools von Joe Richards (http://joeware.net) immer wieder großartig. Mit ihnen lassen sich durch geschickte Verkettungen sehr schnell Aufgaben lösen. Dabei ist der Ansatz ähnlich wie bei Unix, d.h. ein Tool hat ein Aufgabenspektrum (z.B. finden, ändern, löschen, …) – die Tools wiederum können über die Std-out Ausgabe gekoppelt werden. Wer also nicht immer gleich die Power Shell starten will, sollte sich diese Programm verlinken.

Ein Beispiel, um die Anzahl der Mitglieder einer Gruppe zu zählen:

adfind -f "samaccountname=GRUPPENNAME" member -list | adfind -c

AdFind V01.41.00cpp Joe Richards (joe@joeware.net) February 2010

Using server: dc01:389

Directory: Windows Server 2008

201 Objects returned

In Worten: Suche ein Objekt mit dem NT4-Namen GRUPPENNAME und gibt das Attribut member als Liste aus. Die Rückgabe wird erneut an adfind gegeben, das die Anzahl zählt.

Ninite–Tool zur Installation von Standardsoftware

March 20th, 2011 No comments

icon-20Es gibt mittlerweile mehrere verschiedene Anbieter dieser Softwareart: Ein Programm, dass automatisiert bestimmte Standardsoftware wie Firefox, Thunderbird, VLC, Skype usw. installiert.

Ninite.com ist eines davon. Auf der Webseite werden die gewünschten Programme ausgesucht und der Download des Tools gestartet. Dieses installiert dann automatisch die ausgewählten Softwarepakete mit angepassten Einstellungen. Die Installationen laufen jeweils silent ab. Browsertoolbars und ähnliche unnütze Ergänzungen werden jeweils abgewählt.

Das Programm erkennt, wenn die Software bereits installiert ist und aktualisiert diese bzw. überspringt es, wenn die neueste Version vorhanden ist.

Insgesamt eine gute Hilfe, um nach einer Neuinstallation des Betriebssystem schnell seine Standardsoftware zu installieren bzw. zu kontrollieren, ob die neueste Version installiert ist.

Link: http://ninite.com

Massenhafte Anpassung von DHCP Optionen

June 1st, 2010 No comments

source Möchte man auf die schnelle bei einem Windows 2008 DHCP Server in jedem Scope DHCP Options anpassen, so lässt sich dies mit ein paar Zeilen Batchcode erledigen:

 

for /f "usebackq skip=4" %%a in (`netsh dhcp server \\DHCPSERVER show scope`) do (

netsh dhcp server \\DHCPSERVER scope %%a set optionvalue 006 IPADDRESS ip.des.dns.servers ip.des.zweiten.dns

netsh dhcp server \\DHCPSERVER scope %%a set optionvalue 015 STRING dns.name

)

SCOM2Nagios 1.4

April 12th, 2010 22 comments

Find the newest version on top of: http://www.mbaeker.de/tag/scom2nagios/

Released a new Version of the SCOM2Nagios Connector. Changes:

1.4

* NEW: variables for processing instruction
* NEW: change case of output (upper/lower)
* BUG: no crash if scom connection is lost
* BUG: no longer needs fullpath in config

Example:

<instruction>
<input field=”path” compare=”containsIgnoreCase”>mcscom</input>
<output field=”host” case=”upper”>$path</output>
</instruction>

If path contains mcscom than replace the host in the output with the upper case of the ObjectFullPath variable of the input alert.

Possible replacement variables:

path, netbios, fullname, severity, state, name, description, alertid

Download: SCOM2Nagios (642)

SCOM2Nagios 1.3

December 6th, 2009 No comments

Find the newest version on top of: http://www.mbaeker.de/tag/scom2nagios/

I have uploaded a release of the Nagios Connector 1.3. You can read about the changes in this post:

http://www.mbaeker.de/2009/10/preinfo-nagios2scom-1-3/
I have only made some short and fast tests. So be cautious.

Download: SCOM2Nagios (141)

PreInfo: SCOM2Nagios 1.3

October 12th, 2009 17 comments

The new version is released here: http://www.mbaeker.de/category/tools/scom2nagios/

The next release will address two feature requests:

  1. Possibility to change the hostname (you don’t use fqdn host names in nagios…)
  2. Possibility to use more than one service in nagios (you want to separate the alerts for dns and acitve directory)

I will try to solve both by using “processing instructions”. This instructions will use the scom alert as an input filter and the nagios alert as the object to manipulate.

This instructions are defined in a xml file:

<?xml version=’1.0′ encoding=’ISO-8859-1′?>
<instructions>

<!–
field:
scom: path (of monitoringobject), fullname (of monitoringobject), severity, state, name (of alert), description
nagios: text, host, service, state

compare:
contains, containsIgnoreCase, equals, equalIgnoreCase

–>

<instruction>

<input field=”path” compare=”contains”>DNS</input>
<output field=”service”>DNS</output>
</instruction>

<instruction>
<input field=”state” compare=”equals”>255</input>
<output field=”text”>Everything is OK :-) </output>
</instruction>

</instructions>

What do you think about this feature?

The main code is ready. It even compiles without problems… Next step is testing – but currently I have no operations manager test system with a connected nagios…

FB_Addon_TelNo{ height:15px !important; white-space: nowrap !important; background-color: #0ff0ff;}

FB_Addon_TelNo{ height:15px !important; white-space: nowrap !important; background-color: #0ff0ff;}

SCOM2Nagios 1.2

July 30th, 2009 27 comments

Find the newest version on top of: http://www.mbaeker.de/tag/scom2nagios/

Attached is the new version of the SCOM2Nagios Connector.

There is just one small thing changed:

You can now define the OK message in config file. So no more german status messages in your nagios :-)

And thanks to Thomas Karatzoglou we now have an english installation instruction in the file.

Download Link: SCOM2Nagios (252)

FB_Addon_TelNo{ height:15px !important; white-space: nowrap !important; background-color: #0ff0ff;}

SCOM2Nagios Version 1.1

July 13th, 2009 2 comments

Find the newest version on top of: http://www.mbaeker.de/category/tools/scom2nagios/

Anbei die Version 1.1 des Nagios Connectors. Er beinhaltet nur geringe Änderungen:

  • Ausgabe der Versionsnummer in der Logdatei
  • Detailliertere Logausgaben
  • Fehler beim zweiten Nagios Server: er wurde in jedem Fall aufgerufen

Download: SCOM2Nagios_1.1

Connector SCOM -> Nagios

November 30th, 2008 11 comments

Find the newest version on top of: http://www.mbaeker.de/category/tools/scom2nagios/

In meinem Umfeld ist Nagios als oberster Überwachungspunkt definiert worden. Daher hat sich bereits eine on mir betreute Diplomarbeit u.a. mit der Anbindung von SCOM an Nagios beschäftigt. Daraus hat sich ergeben, dass sich SCOM am Besten mittels send_ncsa anbinden lässt, da dieses Tool (das auch für Windows existiert) die Übertragung verschlüsseln kann und nicht auf Email (Verzögerung und was ist wenn man damit die Emailumgebung überwachen will?) bzw. snmp (wird von einigen als unsicher angesehen…) setzt.

Innerhalb der Diplomarbeit wurde ein vbs Skript entwickelt, dass regelmäßig ausgeführt die Alerts ausliest und per send_ncsa weiterleitet. Auf Seiten des Nagios existiert pro weitergeleiteten Host ein dummy Host (nicht aktiv überwacht) und ein Service SCOM.

Im Rahmen der Produktivsetzung, die ich letzte Woche bekommen habe, habe ich mich entschieden, dass es sinnvoller ist dieses Script als Connector für SCOM umzusetzen. Bis jetzt läuft es recht gut..