Xymon Mailing List Archive search

Customizing the Alerts mails sent my hobbit

7 messages in this thread

list Arun Thangappandi · Tue, 25 Mar 2008 06:53:14 -0400 ·
Hi,

 
Can any body help me; how to customize the hobbit alert mails so that it
shows the IP of the server which we monitor instead of showing the
hostname in it.

 
Thanks & Regards,

Arunkumar
list Henrik Størner · Tue, 25 Mar 2008 13:43:16 +0100 ·
quoted from Arun Thangappandi
On Tue, Mar 25, 2008 at 06:53:14AM -0400, Thangappandi, Arun (Ge Money, consultant) wrote:
Can any body help me; how to customize the hobbit alert mails so that it
shows the IP of the server which we monitor instead of showing the
hostname in it.
Use a SCRIPT instead of MAIL command in hobbit-alerts.cfg, and create a 
script which composes your mail with the information you want and sends it off.

See the hobbit-alerts.cfg(5) man-page to get information about how you
extract the alert message, hostname, IP etc. to your script.


Regards,
Henrik
list Arun Thangappandi · Tue, 25 Mar 2008 13:07:00 -0400 ·
Can you please give me an example script,because I can take forward from
easily.

Thanks & Regards,
Arunkumar 
quoted from Henrik Størner
-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid] 
Sent: Tuesday, March 25, 2008 6:13 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Customizing the Alerts mails sent my hobbit

On Tue, Mar 25, 2008 at 06:53:14AM -0400, Thangappandi, Arun (Ge Money,
consultant) wrote:
Can any body help me; how to customize the hobbit alert mails so that
it
shows the IP of the server which we monitor instead of showing the
hostname in it.
Use a SCRIPT instead of MAIL command in hobbit-alerts.cfg, and create a 
script which composes your mail with the information you want and sends
it off.

See the hobbit-alerts.cfg(5) man-page to get information about how you
extract the alert message, hostname, IP etc. to your script.


Regards,
Henrik
list Galen Johnson · Tue, 25 Mar 2008 13:28:11 -0400 ·
There's an example script on The Shire for sms pages:  http://www.trantor.org/theshire/doku.php/alerts:smsplus

=G=
quoted from Arun Thangappandi

-----Original Message-----
From: Thangappandi, Arun (Ge Money, consultant) [mailto:user-8a9ba39d15af@xymon.invalid]
Sent: Tuesday, March 25, 2008 1:07 PM
To: user-ae9b8668bcde@xymon.invalid; user-ce4a2c883f75@xymon.invalid
Subject: RE: [hobbit] Customizing the Alerts mails sent my hobbit

Can you please give me an example script,because I can take forward from
easily.

Thanks & Regards,
Arunkumar
-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid]
Sent: Tuesday, March 25, 2008 6:13 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Customizing the Alerts mails sent my hobbit

On Tue, Mar 25, 2008 at 06:53:14AM -0400, Thangappandi, Arun (Ge Money,
consultant) wrote:
Can any body help me; how to customize the hobbit alert mails so that
it
shows the IP of the server which we monitor instead of showing the
hostname in it.
Use a SCRIPT instead of MAIL command in hobbit-alerts.cfg, and create a
script which composes your mail with the information you want and sends
it off.

See the hobbit-alerts.cfg(5) man-page to get information about how you
extract the alert message, hostname, IP etc. to your script.


Regards,
Henrik
list Benjamin P. August · Tue, 25 Mar 2008 10:35:38 -0700 ·
I hacked up the smsplus script a little (to use a different subject  
line) and we use it here. It's a winner.

-- 
--Ben
Benjamin P. August
System Administrator - VPUE
Stanford University


Quoting Galen Johnson <user-87f955643e3d@xymon.invalid>:
quoted from Galen Johnson
There's an example script on The Shire for sms pages:    
http://www.trantor.org/theshire/doku.php/alerts:smsplus

=G=

-----Original Message-----
From: Thangappandi, Arun (Ge Money, consultant)   
[mailto:user-8a9ba39d15af@xymon.invalid]
Sent: Tuesday, March 25, 2008 1:07 PM
To: user-ae9b8668bcde@xymon.invalid; user-ce4a2c883f75@xymon.invalid
Subject: RE: [hobbit] Customizing the Alerts mails sent my hobbit

Can you please give me an example script,because I can take forward from
easily.

Thanks & Regards,
Arunkumar
-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid]
Sent: Tuesday, March 25, 2008 6:13 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Customizing the Alerts mails sent my hobbit

On Tue, Mar 25, 2008 at 06:53:14AM -0400, Thangappandi, Arun (Ge Money,
consultant) wrote:
Can any body help me; how to customize the hobbit alert mails so that
it
shows the IP of the server which we monitor instead of showing the
hostname in it.
Use a SCRIPT instead of MAIL command in hobbit-alerts.cfg, and create a
script which composes your mail with the information you want and sends
it off.

See the hobbit-alerts.cfg(5) man-page to get information about how you
extract the alert message, hostname, IP etc. to your script.


Regards,
Henrik

list Arun Thangappandi · Wed, 26 Mar 2008 06:05:01 -0400 ·
Thanks for the great help.

 
But I now when I get the alerts it displays some thing like this in the
body of the message.

"red <!-- [flags:ordastLe] --> Wed Mar 26 05:51:19 2008 smtp NOT ok"

I have marked the same in red can I know what I am missing due to which
I am getting junk. Please help in the same.

 
Another question is that when I include the variable MACHIP in my script
to display the same in the subject it shows the IP address with out any
dots in between.

 
For example 2.100.221.12 it displays as 002100221012,can any help in
trouble shooting this also.

 
Waiting for some body to reply.
quoted from Benjamin P. August

 
Thanks & Regards,

Arunkumar 
 
-----Original Message-----
From: Benjamin P. August [mailto:user-e992dd5eb2a5@xymon.invalid] Sent: Tuesday, March 25, 2008 11:06 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Customizing the Alerts mails sent my hobbit

 
I hacked up the smsplus script a little (to use a different subject  
line) and we use it here. It's a winner.

 
-- 

--Ben

Benjamin P. August

System Administrator - VPUE

Stanford University

 
Quoting Galen Johnson <user-87f955643e3d@xymon.invalid>:

 
There's an example script on The Shire for sms pages:    
http://www.trantor.org/theshire/doku.php/alerts:smsplus
=G=
-----Original Message-----
From: Thangappandi, Arun (Ge Money, consultant)   
[mailto:user-8a9ba39d15af@xymon.invalid]
Sent: Tuesday, March 25, 2008 1:07 PM
To: user-ae9b8668bcde@xymon.invalid; user-ce4a2c883f75@xymon.invalid
Subject: RE: [hobbit] Customizing the Alerts mails sent my hobbit
Can you please give me an example script,because I can take forward
from
easily.
Thanks & Regards,
Arunkumar
-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid]
Sent: Tuesday, March 25, 2008 6:13 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Customizing the Alerts mails sent my hobbit
On Tue, Mar 25, 2008 at 06:53:14AM -0400, Thangappandi, Arun (Ge
Money,
consultant) wrote:
Can any body help me; how to customize the hobbit alert mails so that
it
shows the IP of the server which we monitor instead of showing the
hostname in it.
Use a SCRIPT instead of MAIL command in hobbit-alerts.cfg, and create
a
script which composes your mail with the information you want and
sends
it off.
See the hobbit-alerts.cfg(5) man-page to get information about how you
extract the alert message, hostname, IP etc. to your script.
Regards,
Henrik
list Arun Thangappandi · Wed, 26 Mar 2008 09:36:31 -0400 ·
Can any body please help me in this? Waiting for reply.

 
Thanks & Regards,

Arunkumar 
quoted from Arun Thangappandi

From: Thangappandi, Arun (Ge Money, consultant) Sent: Wednesday, March 26, 2008 3:35 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Customizing the Alerts mails sent my hobbit

 
Thanks for the great help.

 
But I now when I get the alerts it displays some thing like this in the
body of the message.

"red <!-- [flags:ordastLe] --> Wed Mar 26 05:51:19 2008 smtp NOT ok"

I have marked the same in red can I know what I am missing due to which
I am getting junk. Please help in the same.

 
Another question is that when I include the variable MACHIP in my script
to display the same in the subject it shows the IP address with out any
dots in between.

 
For example 2.100.221.12 it displays as 002100221012,can any help in
trouble shooting this also.

 
Waiting for some body to reply.

 
Thanks & Regards,

Arunkumar 
 
-----Original Message-----
From: Benjamin P. August [mailto:user-e992dd5eb2a5@xymon.invalid] Sent: Tuesday, March 25, 2008 11:06 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Customizing the Alerts mails sent my hobbit

 
I hacked up the smsplus script a little (to use a different subject  
line) and we use it here. It's a winner.

 
-- 

--Ben

Benjamin P. August

System Administrator - VPUE

Stanford University

 
Quoting Galen Johnson <user-87f955643e3d@xymon.invalid>:

 
There's an example script on The Shire for sms pages:    
http://www.trantor.org/theshire/doku.php/alerts:smsplus
=G=
-----Original Message-----
From: Thangappandi, Arun (Ge Money, consultant)   
[mailto:user-8a9ba39d15af@xymon.invalid]
Sent: Tuesday, March 25, 2008 1:07 PM
To: user-ae9b8668bcde@xymon.invalid; user-ce4a2c883f75@xymon.invalid
Subject: RE: [hobbit] Customizing the Alerts mails sent my hobbit
Can you please give me an example script,because I can take forward
from
easily.
Thanks & Regards,
Arunkumar
-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid]
Sent: Tuesday, March 25, 2008 6:13 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Customizing the Alerts mails sent my hobbit
On Tue, Mar 25, 2008 at 06:53:14AM -0400, Thangappandi, Arun (Ge
Money,
consultant) wrote:
Can any body help me; how to customize the hobbit alert mails so that
it
shows the IP of the server which we monitor instead of showing the
hostname in it.
Use a SCRIPT instead of MAIL command in hobbit-alerts.cfg, and create
a
script which composes your mail with the information you want and
sends
it off.
See the hobbit-alerts.cfg(5) man-page to get information about how you
extract the alert message, hostname, IP etc. to your script.
Regards,
Henrik