Xymon Mailing List Archive search

change alert email text?

18 messages in this thread

list Scott Gardner · Fri, 04 Jan 2008 10:25:56 -0600 ·
Hello,

Sorry if this is horribly ignorant. I'm rather new to the whole network administration biz. I've got alerts functioning nicely, but I'd like to change the text of the email that's sent out. Is there a cfg file somewhere I'm missing that I could edit?

Thank you,
-Scott
list Gary Baluha · Fri, 4 Jan 2008 11:42:07 -0500 ·
Can you give an example of how you would like to change it?
quoted from Scott Gardner

On Jan 4, 2008 11:25 AM, Scott Gardner <user-7ffa40de8316@xymon.invalid> wrote:
Hello,

Sorry if this is horribly ignorant. I'm rather new to the whole network
administration biz. I've got alerts functioning nicely, but I'd like to
change the text of the email that's sent out. Is there a cfg file
somewhere I'm missing that I could edit?

Thank you,
-Scott

list Scott Gardner · Fri, 04 Jan 2008 10:45:50 -0600 ·
I'd like to change the url that shows at the bottom. Currently it's 
something like

http://localhost/hobbit-cgi/bb-hostsvc.sh?HOST=blahblahblah

I'd like to change "localhost" to "my.hostname.edu"

Thanks,
-Scott
quoted from Gary Baluha


Gary Baluha wrote:
Can you give an example of how you would like to change it?

On Jan 4, 2008 11:25 AM, Scott Gardner <user-7ffa40de8316@xymon.invalid 
<mailto:user-7ffa40de8316@xymon.invalid>> wrote:

    Hello,

    Sorry if this is horribly ignorant. I'm rather new to the whole
    network
    administration biz. I've got alerts functioning nicely, but I'd
    like to
    change the text of the email that's sent out. Is there a cfg file
    somewhere I'm missing that I could edit?

    Thank you,
    -Scott

list Gary Baluha · Fri, 4 Jan 2008 11:54:26 -0500 ·
That's a matter of the hobbit server's hostname and/or webpage
configuration.
Can you do the following, and post the results:

# hostname
# cat /etc/hosts
# cat <hobbit root>/server/etc/hobbitserver.cfg | egrep
"BBSERVERHOSTNAME|BBSERVERWWWNAME"

Odds are, BBSERVERWWWNAME is probably set to "localhost".  Changing it to "
my.hostname.edu" should fix that (restarting Hobbit will be required).
quoted from Scott Gardner

On Jan 4, 2008 11:45 AM, Scott Gardner <user-7ffa40de8316@xymon.invalid> wrote:
I'd like to change the url that shows at the bottom. Currently it's
something like

http://localhost/hobbit-cgi/bb-hostsvc.sh?HOST=blahblahblah

I'd like to change "localhost" to "my.hostname.edu"

Thanks,
-Scott


Gary Baluha wrote:
Can you give an example of how you would like to change it?

On Jan 4, 2008 11:25 AM, Scott Gardner <user-7ffa40de8316@xymon.invalid
<mailto:user-7ffa40de8316@xymon.invalid>> wrote:

    Hello,

    Sorry if this is horribly ignorant. I'm rather new to the whole
    network
    administration biz. I've got alerts functioning nicely, but I'd
    like to
    change the text of the email that's sent out. Is there a cfg file
    somewhere I'm missing that I could edit?

    Thank you,
    -Scott

list Henrik Størner · Fri, 4 Jan 2008 17:55:25 +0100 ·
quoted from Scott Gardner
On Fri, Jan 04, 2008 at 10:45:50AM -0600, Scott Gardner wrote:
I'd like to change the url that shows at the bottom. Currently it's 
something like

http://localhost/hobbit-cgi/bb-hostsvc.sh?HOST=blahblahblah

I'd like to change "localhost" to "my.hostname.edu"
Change the BBSERVERWWWNAME setting in hobbitserver.cfg and restart Hobbit.


Henrik
list Scott Gardner · Fri, 04 Jan 2008 12:06:41 -0600 ·
This did the trick. Thanks everyone.

-Scott
quoted from Henrik Størner

Henrik Stoerner wrote:
On Fri, Jan 04, 2008 at 10:45:50AM -0600, Scott Gardner wrote:
  
I'd like to change the url that shows at the bottom. Currently it's 
something like

http://localhost/hobbit-cgi/bb-hostsvc.sh?HOST=blahblahblah

I'd like to change "localhost" to "my.hostname.edu"
    
Change the BBSERVERWWWNAME setting in hobbitserver.cfg and restart Hobbit.


Henrik

list Josh Luthman · Fri, 4 Jan 2008 13:14:31 -0500 ·
How many people actually use regular old email Hobbit alerts?  I've found it
far superior to have bbtray or the summary page open on a second monitor.
quoted from Scott Gardner

On 1/4/08, Scott Gardner <user-7ffa40de8316@xymon.invalid> wrote:
This did the trick. Thanks everyone.

-Scott

Henrik Stoerner wrote:
On Fri, Jan 04, 2008 at 10:45:50AM -0600, Scott Gardner wrote:
I'd like to change the url that shows at the bottom. Currently it's
something like

http://localhost/hobbit-cgi/bb-hostsvc.sh?HOST=blahblahblah

I'd like to change "localhost" to "my.hostname.edu"
Change the BBSERVERWWWNAME setting in hobbitserver.cfg and restart
Hobbit.

Henrik

-- 

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
list Gary Baluha · Fri, 4 Jan 2008 13:29:22 -0500 ·
I still use email alerts.  It's easy for a lazy admin to ignore the summary
page and just close it if they don't like what they see.  Much harder to
ignore emails. ;-)
quoted from Josh Luthman

On Jan 4, 2008 1:14 PM, Josh Luthman <user-4c45a83f15cb@xymon.invalid> wrote:
How many people actually use regular old email Hobbit alerts?  I've found
it far superior to have bbtray or the summary page open on a second monitor.


On 1/4/08, Scott Gardner <user-7ffa40de8316@xymon.invalid> wrote:
This did the trick. Thanks everyone.

-Scott

Henrik Stoerner wrote:
On Fri, Jan 04, 2008 at 10:45:50AM -0600, Scott Gardner wrote:
I'd like to change the url that shows at the bottom. Currently it's
something like

http://localhost/hobbit-cgi/bb-hostsvc.sh?HOST=blahblahblah

I'd like to change "localhost" to " my.hostname.edu"
Change the BBSERVERWWWNAME setting in hobbitserver.cfg and restart
Hobbit.

Henrik

--
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
list Josh Luthman · Fri, 4 Jan 2008 13:44:47 -0500 ·
Harder to ignore emails?  But the delete button is so conveniently located
=)

What I have the techs do is install this:
http://www.deadcat.net/viewfile.php?fileid=233

It will bug the hell out of you until you fix the problem!
quoted from Gary Baluha

On 1/4/08, Gary Baluha <user-ae3e15c22de1@xymon.invalid> wrote:
I still use email alerts.  It's easy for a lazy admin to ignore the
summary page and just close it if they don't like what they see.  Much
harder to ignore emails. ;-)

On Jan 4, 2008 1:14 PM, Josh Luthman < user-4c45a83f15cb@xymon.invalid> wrote:
How many people actually use regular old email Hobbit alerts?  I've
found it far superior to have bbtray or the summary page open on a second
monitor.


On 1/4/08, Scott Gardner <user-7ffa40de8316@xymon.invalid > wrote:
This did the trick. Thanks everyone.

-Scott

Henrik Stoerner wrote:
On Fri, Jan 04, 2008 at 10:45:50AM -0600, Scott Gardner wrote:
I'd like to change the url that shows at the bottom. Currently it's
something like

http://localhost/hobbit-cgi/bb-hostsvc.sh?HOST=blahblahblah

I'd like to change "localhost" to " my.hostname.edu"
Change the BBSERVERWWWNAME setting in hobbitserver.cfg and restart
Hobbit.

Henrik

--
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
-- 
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
list Gary Baluha · Fri, 4 Jan 2008 14:03:33 -0500 ·
quoted from Josh Luthman
On Jan 4, 2008 1:44 PM, Josh Luthman <user-4c45a83f15cb@xymon.invalid> wrote:
Harder to ignore emails?  But the delete button is so conveniently located
=)

True, but at least there's an auditable trail, and I can go back and say
"see, the admins were alerted about it!"
quoted from Josh Luthman

What I have the techs do is install this:
http://www.deadcat.net/viewfile.php?fileid=233

It will bug the hell out of you until you fix the problem!


On 1/4/08, Gary Baluha <user-ae3e15c22de1@xymon.invalid > wrote:
I still use email alerts.  It's easy for a lazy admin to ignore the
summary page and just close it if they don't like what they see.  Much
harder to ignore emails. ;-)

On Jan 4, 2008 1:14 PM, Josh Luthman < user-4c45a83f15cb@xymon.invalid>
wrote:
How many people actually use regular old email Hobbit alerts?  I've
found it far superior to have bbtray or the summary page open on a second
monitor.


On 1/4/08, Scott Gardner < user-7ffa40de8316@xymon.invalid > wrote:
This did the trick. Thanks everyone.

-Scott

Henrik Stoerner wrote:
On Fri, Jan 04, 2008 at 10:45:50AM -0600, Scott Gardner wrote:
I'd like to change the url that shows at the bottom. Currently
it's
something like

http://localhost/hobbit-cgi/bb-hostsvc.sh?HOST=blahblahblah

I'd like to change "localhost" to " my.hostname.edu"
Change the BBSERVERWWWNAME setting in hobbitserver.cfg and restart
Hobbit.

Henrik

--
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
--
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
list Josh Luthman · Fri, 4 Jan 2008 16:17:43 -0500 ·
if from:user-6dc5ea3e07e0@xymon.invalid then
/dev/null
XD
quoted from Gary Baluha

On 1/4/08, Gary Baluha <user-ae3e15c22de1@xymon.invalid> wrote:
On Jan 4, 2008 1:44 PM, Josh Luthman <user-4c45a83f15cb@xymon.invalid> wrote:
Harder to ignore emails?  But the delete button is so conveniently
located =)

True, but at least there's an auditable trail, and I can go back and say
"see, the admins were alerted about it!"

What I have the techs do is install this:
http://www.deadcat.net/viewfile.php?fileid=233

It will bug the hell out of you until you fix the problem!


On 1/4/08, Gary Baluha < user-ae3e15c22de1@xymon.invalid > wrote:
I still use email alerts.  It's easy for a lazy admin to ignore the
summary page and just close it if they don't like what they see.  Much
harder to ignore emails. ;-)

On Jan 4, 2008 1:14 PM, Josh Luthman < user-4c45a83f15cb@xymon.invalid>
wrote:
How many people actually use regular old email Hobbit alerts?  I've
found it far superior to have bbtray or the summary page open on a second
monitor.


On 1/4/08, Scott Gardner < user-7ffa40de8316@xymon.invalid > wrote:
This did the trick. Thanks everyone.

-Scott

Henrik Stoerner wrote:
On Fri, Jan 04, 2008 at 10:45:50AM -0600, Scott Gardner wrote:
I'd like to change the url that shows at the bottom. Currently
it's
something like

http://localhost/hobbit-cgi/bb-hostsvc.sh?HOST=blahblahblah

I'd like to change "localhost" to " my.hostname.edu"
Change the BBSERVERWWWNAME setting in hobbitserver.cfg and
restart Hobbit.


Henrik

--
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it,
poorly.
--- Henry Spencer
--
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
-- 
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
list Stewart L · Fri, 4 Jan 2008 17:40:17 -0500 ·
Especially if they all go to the team responsible, and that team's
management.  And my team (Security) gets all alerts for production
systems, regardless who is the business owner. :)

And I've had folks claim they didn't get alert emails before.  Had to
whip out the notification.log file on them.

Stew
quoted from Gary Baluha


On Jan 4, 2008 1:29 PM, Gary Baluha <user-ae3e15c22de1@xymon.invalid> wrote:
I still use email alerts.  It's easy for a lazy admin to ignore the summary
page and just close it if they don't like what they see.  Much harder to
ignore emails. ;-)


On Jan 4, 2008 1:14 PM, Josh Luthman < user-4c45a83f15cb@xymon.invalid> wrote:
How many people actually use regular old email Hobbit alerts?  I've found
it far superior to have bbtray or the summary page open on a second monitor.


On 1/4/08, Scott Gardner <user-7ffa40de8316@xymon.invalid > wrote:
This did the trick. Thanks everyone.

-Scott

Henrik Stoerner wrote:
On Fri, Jan 04, 2008 at 10:45:50AM -0600, Scott Gardner wrote:
I'd like to change the url that shows at the bottom. Currently it's
something like

http://localhost/hobbit-cgi/bb-hostsvc.sh?HOST=blahblahblah

I'd like to change "localhost" to " my.hostname.edu"
Change the BBSERVERWWWNAME setting in hobbitserver.cfg and restart
Hobbit.

Henrik

--
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
-- 

Stewart

The revolution will not be televised.
The revolution will be no re-run brothers;
The revolution will be live.
list Josh Luthman · Sat, 5 Jan 2008 11:18:32 -0500 ·
I see. I know when we got the emails the first reaction was to switch
tabs in Firefox to get more detail.  The email was always deleted,
rarely read. Glad to see it works out well for someone though!
quoted from Stewart L


On 1/4/08, Stewart L <user-a046134cfd06@xymon.invalid> wrote:
Especially if they all go to the team responsible, and that team's
management.  And my team (Security) gets all alerts for production
systems, regardless who is the business owner. :)

And I've had folks claim they didn't get alert emails before.  Had to
whip out the notification.log file on them.

Stew


On Jan 4, 2008 1:29 PM, Gary Baluha <user-ae3e15c22de1@xymon.invalid> wrote:
I still use email alerts.  It's easy for a lazy admin to ignore the
summary
page and just close it if they don't like what they see.  Much harder to
ignore emails. ;-)


On Jan 4, 2008 1:14 PM, Josh Luthman < user-4c45a83f15cb@xymon.invalid> wrote:
How many people actually use regular old email Hobbit alerts?  I've
found
it far superior to have bbtray or the summary page open on a second
monitor.


On 1/4/08, Scott Gardner <user-7ffa40de8316@xymon.invalid > wrote:
This did the trick. Thanks everyone.

-Scott

Henrik Stoerner wrote:
On Fri, Jan 04, 2008 at 10:45:50AM -0600, Scott Gardner wrote:
I'd like to change the url that shows at the bottom. Currently it's
something like

http://localhost/hobbit-cgi/bb-hostsvc.sh?HOST=blahblahblah

I'd like to change "localhost" to " my.hostname.edu"
Change the BBSERVERWWWNAME setting in hobbitserver.cfg and restart
Hobbit.

Henrik

--
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
--
Stewart

The revolution will not be televised.
The revolution will be no re-run brothers;
The revolution will be live.

-- 
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
list Gary Baluha · Mon, 7 Jan 2008 09:32:23 -0500 ·
quoted from Stewart L
On Jan 4, 2008 5:40 PM, Stewart L <user-a046134cfd06@xymon.invalid> wrote:
Especially if they all go to the team responsible, and that team's
management.  And my team (Security) gets all alerts for production
systems, regardless who is the business owner. :)

And I've had folks claim they didn't get alert emails before.  Had to
whip out the notification.log file on them.
Ahh, I love that notification.log file.  There's nothing more satisfying
that whipping that log out and then backing it up with the maillogs to prove
they definitely received the emails and either deleted them or spam-filtered
them.  The look they have (or silence, if on the phone) is priceless when
they think they have a way to "prove" Hobbit needs to be replaced, only to
learn that they can't sneak anything past it.
quoted from Josh Luthman

Stew


On Jan 4, 2008 1:29 PM, Gary Baluha <user-ae3e15c22de1@xymon.invalid> wrote:
I still use email alerts.  It's easy for a lazy admin to ignore the
summary
page and just close it if they don't like what they see.  Much harder to
ignore emails. ;-)


On Jan 4, 2008 1:14 PM, Josh Luthman < user-4c45a83f15cb@xymon.invalid>
wrote:
How many people actually use regular old email Hobbit alerts?  I've
found
it far superior to have bbtray or the summary page open on a second
monitor.


On 1/4/08, Scott Gardner <user-7ffa40de8316@xymon.invalid > wrote:
This did the trick. Thanks everyone.

-Scott

Henrik Stoerner wrote:
On Fri, Jan 04, 2008 at 10:45:50AM -0600, Scott Gardner wrote:
I'd like to change the url that shows at the bottom. Currently
it's
something like

http://localhost/hobbit-cgi/bb-hostsvc.sh?HOST=blahblahblah

I'd like to change "localhost" to " my.hostname.edu"
Change the BBSERVERWWWNAME setting in hobbitserver.cfg and restart
Hobbit.

Henrik

--
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
--
Stewart

The revolution will not be televised.
The revolution will be no re-run brothers;
The revolution will be live.

list Josh Luthman · Mon, 7 Jan 2008 10:45:34 -0500 ·
I can only imagine such a genuine feeling =)
quoted from Gary Baluha

On 1/7/08, Gary Baluha <user-ae3e15c22de1@xymon.invalid> wrote:
On Jan 4, 2008 5:40 PM, Stewart L <user-a046134cfd06@xymon.invalid> wrote:
Especially if they all go to the team responsible, and that team's
management.  And my team (Security) gets all alerts for production
systems, regardless who is the business owner. :)

And I've had folks claim they didn't get alert emails before.  Had to
whip out the notification.log file on them.
Ahh, I love that notification.log file.  There's nothing more satisfying
that whipping that log out and then backing it up with the maillogs to prove
they definitely received the emails and either deleted them or spam-filtered
them.  The look they have (or silence, if on the phone) is priceless when
they think they have a way to "prove" Hobbit needs to be replaced, only to
learn that they can't sneak anything past it.

Stew


On Jan 4, 2008 1:29 PM, Gary Baluha < user-ae3e15c22de1@xymon.invalid> wrote:
I still use email alerts.  It's easy for a lazy admin to ignore the
summary
page and just close it if they don't like what they see.  Much harder
to
ignore emails. ;-)


On Jan 4, 2008 1:14 PM, Josh Luthman < user-4c45a83f15cb@xymon.invalid>
wrote:
How many people actually use regular old email Hobbit alerts?  I've
found
it far superior to have bbtray or the summary page open on a second
monitor.


On 1/4/08, Scott Gardner < user-7ffa40de8316@xymon.invalid > wrote:
This did the trick. Thanks everyone.

-Scott

Henrik Stoerner wrote:
On Fri, Jan 04, 2008 at 10:45:50AM -0600, Scott Gardner wrote:
I'd like to change the url that shows at the bottom. Currently
it's
something like

http://localhost/hobbit-cgi/bb-hostsvc.sh?HOST=blahblahblah

I'd like to change "localhost" to " my.hostname.edu"
Change the BBSERVERWWWNAME setting in hobbitserver.cfg and
restart
Hobbit.

Henrik

--
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it,
poorly.
--- Henry Spencer
--
Stewart

The revolution will not be televised.
The revolution will be no re-run brothers;
The revolution will be live.

-- 
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
list William Sanders · Mon, 4 May 2015 07:54:18 -0700 ·
I'm wondering if there is a quick answer on how to change the email alert text that Xymon generates.

Specifically it is required that I remove the IP address from the email.

Example: 

---
red  Fri Apr  3 17:54:18 2015 conn NOT ok

Service conn on 4ai1gub4x9 is not OK : Host does not respond to ping


System unreachable for 223 poll periods (7274 seconds)

&red 10.0.0.10 is unreachable
---

would become:

---
red  Fri Apr  3 17:54:18 2015 conn NOT ok

Service conn on 4ai1gub4x9 is not OK : Host does not respond to ping


System unreachable for 223 poll periods (7274 seconds)

&red 4ai1gub4x9 is unreachable
---

I can list the IPs in the hosts.cfg (will have to actually, since no DNS server is available), but before I'll be allowed to submit Xymon to our security office for testing/approval to be added to our network management has tasked me with removing the IPs from the emails.
list John Thurston · Mon, 04 May 2015 08:08:48 -0800 ·
quoted from William Sanders
On 5/4/2015 6:54 AM, William Sanders wrote:
I'm wondering if there is a quick answer on how to change the email alert text that Xymon generates.

Specifically it is required that I remove the IP address from the email.

Example:
---
red  Fri Apr  3 17:54:18 2015 conn NOT ok

Service conn on 4ai1gub4x9 is not OK : Host does not respond to ping
System unreachable for 223 poll periods (7274 seconds)
&red 10.0.0.10 is unreachable
- snip -
I can list the IPs in the hosts.cfg (will have to actually, since no DNS server is available), but before I'll be allowed to submit Xymon to our security office for testing/approval to be added to our network management has tasked me with removing the IPs from the emails.
I think you will find that the text of the mail message is just the contents of the message as was generated by xymonnet in response to the failure. Look at:
/xymon-cgi/svcstatus.sh?HOST=4ai1gub4x9.foo.com&SERVICE=conn

I think you'll have to write your own email generator if you want to send something else. It could be as simple as a filter which grep'd out ip addresses.

<un-solicited opinion>
The members of your security office are being simple-minded drones. "OMG, it contains an ip address, it must be stopped!"

To whom are you sending these messages? Presumably they will be sent to someone who cares and who can do something to correct the problem. In both of these cases, the IP address of the system should already be known. If you are sending messages of this sort to someone who doesn't care or who can't affect a resolution, the messages are spam and should not be sent.
</on-solicited opinion>


-- 
    Do things because you should, not just because you can.

John Thurston    XXX-XXX-XXXX
user-ce4d79d99bab@xymon.invalid
Enterprise Technology Services
Department of Administration
State of Alaska
list John Tullis · Thu, 7 May 2015 05:32:46 +0000 ·
I do it with a custom script. It took me a while to get it exactly right but I love how clean my alerts look now.


I created a script that pulls whatever data in that I want to send in the email. You can add any of the fields in the alerts.cfg<http://xymon.sourceforge.net/xymon/help/manpages/man5/alerts.cfg.5.html>; man page. (Side note, unless you're looking at CONN, so far the IP address isn't listed in the variable $BBALPHAMSG for the hosts I'm monitoring)


#!/bin/sh

n=$RECOVERED

if test $n -eq 0

then

<br />

<font color=#01396f size="6">Xymon Monitoring System</font>

<br />

<br />

Here are the details of your problem:

<br />

<pre>


$BBALPHAMSG


</pre>

<br />

Please log onto $BBHOSTNAME and check the $BBSVCNAME." | mail -a "Content-type: text/html;" -s "ALERT: $BBHOSTSVC is $BBCOLORLEVEL" --append=FROM:"Zymon Monitoring System <user-36187c655c80@xymon.invalid>" $RCPT

else

<br />

<font color=#01396f size="6">Xymon Monitoring System</font>

<br />

<br />

It looks like $BBHOSTNAME has recovered.

<br />

<pre>


$BBALPHAMSG


</pre>

<br />

$BBSVCNAME on $BBHOSTNAME has recovered." | mail -a "Content-type: text/html;" -s "NOTE:$BBSVCNAME on $BBHOSTNAME recovered" --append=FROM:"Xymon Monitoring System <user-36187c655c80@xymon.invalid>" $RCPT

fi


Then in your alerts file<http://xymon.sourceforge.net/xymon/help/manpages/man5/alerts.cfg.5.html>;, change the second line to look like this instead of the default:


PAGE=%.*servername*

    SCRIPT=/location/to/custom-alerts/alert.sh user-74e73cfda904@xymon.invalid RECOVERED REPEAT=1440 DURATION>3


Hope that helps!


John Tullis
quoted from William Sanders


-----Original Message-----
From: William Sanders [mailto:user-12ac283d7e6a@xymon.invalid]
Sent: Monday, May 04, 2015 8:54 AM
To: xymon at xymon.com
Subject: change alert email text?


I'm wondering if there is a quick answer on how to change the email alert text that Xymon generates.


Specifically it is required that I remove the IP address from the email.


Example:


---

red  Fri Apr  3 17:54:18 2015 conn NOT ok


Service conn on 4ai1gub4x9 is not OK : Host does not respond to ping


System unreachable for 223 poll periods (7274 seconds)


&red 10.0.0.10 is unreachable

---


would become:


---

red  Fri Apr  3 17:54:18 2015 conn NOT ok


Service conn on 4ai1gub4x9 is not OK : Host does not respond to ping


System unreachable for 223 poll periods (7274 seconds)


&red 4ai1gub4x9 is unreachable

---


I can list the IPs in the hosts.cfg (will have to actually, since no DNS server is available), but before I'll be allowed to submit Xymon to our security office for testing/approval to be added to our network management has tasked me with removing the IPs from the emails.