SCOM2Nagios 1.4

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 (1555 downloads )

This entry was posted in English, Operations Manager, SCOM2Nagios, System Center and tagged , , , , . Bookmark the permalink.

22 Responses to SCOM2Nagios 1.4

  1. Markus says:

    Hi, ich habe ein Problem mit dem Connector und vielleicht hast du ja eine Idee. Ich vermute es ist etwas recht simples aber mir fehlt etwas die Erfahrung mit Connectors im SCOM.

    Generell scheint alles zu funktionieren, aber die Alerts werden nicht an Nagios weitergegeben. Die Verbindung auf den nsca daemon funktioniert (in der shell eine Testnachricht geschicht mit send_nsca, kam problemlos an). Im Eventlog sehe ich nur das er die Alerts zwar bekommen hat wenn ich sie an den connector schicke, aber es bleibt alles auf resend.

    Nagios-SCOMConnector is still alive. Overall alerts received: 2, Resend queue: 2

    Offenbar schickt der Dienst die Msg’s nicht ab, gibt aber keinen Fehler im Eventlog zurück.

    Wäre für jede Idee dankbar.

    Markus

    • markus says:

      HI,

      interessant wären die Logs, d.h. umstellen auf den höchsten Loglevel in der config und dann unter appdata\kit… das Log anschauen. Da steht exakt die Kommandozeile drin, mit der er send_ncsa aufruft.
      Das resend ist ok und heißt nicht, dass Alarme nicht verschickt werden. Solange ein Alarm nicht geschlossen wird (und dies auch an den Connector weitergeleitet wird), werden die Alarme periodisch an Nagios erneut verschickt, um sicherzustellen, dass dort der Status erhalten bleibt.

      Grüße

      Markus

  2. Markus says:

    Hi,

    danke für die schnelle Antwort. Leider war auch in den Log Files nichts zu finden. Nach dem 3. mal “alles neu” funktioniert es jetzt und Nagios freut sich über die Meldungen. Ich vermute das Service hat sich nicht sauber registriert. Seltsamerweise hatte ich nirgends Fehlermeldungen.

    Danke nochmal für die Hilfe und den schönen Connector.

    lg,
    Markus

  3. students_IUT says:

    Hi,

    Thank you for the connector that you put at our disposal. I use the connector on a Windows Server 2003 (SCOM) to a Solaris 10 (Nagios).
    Unfortunately the errors are not transmitted to Nagios, nothing appears despite my configuration files as you indicated.
    However when I use send_nsca.exe with the command prompt to send a message to Nagios, it works very well.
    Have you an idea of the problem?

    Regards
    students_IUT

  4. students_IUT says:

    Hi,

    I have found the solution :

    processing.xml wasn’t in the good directory.

    Thanks

  5. students_IUT says:

    Hi,

    Does your connector is bidirectional?

    If it’s yes, how do I pay an alert from Nagios and should also be paid in SCOM?

    Regards

  6. students_IUT says:

    Hi,

    Thanks for your fast answer. I will try OpenUMR Connector!!!

  7. Reinhard Weh says:

    Hallo Markus
    ich suche immer noch die Möglichkeit die KIT Event an 2 Nagios Server zu senden
    kannst du mir einen Konfig posten oder zumailen.
    Wäre klasse.
    Viele Grüße
    Reinhard Weh

  8. Miquel Àngel says:

    First of all thanks for share this connector. it’s possible the connector output always use netbios name and lowercase? i’m trying to do but always get a FQDN in uppercase. thanks a lot!!

  9. John says:

    Thanks for providing this connector! I think this is exactly what I have been looking for. I was going to use the universal connector provided by Microsoft and write a Nagios plugin, but this is a much more elegant solution. I don’t want to install the Microsoft connector daemons on the Nagios server. I’ll post again to let you know how it goes.

  10. John says:

    I set up NSCA on a Centos machine and installed the connector on the SCOM server. The connector log reported that the message was successfully sent, but viewing /var/log/messages on the Linux machine with NSCA running in debug mode did not show a connection.

    I ran send_nsca from the command line with the exact same flags and message as indicated in the log, and discovered the source of the problem. The connector is trying to read the send_nsca configuration file as “send_nsca.config” but the file provided with the application is named “send_nsca.cfg”. I renamed the file and the connector is successfully sending alerts to the nsca server now. Now I just have to configure Nagios…

    Also, is the source code for the connector available?

  11. John says:

    @John

    I can see that the source is included. Sorry for asking about that.

  12. Jonas says:

    Hello

    We succussfully installed the nagiostoscom connector in windows server 2003.
    The log file is showing the following
    ***********************************************************************
    5-4-2011 16:38:09: Send to Nagios C:\scom2nagios\send_nsca.exe commandline: -H 10.1.2.234 -d ; -c “C:\scom2nagios\send_nsca.cfg” -p 5667, Message: vrt-server-test.scom.be;p_scom;2;OleDB: Results Error

    5-4-2011 16:38:10: Event send to nagios
    ***********************************************************************

    In wireshark in ubuntu we can see that nsca packets were sent but how can see the messages in Nagios? How do you have to configure Nagios to receive these messages? Do I have to install nsca or something?

    Thanks for help

    Jonas

  13. Sandra says:

    Hi Markus,

    I’ve been looking at this tool for a long time now and never needed to use it. Until recently, but there are some “small” bugs. It took me over a week to figure them all out.

    1. in the manual there is no mentioning to move the processing.xml and where to find the log file (in my case ProgramData\kit)
    2. the send_nsca.config file has the wrong extention in the zip file

  14. Sandra says:

    Hi Markus,

    Got some questions and a small problem. The connector service won’t start automaticly when a reboot is done.

    And I really would like to send notification subscriptions (because I only want to send specific monitors and rules) to the internal connector. Is that a possibility?

    With kind regards, Sandra

  15. markus says:

    @Sandra
    1. The connector needs the SCOM services for a start. But there is no dependency between them. You can add this on a command line with sc config NagiosServiceName depend= scomserviceName

    2. Currently I cannot understand your second question. Can you be more detailed or send me your config by e-mail (see Impressium)

    with best regards

    Markus

  16. Jan says:

    Hi Markus,

    zunächst einmal ein großes Danke für diesen Connector, er hat mir jede Menge Arbeit erspart

    Allerdings habe ich momentan ein Problem mit der processing.xml – um genauer zu sein mit dem Vergleichsoperand “equal”, den ich gern nutzen würde um die Resolutionstates zu verarbeiten.
    -> Leider passiert an dieser Stelle nichts, die Regeln sind nach diesem Muster erstellt:

    0
    New Alert

    Dennoch wird die Regeln einfach übergangen… verwende ich statt “equals” den Operand “contains”, wird die Regel angewandt.
    Ich vermute das Problem beim “equals”, denn wenn ich mir den “$state” ausgeben lasse, sehe ich, dass dort wie erwartet die “0” rauskommt.

    Gibt es hier einen Bedienfehler auf meiner Seite, oder handelt es sich hier um einen Bug?

    • markus says:

      Hi Jan,

      es ist ein Bug im Connector. Im Quellcode steht in der Klasse Processor folgendes:

      case “contains”: return value.Contains(compare);
      case “containsIgnoreCase”: return value.ToLower().Contains(compare.ToLower());
      case “equals”: return value.Equals(input.Value);
      case “equalsIgnoreCase”: return value.ToLower().Equals(input.Value.ToLower());

      Es muss aber bei Equals auch die Variable Compare anstatt input.Value stehen, da sonst das falsche XML Element genommen wird. Ich schau mal, ob ich im Laufe der Woche eine korrigierte Version hochladen kann… Wenn es dringender ist, einfach den Quellcode selbst korrigieren und im Visual Studio kompilieren (Quellcode ist ja immer im ZIP File enthalten).

      Grüße

      Markus

  17. Branden says:

    Hi Markus,

    I got this working, so thank you!

    If you ever release a new version, can you include the option for a third nagios host?

    Thank you

Leave a Reply to markus Cancel reply