<html><head><title>Re: [smokeping-users] Alert with E-Mail and SMS</title>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-15">
</head>
<body>
<span style=" font-family:'Courier New'; font-size: 9pt;">Sorry, failed to send it to the list! [Damn!]<br>
<br>
</span><table>
<tr>
<td width=2 bgcolor= #0000ff><br>
</td>
<td><br><br>
<span style=" font-family:'calibri'; font-size: 11pt;">How can I manage to get an alert if a target is no more reachable by fping?<br>
I customized all config files – but no email was sent!</td>
</tr>
</table>
<br><br>
<br>
<span style=" font-family:'Courier New'; font-size: 9pt;">Seriously, did you read the docs? <br>
</span><a style=" font-family:'courier new'; font-size: 9pt;" href="http://oss.oetiker.ch/smokeping/doc/smokeping_config.en.html">http://oss.oetiker.ch/smokeping/doc/smokeping_config.en.html</a> <br>
<br>
<span style=" font-family:'Courier New'; font-size: 9pt;">Did you run in debug mode, and is a trigger occurring? [i.e. Your trigger works as you intended, but the email just didn't go out properly, or your trigger doesn't work like you intended?]<br>
[Call smokeping with "--debug" and see what happens in the output. That's data you have to have to evaluate why it doesn't work. That you'd ask us why it doesn't work without this data seems crazy. If you had it but didn't share, you're expecting us to be crazy with you... :) ]<br>
<br>
How about you tell us what you tried, instead of making us guess. [And if you haven't tried much, now's the time to start.]<br>
<br>
</span><table>
<tr>
<td width=2 bgcolor= #0000ff><br>
</td>
<td><span style=" font-family:'calibri'; font-size: 11pt;">In the second step I want to send a SMS by smstools (creating a text file in a spool directory). <br>
How can this be managed (i.e. write the alert message in a file)?</td>
</tr>
</table>
<br><br>
<br>
<span style=" font-family:'Courier New'; font-size: 9pt;">See the "|" command/option to handle custom alert functions.<br>
In the docs above, see the "To" option in the Alerts section. Notice the "|" pipe option.<br>
<br>
Frankly, if you're doing anything with more than a small number of targets, using something like Nagios will probably work better for the alerts. [Nagios can poll the smokeping RRD's and generate much more elaborate notifications than smokeping can.] Buf if you want, you can write all the scripting needed to accomplish any alert task yourself. It might not be easy and/or quick, but it's possible.<br>
<br>
-Greg<br>
<br>
</span><table>
<tr>
<td width=2 bgcolor= #0000ff><br>
</td>
<td><br><br>
<span style=" font-family:'calibri'; font-size: 11pt;">Hope someone can help!<br>
<br>
Regards Agrippus<br>
<br>
</td>
</tr>
</table>
<br></body></html>