<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Deepak,<br>
</div>
<blockquote
cite="mid:CABpN7iRm9PaGgD3SwkSRuqr9MnFDiB5Y4cMzf2YZ=9FVPfwZzA@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div style="">I want to change one of an alert's notification
time.</div>
<div style=""><br>
</div>
<div style="">eg. all alerts will have repeat time of 30 mins
and disk (or my custom alert) will have repeat time as 4
hours, tried below configuration but not working as expected.
What am I doing wrong?</div>
<div><br>
</div>
<div>HOST=$HOSTS SERVICE=* IGNORE SERVICE=disk</div>
<div>SCRIPT /usr/local/xymon/server/ext/<a
moz-do-not-send="true" href="http://html_mail.pl">html_mail.pl</a>
<a moz-do-not-send="true" href="mailto:mail_id@gmail.com">mail_id@gmail.com</a>
FORMAT=PLAIN REPEAT=30 RECOVERED NOTICE</div>
<div>SERVICE=disk</div>
<div>SCRIPT /usr/local/xymon/server/ext/<a
moz-do-not-send="true" href="http://html_mail.pl">html_mail.pl</a>
<a moz-do-not-send="true" href="mailto:mail_id@gmail.com">mail_id@gmail.com</a>
FORMAT=PLAIN REPEAT=240 RECOVERED NOTICE<br>
</div>
<div>
<br>
</div>
</div>
</blockquote>
Suggest you check the doco on this (see Help -> Configuring
alerts). You need to understand what IGNORE does vs EXSERVICE. You
can also get an idea what alerting is in effect by checking the
"info" item for a host.<br>
<br>
<h3><a name="keywords">Keywords in rules and recipients</a></h3>
<p>These are the keywords for setting up rules:</p>
<table summary="hobbit-alerts.cfg keywords" align="center"
width="80%">
<tbody>
<tr>
<th align="left" valign="top">PAGE</th>
<td>rule matching an alert by the name of the page the host is
displayed on. This is the name following the "page",
"subpage" or "subparent" keyword in the bb-hosts file.</td>
</tr>
<tr>
<th align="left" valign="top">EXPAGE</th>
<td>rule excluding an alert if the pagename matches.</td>
</tr>
<tr>
<th align="left" valign="top">HOST</th>
<td>rule matching an alert by the hostname.</td>
</tr>
<tr>
<th align="left" valign="top">EXHOST</th>
<td>rule excluding an alert by matching the hostname.</td>
</tr>
<tr>
<th align="left" valign="top">SERVICE</th>
<td>rule matching an alert by the service name.</td>
</tr>
<tr>
<th align="left" valign="top">EXSERVICE</th>
<td>rule excluding an alert by matching the hostname.</td>
</tr>
<tr>
<th align="left" valign="top">COLOR</th>
<td>rule matching an alert by color. Can be "red", "yellow",
or "purple".</td>
</tr>
<tr>
<th align="left" valign="top">TIME</th>
<td>rule matching an alert by the time-of-day. This is
specified as the DOWNTIME timespecification in the bb-hosts
file (see bb-hosts(5)).</td>
</tr>
<tr>
<th align="left" valign="top">DURATION</th>
<td>Rule matching an alert if the event has lasted
longer/shorter than the given duration. E.g. <em>DURATION>10m</em>
(lasted longer than 10 minutes) or <em>DURATION<2h</em>
(only sends alerts the first 2 hours). Unless explicitly
stated, this is in minutes - you can use 'm', 'h', 'd' for
'minutes', 'hours' and 'days' respectively.</td>
</tr>
<tr>
<th align="left" valign="top">UNMATCHED</th>
<td>This keyword on a recipient means that he will only get an
alert, if no other alerts have been sent. So you can use it
e.g. when setting up alerts to specific people for some
services, then after those you add a recipient with the
UNMATCHED keyword who will only get those alerts that were
not sent anyone else. You can also use it to setup a
"catch-all" alert recipient, use the UNMATHED keyword on a
recipient at the end of the hobbit-alerts.cfg file.</td>
</tr>
<tr>
<th align="left" valign="top">RECOVERED</th>
<td>Rule matches if the alert has recovered from an alert
state.</td>
</tr>
<tr>
<th align="left" valign="top">NOTICE</th>
<td>Rule matches if the message is a "notify" message. This
type of message is sent when a host or test is disabled or
enabled.</td>
</tr>
</tbody>
</table>
<p>These are the keywords for specifying a recipient:</p>
<table summary="hobbit-alerts.cfg keywords" align="center"
width="80%">
<tbody>
<tr>
<th align="left" valign="top">MAIL</th>
<td>Recipient who receives an e-mail alert. This takes one
parameter, the e-mail address.</td>
</tr>
<tr>
<th align="left" valign="top">SCRIPT</th>
<td>Recipient that invokes a script. This takes two
parameters: The script filename, and the recipient that gets
passed to the script.</td>
</tr>
<tr>
<th align="left" valign="top">IGNORE</th>
<td>Recipient that does NOT send an alert, and will cause
Xymon to stop looking for any more recipients. See the
example below.</td>
</tr>
<tr>
<th align="left" valign="top">FORMAT</th>
<td>format of the text message with the alert. Default is
"TEXT" (suitable for e-mail alerts). "PLAIN" is the same as
TEXT, except it does not include the URL linking to the
status webpage. "SMS" is a short message with no subject for
SMS alerts. "SCRIPT" is a brief message template for
scripts.</td>
</tr>
<tr>
<th align="left" valign="top">REPEAT</th>
<td>How often an alert gets repeated. As with the DURATION
setting, this is in minutes unless explicitly modified with
'm', 'h', 'd'.</td>
</tr>
<tr>
<th align="left" valign="top">STOP</th>
<td>By default, hobbitd_alert looks at all the possible
recipients in the hobbit-alerts.cfg file when handling an
alert. If you would like it stop after a specific recipient
gets an alert, add the STOP keyword to this recipient. This
terminates the search for more recipients.</td>
</tr>
</tbody>
</table>
<br>
David.
<pre class="moz-signature" cols="72">--
David Baldwin - Senior Systems Administrator (Datacentres + Networks)
Information and Communication Technology Services
Australian Sports Commission <a class="moz-txt-link-freetext" href="http://ausport.gov.au">http://ausport.gov.au</a>
Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616
<a class="moz-txt-link-abbreviated" href="mailto:david.baldwin@ausport.gov.au">david.baldwin@ausport.gov.au</a> Leverrier Street Bruce ACT 2617
</pre>
<br>
<hr>
Keep up to date with what's happening in Australian sport visit <a href="http://www.ausport.gov.au">www.ausport.gov.au</a>
<br><br>
<font size="-2" face="arial">This message is intended for the addressee named and may contain confidential and privileged information. If you are not the intended recipient please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you receive this message in error, please delete it and notify the sender.</font>
<hr>
</body>
</html>