<div>This is the command i have in and  that i keep getting the same errors</div>
<div>but "printf" that shouldnt matter because why would it work in general for host down noticifations</div>
<div> </div>
<div>Here is the command i have in now:</div>
<div> </div>
<div>define command {<br>   command_name                   host-notify-by-email<br>   command_line                   /bin/echo -e "Subject:<br>$NOTIFICATIONTYPE$ alert - Host $HOSTNAME$ is $HOSTSTATE$\n\n*****<br>Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost:
<br>$HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo:<br>$HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n\nAcknowledged By:<br>$HOSTACKAUTHOR$\nAcknowledgement: $HOSTACKCOMMENT$" | /bin/mail<br>$CONTACTEMAIL$<br>
   }<br><br> </div>
<div><span class="gmail_quote">On 6/21/07, <b class="gmail_sendername">Adam Kennedy</b> <<a href="mailto:akennedy@cyberlinkint.com">akennedy@cyberlinkint.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">What is the full config entry for that command? I fear you are not using<br>printf when you should be.<br>
<br><br>Nedim Bicic wrote:<br>> I wish it was that easy but its still not working regardless of spelling<br>><br>> I changed it of course but same error<br>><br>> *> nagios -v /etc/nagios/nagios.cfg*<br>
><br>> Nagios 2.4<br>> Copyright (c) 1999-2006 Ethan Galstad (<a href="http://www.nagios.org">http://www.nagios.org</a>)<br>> Last Modified: 05-31-2006<br>> License: GPL<br>><br>> Reading configuration data...
<br>><br>> Error: Invalid command object directive '$HOSTACKAUTHOR$\nAcknowledged:'.<br>> Error: Could not add object property in file<br>> '/etc/nagios/misccommands.cfg' on line 54.<br>><br>
><br>><br>> On 6/21/07, *Palle Jensen* <<a href="mailto:palleje@gmail.com">palleje@gmail.com</a><br>> <mailto:<a href="mailto:palleje@gmail.com">palleje@gmail.com</a>>> wrote:<br>><br>>     Could it be a spelling problem " Acnkowledgement:"  - Acknowledgement?
<br>><br>><br>><br>>     >  Error: Invalid command object directive<br>>     '$HOSTACKAUTHOR$\nAcnkowledgement:'.<br>><br>><br>><br>>     - Palle<br>><br>>     ------------------------------------------------------------------------
<br>><br>>     *From:* <a href="mailto:nagios-users-bounces@lists.sourceforge.net">nagios-users-bounces@lists.sourceforge.net</a><br>>     <mailto:<a href="mailto:nagios-users-bounces@lists.sourceforge.net">nagios-users-bounces@lists.sourceforge.net
</a>><br>>     [mailto:<a href="mailto:nagios-users-bounces@lists.sourceforge.net">nagios-users-bounces@lists.sourceforge.net</a><br>>     <mailto:<a href="mailto:nagios-users-bounces@lists.sourceforge.net">nagios-users-bounces@lists.sourceforge.net
</a>>] *On Behalf Of<br>>     *Nedim Bicic<br>>     *Sent:* Thursday, June 21, 2007 2:11 PM<br>>     *To: * Jim Perrin<br>>     *Cc:* <a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net
</a><br>>     <mailto:<a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a>><br>>     *Subject:* Re: [Nagios-users] Nagios Message Acknowledgment<br>><br>><br>><br>
>     Hey this is the error i get when i try to debug the above command<br>>     for the acknowledgement does anyone know why or how to fix it<br>><br>><br>><br>><br>><br>>     this is what i get:<br>
><br>><br>><br>>     ** nagios -v /etc/nagios/nagios.cfg**<br>><br>>     Nagios 2.4<br>>     Copyright (c) 1999-2006 Ethan Galstad ( <a href="http://www.nagios.org">http://www.nagios.org</a><br>>     <
<a href="http://www.nagios.org/">http://www.nagios.org/</a>>)<br>>     Last Modified: 05-31-2006<br>>     License: GPL<br>><br>>     Reading configuration data...<br>><br>>     Error: Invalid command object directive
<br>>     '$HOSTACKAUTHOR$\nAcnkowledgement:'.<br>>     Error: Could not add object property in file<br>>     '/etc/nagios/misccommands.cfg' on line 54.<br>><br>>     ***> One or more problems was encountered while processing the
<br>>     config files...<br>><br>>          Check your configuration file(s) to ensure that they contain valid<br>>          directives and data defintions.  If you are upgrading from a<br>>     previous<br>
>          version of Nagios, you should be aware that some<br>>     variables/definitions<br>>          may have been removed or modified in this version.  Make sure<br>>     to read<br>>          the HTML documentation regarding the config files, as well as the
<br>>          'Whats New' section to find out what has changed.<br>><br>><br>><br>><br>><br>><br>><br>><br>>     On 6/21/07, *Jim Perrin* < <a href="mailto:jperrin@gmail.com">jperrin@gmail.com
</a><br>>     <mailto:<a href="mailto:jperrin@gmail.com">jperrin@gmail.com</a>>> wrote:<br>><br>>     On 6/21/07, Nedim Bicic <<a href="mailto:nedo72@gmail.com">nedo72@gmail.com</a> <mailto:<a href="mailto:nedo72@gmail.com">
nedo72@gmail.com</a>>><br>>     wrote:<br>>     >  Do i have to stop nagios and restart it again for it to work<br>><br>>     Or reload nagios, yes. This is the case with most/all changes to<br>>     config files. You have read the documentation, right?
<br>><br>>     --<br>>     During times of universal deceit, telling the truth becomes a<br>>     revolutionary act.<br>>     George Orwell<br>><br>><br>><br>><br>><br>> ------------------------------------------------------------------------
<br>><br>> -------------------------------------------------------------------------<br>> This SF.net email is sponsored by DB2 Express<br>> Download DB2 Express C - the FREE version of DB2 express and take<br>
> control of your XML. No limits. Just data. Click to get it now.<br>> <a href="http://sourceforge.net/powerbar/db2/">http://sourceforge.net/powerbar/db2/</a><br>><br>><br>> ------------------------------------------------------------------------
<br>><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><br>--<br><br>Adam Kennedy<br>Network Administrator<br>Cyberlink International<br>Phone: 888-293-3693 x4352<br>Fax: 888-293-3995<br></blockquote></div><br>