Nagios Message Acknowledgment
Nedim Bicic
nedo72 at gmail.com
Thu Jun 21 22:40:14 CEST 2007
NO ERROR NICE !!!!!! Good job that was the mistake
i just dont know weather i should reload nagios or restart it for it to take
affect
On 6/21/07, Adam Kennedy <akennedy at cyberlinkint.com> wrote:
>
> Make sure there is no LF/CR (i.e. the enter button was hit) at the end
> of the line that has "Acknowledged By:" at the end.
>
>
> Nedim Bicic wrote:
> > This is the command i have in and that i keep getting the same errors
> > but "printf" that shouldnt matter because why would it work in general
> > for host down noticifations
> >
> > Here is the command i have in now:
> >
> > define command {
> > command_name host-notify-by-email
> > command_line /bin/echo -e "Subject:
> > $NOTIFICATIONTYPE$ alert - Host $HOSTNAME$ is $HOSTSTATE$\n\n*****
> > Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost:
> > $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo:
> > $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n\nAcknowledged By:
> > $HOSTACKAUTHOR$\nAcknowledgement: $HOSTACKCOMMENT$" | /bin/mail
> > $CONTACTEMAIL$
> > }
> >
> >
> > On 6/21/07, *Adam Kennedy* <akennedy at cyberlinkint.com
> > <mailto:akennedy at cyberlinkint.com>> wrote:
> >
> > What is the full config entry for that command? I fear you are not
> using
> > printf when you should be.
> >
> >
> > Nedim Bicic wrote:
> > > I wish it was that easy but its still not working regardless of
> > spelling
> > >
> > > I changed it of course but same error
> > >
> > > *> nagios -v /etc/nagios/nagios.cfg*
> > >
> > > Nagios 2.4
> > > Copyright (c) 1999-2006 Ethan Galstad (http://www.nagios.org)
> > > Last Modified: 05-31-2006
> > > License: GPL
> > >
> > > Reading configuration data...
> > >
> > > Error: Invalid command object directive
> > '$HOSTACKAUTHOR$\nAcknowledged:'.
> > > Error: Could not add object property in file
> > > '/etc/nagios/misccommands.cfg' on line 54.
> > >
> > >
> > >
> > > On 6/21/07, *Palle Jensen* <palleje at gmail.com
> > <mailto:palleje at gmail.com>
> > > <mailto:palleje at gmail.com <mailto:palleje at gmail.com>>> wrote:
> > >
> > > Could it be a spelling problem " Acnkowledgement:" -
> > Acknowledgement?
> > >
> > >
> > >
> > > > Error: Invalid command object directive
> > > '$HOSTACKAUTHOR$\nAcnkowledgement:'.
> > >
> > >
> > >
> > > - Palle
> > >
> > >
> >
> ------------------------------------------------------------------------
> >
> > >
> > > *From:* nagios-users-bounces at lists.sourceforge.net
> > <mailto:nagios-users-bounces at lists.sourceforge.net>
> > > <mailto:nagios-users-bounces at lists.sourceforge.net
> > <mailto:nagios-users-bounces at lists.sourceforge.net>>
> > > [mailto:nagios-users-bounces at lists.sourceforge.net
> > <mailto:nagios-users-bounces at lists.sourceforge.net>
> > > <mailto:nagios-users-bounces at lists.sourceforge.net
> > <mailto:nagios-users-bounces at lists.sourceforge.net>>] *On Behalf Of
> > > *Nedim Bicic
> > > *Sent:* Thursday, June 21, 2007 2:11 PM
> > > *To: * Jim Perrin
> > > *Cc:* nagios-users at lists.sourceforge.net
> > <mailto:nagios-users at lists.sourceforge.net>
> > > <mailto:nagios-users at lists.sourceforge.net
> > <mailto:nagios-users at lists.sourceforge.net>>
> > > *Subject:* Re: [Nagios-users] Nagios Message Acknowledgment
> > >
> > >
> > >
> > > Hey this is the error i get when i try to debug the above
> command
> > > for the acknowledgement does anyone know why or how to fix it
> > >
> > >
> > >
> > >
> > >
> > > this is what i get:
> > >
> > >
> > >
> > > ** nagios -v /etc/nagios/nagios.cfg**
> > >
> > > Nagios 2.4
> > > Copyright (c) 1999-2006 Ethan Galstad ( http://www.nagios.org
> > > < http://www.nagios.org/>)
> > > Last Modified: 05-31-2006
> > > License: GPL
> > >
> > > Reading configuration data...
> > >
> > > Error: Invalid command object directive
> > > '$HOSTACKAUTHOR$\nAcnkowledgement:'.
> > > Error: Could not add object property in file
> > > '/etc/nagios/misccommands.cfg' on line 54.
> > >
> > > ***> One or more problems was encountered while processing
> the
> > > config files...
> > >
> > > Check your configuration file(s) to ensure that they
> > contain valid
> > > directives and data defintions. If you are upgrading
> from a
> > > previous
> > > version of Nagios, you should be aware that some
> > > variables/definitions
> > > may have been removed or modified in this version. Make
> > sure
> > > to read
> > > the HTML documentation regarding the config files, as
> > well as the
> > > 'Whats New' section to find out what has changed.
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > On 6/21/07, *Jim Perrin* < jperrin at gmail.com
> > <mailto:jperrin at gmail.com>
> > > <mailto:jperrin at gmail.com <mailto:jperrin at gmail.com>>> wrote:
> > >
> > > On 6/21/07, Nedim Bicic <nedo72 at gmail.com
> > <mailto:nedo72 at gmail.com> <mailto: nedo72 at gmail.com
> > <mailto:nedo72 at gmail.com>>>
> > > wrote:
> > > > Do i have to stop nagios and restart it again for it to
> work
> > >
> > > Or reload nagios, yes. This is the case with most/all changes
> to
> > > config files. You have read the documentation, right?
> > >
> > > --
> > > During times of universal deceit, telling the truth becomes a
> > > revolutionary act.
> > > George Orwell
> > >
> > >
> > >
> > >
> > >
> > >
> >
> ------------------------------------------------------------------------
> >
> > >
> > >
> >
> -------------------------------------------------------------------------
> > > This SF.net email is sponsored by DB2 Express
> > > Download DB2 Express C - the FREE version of DB2 express and take
> > > control of your XML. No limits. Just data. Click to get it now.
> > > http://sourceforge.net/powerbar/db2/
> > >
> > >
> > >
> >
> ------------------------------------------------------------------------
> >
> > >
> > > _______________________________________________
> > > Nagios-users mailing list
> > > Nagios-users at lists.sourceforge.net
> > <mailto:Nagios-users at lists.sourceforge.net>
> > > https://lists.sourceforge.net/lists/listinfo/nagios-users
> > > ::: Please include Nagios version, plugin version (-v) and OS
> > when reporting any issue.
> > > ::: Messages without supporting info will risk being sent to
> > /dev/null
> >
> > --
> >
> > Adam Kennedy
> > Network Administrator
> > Cyberlink International
> > Phone: 888-293-3693 x4352
> > Fax: 888-293-3995
> >
> >
>
> --
>
> Adam Kennedy
> Network Administrator
> Cyberlink International
> Phone: 888-293-3693 x4352
> Fax: 888-293-3995
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070621/bed5734c/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list