Quantcast
Channel: Siggi Gladitsch Tracker
Viewing all articles
Browse latest Browse all 426

Re: Send port number and host monitored in the alert email.

$
0
0

Hi newtosis,

while I tested this with 11.32 IP1 only, I think this should work with 11.10 as well.

When you define a threshold and based on this an alert which sends an email,
you can select various templates which are used when the alert email is generated.

The default template is "Typical" which result sin a message like the one below:

....
Group: SGTest Monitor: SG Port Monitor Status: unable to connect to server Sample: 4 Time: 6:24 PM 9/8/16 (2001:0:9d38:6abd:38fa:1e8a:efcb...
..
This alert is from SiteScope at http://15.119.185.69:8080/SiteScope

Monitor: 200981347:SG Port Monitor
Tags:
Group: SGTest
Status: unable to connect to server
Sample #: 4
Time: 6:24 PM 9/8/16

The thresholds in error are:
status: -998

The thresholds in warning are:


The thresholds in good are:
....

When you change the template to "WithDiagnostic" you'll get a lot more information,
including the information you are looking for:

....
as above plus

---------------------- Detail ----------------------

Host Name: sov02bac29.eu.hpecorp.net
Port Number: 38080
Update every: 60
Title: SG Port Monitor
_baseliningActivation: false
_chkEnableDisableLog: false
_cmbLogLevel: ERROR
....

With this you can create your own template (simply copy one of the ones in <SiteScope>\templates.mail to another name) and put in the variables you need,
for example copy "Typical" to "Port" and change the contents (for example) to
..
This alert is from SiteScope at <newSiteScopeURL>

Monitor: <groupID>:<name>
Status: <state>
Time: <time>

Unable to access <_hostname> at port <_port>
..

select this template in the Alert Action definition, and then you'll get an email like this one:

....
Monitor: 200981347:SG Port Monitor
Status: unable to connect to server
Time: 6:41 PM 9/8/16

Unable to access sov02bac29.eu.hpecorp.net at port 38080
....

Greetings
Siggi


Viewing all articles
Browse latest Browse all 426

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>