<div>It is setup because i get email notifications as always just not what i want it to send now with author and comments withing the notifications</div>
<div> </div>
<div>I have email working as we speak and i have external command abilty but i dont know why i dont see the message in the email acknowledgemnt notifcation?<br><br> </div>
<div><span class="gmail_quote">On 6/21/07, <b class="gmail_sendername">Rev. Dr. Aaron M. Segura</b> <<a href="mailto:aaron.segura@cabelas.com">aaron.segura@cabelas.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Please always reply on-list.<br><br>I would assume, then, that your contact isn't set up to use the<br>
'host-notify-by-email' notification method...<br><br>On Thu, 2007-06-21 at 17:04 -0400, Nedim Bicic wrote:<br>> YEA that was it but.<br>> For some reason when i acknowlege it, i dont see any comments or<br>> authors name i have restarted nagios
<br>> this is what i get when a host goes down<br>><br>> ***** Nagios *****<br>><br>> Notification Type: PROBLEM<br>><br>> Host: FCD155E<br>><br>> State: DOWN<br>><br>> Address: <a href="http://10.31.6.111">
10.31.6.111</a><br>><br>> Info: CRITICAL - Plugin timed out after 10 seconds<br>><br>> Date/Time: Thu Jun 21 16:45:49 EDT 2007<br>><br>><br>> and this is what i get when i acknowledge the problem does anyone know
<br>> why it doesnt show up in here:<br>><br>> ***** Nagios *****<br>><br>> Notification Type: ACKNOWLEDGEMENT<br>><br>> Host: FCD155E<br>><br>> State: DOWN<br>><br>> Address: <a href="http://10.31.6.111">
10.31.6.111</a><br>><br>> Info: CRITICAL - Plugin timed out after 10 seconds<br>><br>> Date/Time: Thu Jun 21 16:47:48 EDT 2007<br>><br>><br>> any help would be<br>><br>><br>><br>> On 6/21/07, Rev. Dr. Aaron M. Segura <
<a href="mailto:aaron.segura@cabelas.com">aaron.segura@cabelas.com</a>><br>> wrote:<br>><br>> "Looks like you have a carriage return on line 53 when you<br>> shouldn't.<br>> Just a guess though. It helps if you post the config around
<br>> the line<br>> that's being complained about.<br>><br>> --<br>> Marc"<br>><br>> On Thu, 2007-06-21 at 15:58 -0400, Nedim Bicic wrote:<br>> > This is the command i have in and that i keep getting the
<br>> same errors<br>> > but "printf" that shouldnt matter because why would it work<br>> in general<br>> > for host down noticifations<br>> ><br>> > Here is the command i have in now:
<br>> ><br>> > define command {<br>> > command_name host-notify-by-email<br>> > command_line /bin/echo -e "Subject:<br>
> > $NOTIFICATIONTYPE$ alert - Host $HOSTNAME$ is $HOSTSTATE$\n<br>> \n*****<br>> > Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost:<br>> > $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS
<br>> $\nInfo:<br>> > $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n\nAcknowledged<br>> By:<br>> > $HOSTACKAUTHOR$\nAcknowledgement: $HOSTACKCOMMENT$"<br>> | /bin/mail
<br>> > $CONTACTEMAIL$<br>> > }<br>> ><br>> ><br>> > On 6/21/07, Adam Kennedy <<a href="mailto:akennedy@cyberlinkint.com">akennedy@cyberlinkint.com
</a>> wrote:<br>> > What is the full config entry for that command? I<br>> fear you are<br>> > 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<br>> regardless<br>> > 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<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<br>> > $\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 "
<br>> Acnkowledgement:" -<br>> > Acknowledgement?<br>> > ><br>> > ><br>> > ><br>> > > > Error: Invalid command object directive
<br>> > > '$HOSTACKAUTHOR$\nAcnkowledgement:'.<br>> > ><br>> > ><br>> > ><br>> > > - Palle
<br>> > ><br>> > ><br>> ><br>> ------------------------------------------------------------------------<br>> > ><br>> > > *From:*
<br>> <a href="mailto:nagios-users-bounces@lists.sourceforge.net">nagios-users-bounces@lists.sourceforge.net</a><br>> > ><br>> <mailto:<a href="mailto:nagios-users-bounces@lists.sourceforge.net">
nagios-users-bounces@lists.sourceforge.net</a>><br>> > ><br>> [mailto:<a href="mailto:nagios-users-bounces@lists.sourceforge.net">nagios-users-bounces@lists.sourceforge.net</a><br>> > > <mailto:
<br>> <a href="mailto:nagios-users-bounces@lists.sourceforge.net">nagios-users-bounces@lists.sourceforge.net</a>>] *On<br>> > 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
<br>> > Acknowledgment<br>> > ><br>> > ><br>> > ><br>> > > Hey this is the error i get when i try to
<br>> debug the<br>> > above command<br>> > > for the acknowledgement does anyone know why<br>> or how to<br>> > 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<br>> > ( <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<br>> while
<br>> > processing the<br>> > > config files...<br>> > ><br>> > > Check your configuration file(s) to<br>> ensure that
<br>> > they contain valid<br>> > > directives and data defintions. If you<br>> are<br>> > upgrading from a<br>> > > previous
<br>> > > version of Nagios, you should be aware<br>> that some<br>> > > variables/definitions<br>> > > may have been removed or modified in this
<br>> > version. Make sure<br>> > > to read<br>> > > the HTML documentation regarding the<br>> config files,<br>> > as well as the
<br>> > > 'Whats New' section to find out what has<br>> 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><br>> > <mailto:<a href="mailto:nedo72@gmail.com">nedo72@gmail.com</a>>><br>> > > wrote:<br>> > > > Do i have to stop nagios and restart it
<br>> again for it<br>> > to work<br>> > ><br>> > > Or reload nagios, yes. This is the case with<br>> most/all<br>> > changes to
<br>> > > config files. You have read the documentation,<br>> right?<br>> > ><br>> > > --<br>> > > During times of universal deceit, telling the
<br>> truth<br>> > becomes a<br>> > > revolutionary act.<br>> > > George Orwell<br>> > ><br>> > >
<br>> > ><br>> > ><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<br>> express and<br>> > take<br>> > > control of your XML. No limits. Just data. Click
<br>> to get it<br>> > now.<br>> > > <a href="http://sourceforge.net/powerbar/db2/">http://sourceforge.net/powerbar/db2/</a><br>> > ><br>> > >
<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>> > ><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
<br>> (-v) and<br>> > OS when reporting any issue.<br>> > > ::: Messages without supporting info will risk<br>> being sent<br>> > 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>> ><br>> ><br>> -------------------------------------------------------------------------
<br>> > This SF.net email is sponsored by DB2 Express<br>> > Download DB2 Express C - the FREE version of DB2 express and<br>> take<br>> > control of your XML. No limits. Just data. Click to get it
<br>> now.<br>> > <a href="http://sourceforge.net/powerbar/db2/">http://sourceforge.net/powerbar/db2/</a><br>> > _______________________________________________ Nagios-users<br>> mailing list
<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<br>> reporting any issue. ::: Messages without supporting info will<br>> risk being sent to /dev/null<br>><br>
</blockquote></div><br>