Hi,<br>I have two distinct suggestions out this problem.<br><br>First, you could define a bash/perl/c or any other language basis (embedded perl or c is suggested for speed issues - if you have a less notification frequency of 10 notifs in a minute) script. Then, certainly, you are passing the mobile number as a parametre. So you could select a text inside that script. At last that script will be the trigger for SMS. So notification scipt will be your new bash (or other) script.
<br><br>Second, you could define "n" (which is the number of different texts) different SMS notification commands in (etc/misccommands in old versions, and etc/command.etc in nagios 2.x). But you have to say that, this person will be notified with this command for each.
<br><br>I hope it is a bit picturable. If you have questions, I can be more clear on this.<br><br>Dincer<br><br><div><span class="gmail_quote">2007/3/15, Mihai Tanasescu <<a href="mailto:mihai@duras.ro">mihai@duras.ro</a>
>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello,<br><br><br>I've just installed Nagios on a machine for the first time and have read
<br>a little throught the docs and I'm now starting to get the hang of it.<br><br> From what I've read, for check_commands I can define a way to pass<br>arguments at runtime by using "command<br>parameter_1!parameter2....!parameter_n" if I state $ARG1$...$ARGn$ in
<br>the definition part.<br><br>Is there anything like that for the notification commands ?<br><br>What I'd like to do is send personalized notifications based on the<br>contact specified in my configuration.<br>I'm trying to call gammu/gnokii to send an SMS with different texts
<br>depending on who's being notified and I'd like to avoid if possible the<br>definition of each and every particular notification command.<br><br>Is there any way to do this (something like specify in the notification
<br>command just script-name "Custom Text" "mobile number" ) ?<br>Or do I have to create specific entries for each one of them ?<br><br><br><br><br>-------------------------------------------------------------------------
<br>Take Surveys. Earn Cash. Influence the Future of IT<br>Join SourceForge.net's Techsay panel and you'll get the chance to share your<br>opinions on IT & business topics through brief surveys-and earn cash<br>
<a href="http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV">http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV</a><br>_______________________________________________
<br>Nagios-users mailing list<br><a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users
</a><br>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>::: Messages without supporting info will risk being sent to /dev/null<br></blockquote></div><br>