PreInfo: SCOM2Nagios 1.3

October 12th, 2009 Leave a comment Go to 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;}

  1. Sean
    November 10th, 2009 at 12:55 | #1

    Hi Markus,

    Can you send me the SCOM2Nagios 1.3 version so I can test?

    Regards
    Sean

    • markus
      December 6th, 2009 at 15:56 | #2

      Hi Sean,

      Sorry for answering so late. There is a new download available.

      Thanks for your feedback

      Markus

  2. DAvide Villani
    November 20th, 2009 at 12:03 | #3

    Good morning Markus,

    I’m very interested in SCOM2Nagios 1.3 as soon as it will include the possibility to use more than one service in nagios.

    Can you send me the SCOM2Nagios 1.3 version so eventually I can help you test out the new features?

    Please, let me know and enjoy the rest of the day.

    DAvide

    • markus
      December 6th, 2009 at 15:56 | #4

      Hi DAvide!

      I have uploaded a version of 1.3. Be free to test and report any problem!

      Thanks for your feedback

      Markus

  3. Sean
    January 14th, 2010 at 13:29 | #5

    Hi Markus,

    Can you provide an example for the instruction.xml to just display the hostname and not FQDN. For instance server1.test.local to be just server1.

    Also I have 1 SCOM host that is sent as “Microsoft.Windows.Computer:server1.test.local” to Nagios. How can that be filtered to just server1.

    Thanks
    Sean

  4. Artur Pinheiro
    February 4th, 2010 at 19:50 | #6

    Hi,

    this seems the rigth solution for me, but I have some issues.

    I need to change the host name send by SCOM to the one used by Nagios.

    I try create a processing.xml, using the instructions but it seems that it’s not working. (Does version 1.3 processes the instructions? it’s not clear if it’s version 1.3 or the next version)

    In the tracelog.txt the path is empty “04-02-2010 17:30:08: Alert Received: Path: , Name: …”. In the SCOM console the path exists.

    Tanks

    Artur

  5. Martin
    February 12th, 2010 at 14:30 | #7

    Hi,
    I’n trying to make it work on windows 2008 r2 64 bits and the service just won’t start. Anyone got this configuration working?
    Ty

    • markus
      February 15th, 2010 at 20:26 | #8

      Hi Martin,
      please be a little bit patience. Yesterday I ordered my new testing environment. I hope that it is up in a week and that I can install a full SCOM server for answering all upcoming questions around this tool :-)

  6. Miquel Àngel
    March 10th, 2010 at 16:42 | #9

    Hello, i tested the last version in 2007 R2 winth 2008 64 bits and it’s working fine, i just need to know how work processing.XML to use the hostname only.exist a way to force the hostname to lowcase?

    Thanks Markus for your wonderful job

    • markus
      April 12th, 2010 at 21:47 | #10

      Hi. It is possible with the new version. Just look at the post. The processing instruction example is exact your searched feature. (using only the hostname (=netbios name) and change it to lower case (change upper to lower).

      I hope it helps

      Markus

  7. Reinhard Weh
    March 25th, 2010 at 22:04 | #11

    Hello Markus,
    we now starting with distributed monitoring and need di differ SCOM hosts in dmz and lan or other company site.
    please tell me how we can use the 1.3 and the feature

    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.

    —–

    our fqdn are

    dmz.local
    lan.local
    country.local
    ….

    best regards for your help an tip
    reinhard

  8. markus
    April 12th, 2010 at 22:04 | #12

    @Reinhard Weh
    Hi, I am not sure what you want to do. If you want to change the host name to a shorter netbios hostname you can do it with the new version.

    Markus

  9. Reinhard Weh
    May 21st, 2010 at 15:40 | #13

    Hello Markus

    we have two nagios server

    nagios.dmz.local

    nagios.lan.local

    the scom server checks all hosts. your KIT should send scom messages from *.dmz.local to nagios.dmz.local and should send scom messages from *.lan.local to nagios.lan.local

    hwo should ic configuge processing.xml and Nagios-SCOMConnector.exe.config

    many thanks for help and this tool
    regards
    Reinhard

    • markus
      May 25th, 2010 at 20:24 | #14

      The easiest and fasted way would be to add both nagios server to the config. Every message will be send to both server. But nagios only accepts messages for hosts that it knows. All other messages are thrown away.

  10. Reinhard Weh
    May 26th, 2010 at 00:18 | #15

    hello markus

    we monitor the nagios.log file of the message

    Warning: Passive check result was received for service p_scom on host newserver.dmz.local , but the host could not be found!

    to don’t dismiss an new server monitored by scom.

    is there now way that all p_scom server from *.dns.local will be sent to nagios.dmz.local
    and alle p_scom server from *.lan.local will be sent to nagios.lan.local
    with your first post (see top)

    DNS
    DNS

    255
    Everything is OK :-)

    kind regards
    Reinhard

  11. Reinhard Weh
    June 10th, 2010 at 11:40 | #16

    Hello marcus
    how we have to change the configuration Nagios-SCOMConnector.exe.config to send everything to both servers.
    we haven’t found it in the documentation.

    this don’t work

    nagios.cds.testo

    5667

    testomonitorlx01.dmz.testo

    5667

    any tipps for us
    best regards
    reinhard

  12. Reinhard Weh
    June 10th, 2010 at 11:42 | #17

    Reinhard Weh :
    Hello marcus
    how we have to change the configuration Nagios-SCOMConnector.exe.config to send everything to both servers.
    we haven’t found it in the documentation.
    this don’t work
    “”
    “monitor0002.server.lan”
    “”
    “”
    “5667″
    “”
    “”
    “monitor0001.server.dmz”
    “”
    “”
    “5667″
    “”any tipps for us
    best regards
    reinhard

  1. October 14th, 2009 at 19:12 | #1
  2. December 7th, 2009 at 20:32 | #2