Graeme Gillies | 1 Jul 2009 02:09
Picon
Favicon

OpenNMS not report aliased IP addresses

Hi,

I have a two node HA cluster using OpenAIS, pacemaker, and Linux IP 
Virtual service. This cluster serves up a few IPs and as part of the 
setup required for IPVS all IP Addresses need to be on both nodes (on 
either loopback interface or an external interface)

I want to add these nodes to opennms, but I don't want any IPs that are 
aliased to show up in OpenNMS at all. Just the primary IPs on each 
interface. Is this possible? Either by modifying OpenNMS or by modifying 
/etc/snmpd.conf to exclude these interfaces.

I know I can use provisioning groups, and was planning on using that for 
the actual virtual IPS (which may be on either node), but I was hoping 
there was someway I could still use capsd and just get OpenNMS to ignore 
all the aliased IP addresses.

Thanks in advance,

Graeme

------------------------------------------------------------------------------
_______________________________________________
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
(Continue reading)

Marek VANCO | 1 Jul 2009 09:27
Picon

Re: Select only some requested OID for each node. How to?

On Tue, 2009-06-30 at 10:14 -0400, Tarus Balog wrote: 
> On Jun 30, 2009, at 4:16 AM, Marek VANCO wrote:
> 
> > In /var/log/opennms/daemon/collectd.log I have this line:
> >
> > SnmpCollector: agent Agent[nodeid = 45 ipaddr= 10.2.44.41] defines no
> > data to collect.  Skipping.
> 
> 
> Can you zip up your collectd and datacollection configuration files  
> and post them?

Thanks you for response Tarus! 

	I'm sorry, but I don't have configurations files not any longer,
because I'm debugging - editing them still...)

Now, I understand this message in collectd.log. They would say:
"there are no data to collect". The snmpd wasn't configured right for a
OID defined in my new collection package in datacollection-config.xml. 
I can collect my data for a new collect package now...

But I can't show my requested OID still. :-(
I selected my requested OID (with index 17) like:

<group name="ucd-diskio" ifType="ignore">
<mibObj oid=".1.3.6.1.4.1.2021.13.15.1.1.2" instance="17"
alias="diskIODevice" type="string" />
...

(Continue reading)

Michael Seibold | 1 Jul 2009 10:34
Picon

Re: Antw: user rtc has logged in

I didn't try this, but there might be a possibility:

clone the login event, try to catch the rtc string with a regular
expression, and put this event definition in front of the other login
event.

The description how to use the varbinds etc. is also on
http://www.opennms.org/index.php/Event_Configuration_How-To 

If you succeed can you send the event to the list? I would add it to
the douk or would even open an enhancement bug to include it in future
releases, so you don't have to patch the events on every new release.

-Michael

>>> Philippe Guillebert <philippe.guillebert <at> bull.net> 30.06.2009 18:27
>>>
Michael Seibold wrote:
> Do not display them ;-))
> logonly 

I meant, can I display 
uei.opennms.org/internal/authentication/successfulLogin events/alarms 
UNLESS it's from user rtc ?

--

-- 
Philippe Guillebert

Bull, Architect of an Open World
Tél : +33 (0)1 30 80 61 81
(Continue reading)

Pathiakis, Paul | 1 Jul 2009 15:29
Favicon

Re: 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("&lt;.*&gt;", " ").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
John Blake | 1 Jul 2009 16:08
Picon
Favicon

Re: Modify Automations for Outages and Alarms?


"1) Don't delete any services or nodes in an outage until the event clears
(i.e. is restored) or until deleted manually."

 - ONMS will automatically remove a "bad" alarm when a "good" one that matches comes in.
  - by default, it will remove a service from a interface/ip when the service is down for a configured length of time. I didnt want it removing a service so I "de-configured" it from the poller-configuration.xml.

  http://sourceforge.net/docman/display_doc.php?docid=22826&group_id=4141

(specifically the downtime models)




From: mpearson <mpearson <at> carolina.rr.com>
To: opennms-discuss <at> lists.sourceforge.net
Date: 07/01/2009 09:17 AM
Subject: [opennms-discuss]  Modify Automations for Outages and Alarms?





Is there a way to modify automations for outages and alarms?

I have a new installation of OpenNMS that was built to monitor one
particular type of device.  I'm interested in whether the device is up or
down and in capturing a specific set of traps that the device sends out.
All of that seems to be working properly.

However, I would like OpenNMS to behave this way if possible:

1) Don't delete any services or nodes in an outage until the event clears
(i.e. is restored) or until deleted manually.

2) Keep node down and trap events as active alarms until the event clears or
until acknowledged manually.

I've built a dashboard for the Help Desk and I want them to be able to
determine exactly what is down/alarmed at any given time from that view.  Is
this possible?

Thanks,

Mark
--
View this message in context: http://n2.nabble.com/Modify-Automations-for-Outages-and-Alarms--tp3188881p3188881.html
Sent from the OpenNMS - discuss mailing list archive at Nabble.com.


------------------------------------------------------------------------------
_______________________________________________
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
John Blake | 1 Jul 2009 16:17
Picon
Favicon

Re: Opennms <-> Netcool parsing error (Complete) : executing scriptd ?


 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("&lt;.*&gt;", " ").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

------------------------------------------------------------------------------
_______________________________________________
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
Michael Seibold | 1 Jul 2009 16:19
Picon

Antw: Re: Opennms <-> Netcool parsing error (Complete): executing scriptd ?

Hi Paul,

I didn't follow all your conversation, but have you seen the example in
http://www.opennms.org/index.php/Integrate_HP_OpenView ?

There is a good example for using scriptd, but as far is I know it will only work on events, not on alarms or notifications.

possible:
events -> scriptd
events -> alarms
events -> notifications

not possible:
alarms -> scriptd
notifications -> scriptd

just like John wrote befor.

-Michael

>>> "Pathiakis, Paul" <Paul.Pathiakis <at> ironmountain.com> 01.07.2009 15:29 >>>
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 <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("&lt;.*&gt;", "
").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 <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 <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 <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
<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 <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 
<http://www.opennms.org/index.php/Integrating_OpenNMS_and_EMC/SMARTS_InC 
h> 
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://opensourcebrid 
ge.org
<http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebri 
dge.org> 
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/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 
<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://opensourcebrid 
ge.org
<http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebri 
dge.org> _______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/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 
<https://lists.sourceforge.net/lists/listinfo/opennms-discuss>  
------------------------------------------------------------------------
------
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/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 
<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 
<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 
<https://lists.sourceforge.net/lists/listinfo/opennms-discuss>
------------------------------------------------------------------------
------
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/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 
<https://lists.sourceforge.net/lists/listinfo/opennms-discuss>
------------------------------------------------------------------------
------
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/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 
<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

Michael Seibold | 1 Jul 2009 16:02
Picon

Antw: Modify Automations for Outages and Alarms?

>>> mpearson <mpearson <at> carolina.rr.com> 01.07.2009 15:10 >>>

...

However, I would like OpenNMS to behave this way if possible:

1) Don't delete any services or nodes in an outage until the event clears
(i.e. is restored) or until deleted manually.

So you have to remove automatic deletion at all as this is done for services/nodes which have an outage for
too long. Change the downtime model in  poller-configuration.xml

        <downtime begin="0" end="300000" interval="30000"/>
...
        <downtime begin="43200000" end="432000000" interval="600000"/>
        <downtime begin="432000000" delete="true"/>

to something like

        <downtime begin="0" end="300000" interval="30000"/>
...
        <downtime begin="43200000" interval="600000"/>

2) Keep node down and trap events as active alarms until the event clears or
until acknowledged manually.

This work probably has to be done in vacuumd.xml. I think there is some automation doing what you don't want
to do...

-Michael

------------------------------------------------------------------------------
_______________________________________________
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

Marek VANCO | 1 Jul 2009 16:43
Picon

Re: Select only some requested OID for each node. How to?

so, I'm using this exemple (first exemple with direct indexes) to select
my request OID:
http://www.opennms.org/index.php/Data_Collection_Indices

I have .jrb files in: /var/lib/opennms/rrd/snmp/45/
but there isn't a resource in OpenNMS WebUI
(Home/Reports/Resource Graphs/Choose).

How to debug it?
Thanks for any idea...

marek

On Wed, 2009-07-01 at 09:27 +0200, Marek VANCO wrote:
> On Tue, 2009-06-30 at 10:14 -0400, Tarus Balog wrote: 
> > On Jun 30, 2009, at 4:16 AM, Marek VANCO wrote:
> > 
> > > In /var/log/opennms/daemon/collectd.log I have this line:
> > >
> > > SnmpCollector: agent Agent[nodeid = 45 ipaddr= 10.2.44.41] defines no
> > > data to collect.  Skipping.
> > 
> > 
> > Can you zip up your collectd and datacollection configuration files  
> > and post them?
> 
> Thanks you for response Tarus! 
> 
> 	I'm sorry, but I don't have configurations files not any longer,
> because I'm debugging - editing them still...)
>  
> Now, I understand this message in collectd.log. They would say:
> "there are no data to collect". The snmpd wasn't configured right for a
> OID defined in my new collection package in datacollection-config.xml. 
> I can collect my data for a new collect package now...
> 
> But I can't show my requested OID still. :-(
> I selected my requested OID (with index 17) like:
> 
> <group name="ucd-diskio" ifType="ignore">
> <mibObj oid=".1.3.6.1.4.1.2021.13.15.1.1.2" instance="17"
> alias="diskIODevice" type="string" />
> ...
> 
> but .jrd files are created in:
> /var/lib/opennms/rrd/snmp/45/diskIONRead.jrb (...)
> instead 
> /var/lib/opennms/rrd/snmp/45/diskIOIndex/17/diskIORead.jrb (...)
> when I'm using config with arbitrary indexes (instance="diskIOIndex").
> 
> I think, that OpenNMS don't show graphs, because they expects his .jrb
> files in /var/lib/opennms/rrd/snmp/45/diskIOIndex/17/
> 
> How to tell a OpenNMS where are .jrd files? Or, how to force to create
> directory /var/lib/opennms/rrd/snmp/45/diskIOIndex/17/      ?
> 
> (May be there are a completely other solution for this problem...)
> Thanks you very much for reading and your time...
> 
> marek
> 
> 
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> 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

Pathiakis, Paul | 1 Jul 2009 16:56
Favicon

Re: Opennms <-> Netcool parsing error (solved) - but notifd?

Hi All!
 
 
I guess what my big question is:
 
how do notifications, destination patchs etc get defined and then forced to use scriptd?
 
I feel like I'm missing the "middle" or connective part.  I can send the notifications to a local defined mail account using either the GUI or the XML config editing.  However, I'm at a loss as to how to send the events to scriptd to be processed by the previously covered script and merged/bundled into an SNMP Trap and sent to the NetCool probe.
 
Thanks,
 
Paul

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("&lt;.*&gt;", " ").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

Gmane