I had you deal with notifications
to make sure ONMS was running / working the way you want.
The Notifications area does not connect
to the scriptd stuff.
Heres Tarus' explanation of scriptd.
http://blogs.opennms.org/?p=30
Run this on your ONMS server and see
if you get a trap sent out;
/opt/opennms/bin/send-event -
pl uei.opennms.org/internal/reloadScriptConfig
(thats if you installed OpenNMS
in /opt/ directory).
| From:
|
"Pathiakis, Paul" <Paul.Pathiakis <at> ironmountain.com>
|
| To:
|
"General OpenNMS Discussion"
<opennms-discuss <at> lists.sourceforge.net>
|
| Date:
|
07/01/2009 09:36 AM
|
| Subject:
|
Re: [opennms-discuss] Opennms <->
Netcool parsing error (Complete) : executing
scriptd ? |
John,
I do understand that and I understand
the script. If you or someone on the list could please tell me how
to connect/glue the notifications to run the contents of scriptd.
What files do I modifiy to:
get notifications of events to
be fed to the scriptd-configurationation file and be executed as a trap
and sent to NetCool.
I've already modified the "trap.send"
parameter.
At the present time, I have the
events send the notifications to user "root" locally on the machine.
I get everything. Now, instead of sending it to mail <at> root,
I want it to send it to scriptd, get packaged as an SNMP trap and sent
to NetCool.
From: John Blake [
mailto:jblake <at> us.ibm.com]
Sent: Tuesday, June 30, 2009 3:01 PM
To: General OpenNMS Discussion
Subject: Re: [opennms-discuss] Opennms <-> Netcool parsing error
The notifications look for events and then run the commands (usually mail,syslog,etc).
Someone designed the stuff you're putting in scriptd and it doesnt use
notifications but it does the same thing. Its looking for specific events
and generates a snmp trap.
Looks like it built into the script. See where its looking up the uei's?
You'll also have to adjust the bottom of the script where "trap.send"
is at.
John
| From:
|
"Pathiakis, Paul"
<Paul.Pathiakis <at> ironmountain.com>
|
| To:
|
"General OpenNMS Discussion"
<opennms-discuss <at> lists.sourceforge.net>
|
| Date:
|
06/30/2009 02:07 PM
|
| Subject:
|
Re: [opennms-discuss] Opennms <->
Netcool parsing error |
John,
I'm kind of clueless on the notification side. How should I configure
the notifications to go to NetCool? If, on OpenNMS, I go to the:
/Home/Admin/ConfigureNotifications/EventNotifications page, I see the canned
notifications and events. Whenever I see something like this triggered,
I get an e-mail. Nice. However, how do I tell OpenNMS to call
the scriptd file for those events?
Also, I'm no longer getting any errors on the file. I replaced it
with the that same syntax below.
Thank you, sorry if this is tedious.
Paul
From: John Blake [
mailto:jblake <at> us.ibm.com]
Sent: Tuesday, June 30, 2009 1:37 PM
To: General OpenNMS Discussion
Subject: Re: [opennms-discuss] Opennms <-> Netcool parsing error
Try this line;
descrString = event.descr.replaceAll("<.*>", "
").replaceAll("\\s+", " ");
replacing the one you're getting the error on.
| From:
|
"Pathiakis, Paul"
<Paul.Pathiakis <at> ironmountain.com>
|
| To:
|
"General OpenNMS Discussion"
<opennms-discuss <at> lists.sourceforge.net>
|
| Date:
|
06/30/2009 11:32 AM
|
| Subject:
|
Re: [opennms-discuss] Opennms <->
Netcool parsing error |
Yes, definitely working.
I can netcat to the port from the OpenNMS machine and the machine is configured
to receive traps from OpenNMS on the usual port 162.
P.
From: John Blake [
mailto:jblake <at> us.ibm.com]
Sent: Tuesday, June 30, 2009 10:38 AM
To: General OpenNMS Discussion
Subject: Re: [opennms-discuss] Opennms <-> Netcool parsing error
So you have # 3 and 4 working.
Did you verify # 1 and 2?
Those HAVE to be done before 5 can be attempted.
John
| From:
|
"Pathiakis, Paul"
<Paul.Pathiakis <at> ironmountain.com>
|
| To:
|
"General OpenNMS Discussion"
<opennms-discuss <at> lists.sourceforge.net>
|
| Date:
|
06/30/2009 10:26 AM
|
| Subject:
|
Re: [opennms-discuss] Opennms <->
Netcool parsing error |
John,
That was an excellent piece of troubleshooting. I can now see the
machine is getting e-mails about events that are triggering.
Now, since I'm still a newbie to OpenNMS, how do I tie the notification
to the information that has been put in scriptd-configuration.xml?
AKA step 5 below?
(This may have to be very basic as I'm not even sure I'm creating notifications
the correct way as the documentation on the site is just not up to snuff)
Thank you,
Paul
From: John Blake [
mailto:jblake <at> us.ibm.com]
Sent: Monday, June 29, 2009 2:17 PM
To: General OpenNMS Discussion
Subject: Re: [opennms-discuss] Opennms <-> Netcool parsing error
1. Make sure the Netcool probe is still receiving ANY traps.
- odds are this is working as you would know by now if it wasnt
2. Make sure the ONMS server has access to send SNMP traps to the Netcool
probe.
- are the snmp ports being blocked?
3..Verify ONMS is creating an event for what you're looking for.
4. get ONMS to generate a notification for the events you want.
- could be an e-mail to verify its working.
5. change the notification to send a snmp trap to Netcool.
John
| From:
|
"Pathiakis, Paul"
<Paul.Pathiakis <at> ironmountain.com>
|
| To:
|
"General OpenNMS Discussion"
<opennms-discuss <at> lists.sourceforge.net>
|
| Date:
|
06/29/2009 01:56 PM
|
| Subject:
|
Re: [opennms-discuss] Opennms <->
Netcool parsing error |
Hmmm.... I guess my main question is what do I do if this doesn't work?
(Now that I've debugged the whole freakin' thing) It seems
that I don't see anything going across the line courtesy of tcpdump and
grep for snmptraps. So, does this do what I'm expecting it to do?
That is, integrate ONMS with NetCool so that all ONMS events get
sent via SNMP to a NetCool node as traps to flag?
Thank you for your patience,
Paul
From: John Blake [
mailto:jblake <at> us.ibm.com]
Sent: Tuesday, June 23, 2009 12:59 PM
To: General OpenNMS Discussion
Subject: Re: [opennms-discuss] Opennms <-> Netcool parsing error
If you're using mttrapd;
http://www.opennms.org/index.php/Integrating_OpenNMS_with_IBM/Micromuse_Netcool_OMNIbus_and_Webtop
I use syslog messages from ONMS into Netcool.
| From:
|
"Pathiakis, Paul"
<Paul.Pathiakis <at> ironmountain.com>
|
| To:
|
"General OpenNMS Discussion"
<opennms-discuss <at> lists.sourceforge.net>
|
| Date:
|
06/23/2009 10:43 AM
|
| Subject:
|
Re: [opennms-discuss] Opennms <->
Netcool parsing error |
Sorry, that was a typo. Search on the web site for NetCool and it
will give you the web page which is heavily based on the EMC SMARTS page.
P.
From: John Blake [
mailto:jblake <at> us.ibm.com]
Sent: Tuesday, June 23, 2009 8:06 AM
To: General OpenNMS Discussion
Subject: Re: [opennms-discuss] Opennms <-> Netcool parsing error
You do know that link points to EMC SMARTS and not Netcool right?
| From:
|
"Pathiakis, Paul"
<Paul.Pathiakis <at> ironmountain.com>
|
| To:
|
"General OpenNMS Discussion"
<opennms-discuss <at> lists.sourceforge.net>
|
| Date:
|
06/22/2009 05:14 PM
|
| Subject:
|
[opennms-discuss] Opennms <->
Netcool parsing error |
Hi,
I was following the integration steps of getting OpenNMS to send trapd
events to a NetCool server.
After get the scriptd-configuration.xml into place, I ran xmllint on it.
I got the following:
Scriptd-configuration.xm:85: parser error : StartTag: invalid element
name
descrString = event.descr.replaceAll("<.*>",
"
").replaceAll("\\s+", " ");
This is directly from the documentation on the web site (and I can't
find anything else on the archives)
http://www.opennms.org/index.php/Integrating_OpenNMS_and_EMC/SMARTS_InCh
arge
So, help please!
Paul Pathiakis
The information contained in this email message and its attachments
is intended
only for the private and confidential use of the recipient(s) named
above, unless the sender expressly agrees otherwise. Transmission
of email over the Internet
is not a secure communications medium. If you are requesting or
have requested
the transmittal of personal data, as defined in applicable privacy
laws by means
of email or in an attachment to email you must select a more
secure alternate means of transmittal that supports your
obligations to protect such personal data. If the reader of this
message is not the intended recipient and/or you have received this
email in error, you must take no action based on the information in
this email and you are hereby notified that any dissemination,
misuse, copying, or disclosure of this communication is strictly
prohibited. If you have received
this communication in error, please notify us immediately by email
and delete the original message.
------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference:
$250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
To *unsubscribe* or change your subscription options, see the bottom of
this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference:
$250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
To *unsubscribe* or change your subscription options, see the bottom of
this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
------------------------------------------------------------------------------
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
To *unsubscribe* or change your subscription options, see the bottom of
this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
The information contained in this email message and
its attachments is intended only for the private and confidential use of
the recipient(s) named above, unless the sender expressly agrees otherwise.
Transmission of email over the Internet is not a secure communications
medium. If you are requesting or have requested the transmittal of personal
data, as defined in applicable privacy laws by means of email or in an
attachment to email you must select a more secure alternate means of transmittal
that supports your obligations to protect such personal data. If the reader
of this message is not the intended recipient and/or you have received
this email in error, you must take no action based on the information in
this email and you are hereby notified that any dissemination, misuse,
copying, or disclosure of this communication is strictly prohibited. If
you have received this communication in error, please notify us immediately
by email and delete the original message. ------------------------------------------------------------------------------
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
To *unsubscribe* or change your subscription options, see the bottom of
this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
------------------------------------------------------------------------------
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
To *unsubscribe* or change your subscription options, see the bottom of
this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
------------------------------------------------------------------------------
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
To *unsubscribe* or change your subscription options, see the bottom of
this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
------------------------------------------------------------------------------
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
To *unsubscribe* or change your subscription options, see the bottom of
this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss