Nagios Message Acknowledgment
Nedim Bicic
nedo72 at gmail.com
Fri Jun 22 00:49:39 CEST 2007
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
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?
On 6/21/07, Rev. Dr. Aaron M. Segura <aaron.segura at cabelas.com> wrote:
>
> Please always reply on-list.
>
> I would assume, then, that your contact isn't set up to use the
> 'host-notify-by-email' notification method...
>
> On Thu, 2007-06-21 at 17:04 -0400, Nedim Bicic wrote:
> > YEA that was it but.
> > For some reason when i acknowlege it, i dont see any comments or
> > authors name i have restarted nagios
> > this is what i get when a host goes down
> >
> > ***** Nagios *****
> >
> > Notification Type: PROBLEM
> >
> > Host: FCD155E
> >
> > State: DOWN
> >
> > Address: 10.31.6.111
> >
> > Info: CRITICAL - Plugin timed out after 10 seconds
> >
> > Date/Time: Thu Jun 21 16:45:49 EDT 2007
> >
> >
> > and this is what i get when i acknowledge the problem does anyone know
> > why it doesnt show up in here:
> >
> > ***** Nagios *****
> >
> > Notification Type: ACKNOWLEDGEMENT
> >
> > Host: FCD155E
> >
> > State: DOWN
> >
> > Address: 10.31.6.111
> >
> > Info: CRITICAL - Plugin timed out after 10 seconds
> >
> > Date/Time: Thu Jun 21 16:47:48 EDT 2007
> >
> >
> > any help would be
> >
> >
> >
> > On 6/21/07, Rev. Dr. Aaron M. Segura <aaron.segura at cabelas.com>
> > wrote:
> >
> > "Looks like you have a carriage return on line 53 when you
> > shouldn't.
> > Just a guess though. It helps if you post the config around
> > the line
> > that's being complained about.
> >
> > --
> > Marc"
> >
> > On Thu, 2007-06-21 at 15:58 -0400, 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> 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>> 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>] *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>
> > > > *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>> wrote:
> > > >
> > > > On 6/21/07, Nedim Bicic <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
> > > >
> > 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
> > >
> > >
> >
> -------------------------------------------------------------------------
> > > 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
> > 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
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070621/322bb9cf/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