How to add an external event with Email

14 messages Options
Embed this post
Permalink
Ashley Wong

How to add an external event with Email

Reply Threaded More More options
Print post
Permalink
I have read the document  Email to Event  ,but it doesn't work on our server
1 the writer mentioned 
they modified send-event.pl this file, but i dont know how to modify, someone could provide more details about this modified file?
 
2 the file aliases is a file? without filename extension?
 
thanks a lot.
 
 
--
Xiaobing Wong

Parallel Processing Institution
@Fudan University


Mobile: (86)13761025272
Email: [hidden email]
MSN: [hidden email]

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
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
Alexander Finger

Re: How to add an external event with Email

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Hi,

I'm not sure the email to event script is the most suitable solution; I think what you want to be done can be accomplished by other means.

But it would be good to understand *what* you want to accomplish. If you can give a bit more insight on your objective we can for sure point out how to get there.

best
Alex

nb: the aliases file is part of your mail server and is used to translate names ("firstname.lastname" to user accounts on your unix system ("fn")). you can use it as well to forward email to a program.

On Nov 3, 2009, at 6:58 AM, Ashley Wong wrote:

I have read the document  Email to Event  ,but it doesn't work on our server
1 the writer mentioned 
they modified send-event.pl this file, but i dont know how to modify, someone could provide more details about this modified file?
 
2 the file aliases is a file? without filename extension?
 
thanks a lot.
 
 
--
Xiaobing Wong

Parallel Processing Institution
@Fudan University


Mobile: (86)13761025272
Email: [hidden email]
MSN: [hidden email]
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference_______________________________________________
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


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
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
Ashley Wong

Re: How to add an external event with Email

Reply Threaded More More options
Print post
Permalink
Thanks for replying.

Actually, my objective is to arouse a event from email, I am not sure if this system can surpport this sort of service?

sincere

Ashley Wong

On Tue, Nov 3, 2009 at 3:59 PM, Alexander Finger <[hidden email]> wrote:
Hi,

I'm not sure the email to event script is the most suitable solution; I think what you want to be done can be accomplished by other means.

But it would be good to understand *what* you want to accomplish. If you can give a bit more insight on your objective we can for sure point out how to get there.

best
Alex

nb: the aliases file is part of your mail server and is used to translate names ("firstname.lastname" to user accounts on your unix system ("fn")). you can use it as well to forward email to a program.

On Nov 3, 2009, at 6:58 AM, Ashley Wong wrote:

I have read the document  Email to Event  ,but it doesn't work on our server
1 the writer mentioned 
they modified send-event.pl this file, but i dont know how to modify, someone could provide more details about this modified file?
 
2 the file aliases is a file? without filename extension?
 
thanks a lot.
 
 
--
Xiaobing Wong

Parallel Processing Institution
@Fudan University


Mobile: (86)13761025272
Email: [hidden email]
MSN: [hidden email]
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference_______________________________________________
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


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
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



--
Xiaobing Wong

Parallel Processing Institution
@Fudan University


Mobile: (86)13761025272
Email: [hidden email]
MSN: [hidden email]

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
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
Les Mikesell

Re: How to add an external event with Email

Reply Threaded More More options
Print post
Permalink
Ashley Wong wrote:
> Thanks for replying.
>
> Actually, my objective is to arouse a event from email, I am not sure if
> this system can surpport this sort of service?
>

OpenNMS isn't going to respond directly to email - you have to configure your
email system to pipe the email to a program during delivery - and that program
can use send-event.pl to generate an event.

--
   Les Mikesell
    [hidden email]


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
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
David Hustace

Re: How to add an external event with Email

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)

On Nov 3, 2009, at 8:32 AM, Les Mikesell wrote:

OpenNMS isn't going to respond directly to email - you have to configure your 
email system to pipe the email to a program during delivery - and that program 
can use send-event.pl to generate an event.

Cool idea.  I would setup a command as a mail alias... of course, this would not work if you were running M$ Exchange... at least not in this manner.

However, it wouldn't be difficult to make this happen in OpenNMS but what would probably be more interesting would be to find an ESB that supports reading email and a write an ESB adapter that converts the email to an OpenNMS Event either with the Java API or through the same TCP XML event proxy that send-event.pl uses.

-D


David Hustace
The OpenNMS Group, Inc.

"Every program attempts to expand until it can read mail. Those programs which cannot so expand are replaced by ones which can."



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
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
Ashley Wong

Re: How to add an external event with Email

Reply Threaded More More options
Print post
Permalink
In reply to this post by Les Mikesell
well, i have installed james and start up this mail server, and which directory do i need to put in aliases and how do this server send event to OpenNMS?

On Tue, Nov 3, 2009 at 9:32 PM, Les Mikesell <[hidden email]> wrote:
Ashley Wong wrote:
> Thanks for replying.
>
> Actually, my objective is to arouse a event from email, I am not sure if
> this system can surpport this sort of service?
>

OpenNMS isn't going to respond directly to email - you have to configure your
email system to pipe the email to a program during delivery - and that program
can use send-event.pl to generate an event.

--
  Les Mikesell
   [hidden email]


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
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



--
Xiaobing Wong

Parallel Processing Institution
@Fudan University


Mobile: (86)13761025272
Email: [hidden email]
MSN: [hidden email]

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
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
Les Mikesell

Re: How to add an external event with Email

Reply Threaded More More options
Print post
Permalink
Ashley Wong wrote:
> well, i have installed james and start up this mail server, and which
> directory do i need to put in aliases and how do this server send event
> to OpenNMS?
>

I don't know anything about james - it looks like you'd have to write some java
code to make it do anything special.   If you use sendmail or another mailer
that does local delivery using procmail you could just create a user to receive
the mail and a .procmailrc file with the command to dispatch - probably a shell
or perl script to parse it and execute send-event.pl with appropriate options.

--
   Les Mikesell
    [hidden email]


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
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
David Hustace

Re: How to add an external event with Email

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)

On Nov 4, 2009, at 2:15 AM, Les Mikesell wrote:

If you use sendmail or another mailer 
that does local delivery using procmail you could just create a user to receive 
the mail and a .procmailrc file with the command to dispatch - probably a shell 
or perl script to parse it and execute send-event.pl with appropriate options.

When I was a young lad, back in the day, (insert appropriate old man saying here), I used to use command mail aliases in the sendmail alias file.  So, an email to: [hidden email] would have an alias:


opennms: "| /opt/opennms/bin/my-send-event.sh"


Something like that where my-send-event.sh would parse the piped email text message properly into send-event.pl

-D
 

David Hustace
The OpenNMS Group, Inc.


"Every program attempts to expand until it can read mail. Those programs which cannot so expand are replaced by ones which can."



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
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
Les Mikesell

Re: How to add an external event with Email

Reply Threaded More More options
Print post
Permalink
David Hustace wrote:

>
> On Nov 4, 2009, at 2:15 AM, Les Mikesell wrote:
>
>> If you use sendmail or another mailer
>> that does local delivery using procmail you could just create a user
>> to receive
>> the mail and a .procmailrc file with the command to dispatch -
>> probably a shell
>> or perl script to parse it and execute send-event.pl with appropriate
>> options.
>
> When I was a young lad, back in the day, (insert appropriate old man
> saying here), I used to use command mail aliases in the sendmail alias
> file.  So, an email to: [hidden email]
> <mailto:[hidden email]> would have an alias:
>
>
> opennms: "| /opt/opennms/bin/my-send-event.sh"
>
>
> Something like that where my-send-event.sh would parse the piped email
> text message properly into send-event.pl

These days, most distributions with sendmail would, by default, strip the path
from your command and try to execute it from /etc/smrsh so you need a symlink
there - and it runs under a somewhat restricted shell.  It would still work, but
  a dummy user with procmail gives you a nicer place to park the associated
scripts and keep log files.

--
   Les Mikesell
    [hidden email]



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
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
Alexander Finger

Re: How to add an external event with Email

Reply Threaded More More options
Print post
Permalink
In reply to this post by Ashley Wong
Ashley, most people here will be ready to help with postfix, sendmail and the like. Not sure anybody ever tried James.
The thing to look for is:

How to forward a mail received into a shell script? The mail received needs to be piped into a script.

I saw some beanshell examples on the James wiki but not "the solution".

best
Alex

On Wed, Nov 4, 2009 at 7:15 AM, Ashley Wong <[hidden email]> wrote:
well, i have installed james and start up this mail server, and which directory do i need to put in aliases and how do this server send event to OpenNMS?


On Tue, Nov 3, 2009 at 9:32 PM, Les Mikesell <[hidden email]> wrote:
Ashley Wong wrote:
> Thanks for replying.
>
> Actually, my objective is to arouse a event from email, I am not sure if
> this system can surpport this sort of service?
>

OpenNMS isn't going to respond directly to email - you have to configure your
email system to pipe the email to a program during delivery - and that program
can use send-event.pl to generate an event.

--
  Les Mikesell
   [hidden email]


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
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



--
Xiaobing Wong

Parallel Processing Institution
@Fudan University


Mobile: (86)13761025272
Email: [hidden email]
MSN: [hidden email]

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
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


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
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
Ashley Wong

Re: How to add an external event with Email

Reply Threaded More More options
Print post
Permalink
ok, i try sendmail today, thanks very much

Ashley

On Thu, Nov 5, 2009 at 2:22 AM, Alexander Finger <[hidden email]> wrote:
Ashley, most people here will be ready to help with postfix, sendmail and the like. Not sure anybody ever tried James.
The thing to look for is:

How to forward a mail received into a shell script? The mail received needs to be piped into a script.

I saw some beanshell examples on the James wiki but not "the solution".

best
Alex

On Wed, Nov 4, 2009 at 7:15 AM, Ashley Wong <[hidden email]> wrote:
well, i have installed james and start up this mail server, and which directory do i need to put in aliases and how do this server send event to OpenNMS?


On Tue, Nov 3, 2009 at 9:32 PM, Les Mikesell <[hidden email]> wrote:
Ashley Wong wrote:
> Thanks for replying.
>
> Actually, my objective is to arouse a event from email, I am not sure if
> this system can surpport this sort of service?
>

OpenNMS isn't going to respond directly to email - you have to configure your
email system to pipe the email to a program during delivery - and that program
can use send-event.pl to generate an event.

--
  Les Mikesell
   [hidden email]


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
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



--
Xiaobing Wong

Parallel Processing Institution
@Fudan University


Mobile: (86)13761025272
Email: [hidden email]
MSN: [hidden email]

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july

_______________________________________________
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


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
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



--
Xiaobing Wong

Parallel Processing Institution
@Fudan University


Mobile: (86)13761025272
Email: [hidden email]
MSN: [hidden email]

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
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
Ashley Wong

Re: How to add an external event with Email

Reply Threaded More More options
Print post
Permalink
In reply to this post by Alexander Finger
if i type the following commands in the terminal directly

/usr/local/OpenNMS/contrib/emailtoevent.pl -s opennms1.mycompany.com\,opennms2.mycompany.com -u
uei.opennms.org/vendor/mycompany/events/infrastructureMajor -i 192.168.1.1


dose it trigger an event in OpenNMS?

i tried but failed , perl stop without any reflection there...

Is there anything I should change in the file emailtoevent.pl ? this file is copied from document in the opennms.org website.

http://www.opennms.org/wiki/Email_to_Event

On Thu, Nov 5, 2009 at 2:22 AM, Alexander Finger <[hidden email]> wrote:
Ashley, most people here will be ready to help with postfix, sendmail and the like. Not sure anybody ever tried James.
The thing to look for is:

How to forward a mail received into a shell script? The mail received needs to be piped into a script.

I saw some beanshell examples on the James wiki but not "the solution".

best
Alex

On Wed, Nov 4, 2009 at 7:15 AM, Ashley Wong <[hidden email]> wrote:
well, i have installed james and start up this mail server, and which directory do i need to put in aliases and how do this server send event to OpenNMS?


On Tue, Nov 3, 2009 at 9:32 PM, Les Mikesell <[hidden email]> wrote:
Ashley Wong wrote:
> Thanks for replying.
>
> Actually, my objective is to arouse a event from email, I am not sure if
> this system can surpport this sort of service?
>

OpenNMS isn't going to respond directly to email - you have to configure your
email system to pipe the email to a program during delivery - and that program
can use send-event.pl to generate an event.

--
  Les Mikesell
   [hidden email]


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
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



--
Xiaobing Wong

Parallel Processing Institution
@Fudan University


Mobile: (86)13761025272
Email: [hidden email]
MSN: [hidden email]

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july

_______________________________________________
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


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
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



--
Xiaobing Wong

Parallel Processing Institution
@Fudan University


Mobile: (86)13761025272
Phone: 021-51355373/51355374-8004
Email: [hidden email]
MSN: [hidden email]

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
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
Les Mikesell

Re: How to add an external event with Email

Reply Threaded More More options
Print post
Permalink
Ashley Wong wrote:

> if i type the following commands in the terminal directly
> *
> /usr/local/OpenNMS/contrib/emailtoevent.pl <http://emailtoevent.pl> -s
> opennms1.mycompany.com
> <http://opennms1.mycompany.com>\,opennms2.mycompany.com
> <http://opennms2.mycompany.com> -u
> uei.opennms.org/vendor/mycompany/events/infrastructureMajor
> <http://uei.opennms.org/vendor/mycompany/events/infrastructureMajor> -i
> 192.168.1.1
> *
>
> dose it trigger an event in OpenNMS?
>
> i tried but failed , perl stop without any reflection there...
>
> Is there anything I should change in the file* emailtoevent.pl
> <http://emailtoevent.pl> *? this file is copied from document in the
> opennms.org <http://opennms.org> website.
>
> http://www.opennms.org/wiki/Email_to_Event

If it isn't doing anything at all, you probably need to change the path to perl
in the top line to match where your copy of perl is installed.  It might help if
you told us the OS platform where you are trying to install this.  And you need
to change the path for $errorlog to a location that exists and is writable.
After that you should see something in the $errorlog file after the run - or for
testing you could comment out the 'open STDERR, ">>$errorlog";' line so you'll
see errors on the console.

--
   Les Mikesell
    [hidden email]




------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
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
Ashley Wong

Re: How to add an external event with Email

Reply Threaded More More options
Print post
Permalink
our OS : red had el-5-server

thanks very much

Ashley

On Thu, Nov 5, 2009 at 9:57 PM, Les Mikesell <[hidden email]> wrote:
Ashley Wong wrote:
> if i type the following commands in the terminal directly
> *
> /usr/local/OpenNMS/contrib/emailtoevent.pl <http://emailtoevent.pl> -s
> opennms1.mycompany.com
> <http://opennms1.mycompany.com>\,opennms2.mycompany.com
> <http://opennms2.mycompany.com> -u
> <http://uei.opennms.org/vendor/mycompany/events/infrastructureMajor> -i
> 192.168.1.1
> *
>
> dose it trigger an event in OpenNMS?
>
> i tried but failed , perl stop without any reflection there...
>
> Is there anything I should change in the file* emailtoevent.pl
> <http://emailtoevent.pl> *? this file is copied from document in the
> opennms.org <http://opennms.org> website.
If it isn't doing anything at all, you probably need to change the path to perl
in the top line to match where your copy of perl is installed.  It might help if
you told us the OS platform where you are trying to install this.  And you need
to change the path for $errorlog to a location that exists and is writable.
After that you should see something in the $errorlog file after the run - or for
testing you could comment out the 'open STDERR, ">>$errorlog";' line so you'll
see errors on the console.

--
  Les Mikesell
   [hidden email]




------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
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



--
Xiaobing Wong

Parallel Processing Institution
@Fudan University


Mobile: (86)13761025272
Phone: 021-51355373/51355374-8004
Email: [hidden email]
MSN: [hidden email]

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
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