|
From: Umair M. <uma...@gm...> - 2007-06-28 14:21:10
|
Hello,
my ITEM is returning a string that is too long to be contained in CHARACTER=
.
So, i am using TEXT to store the string returned.
When i write the following command in ACTION to send an email.
{{HOSTNAME}:{TRIGGER.KEY}.last(0)}
It returns only the first line of the String.
I tried changing the ITEM return value to LOG, so that it could support mor=
e
text.
But the email sent showed me trimmed string.
It did not show me the complete string.
Any cluses as how i can get the full string in the Email Body ?
--
Regards
Umair
On 6/26/07, Shawn Badger <sb...@cs...> wrote:
>
> You can place the measured value that caused the trigger in an an email
> by including it in your action. The action macro looks like this:
>
> {{HOSTNAME}:{TRIGGER.KEY}.last(0)}
>
>
> I think that is what you where looking for.
>
>
> On Tue, 2007-06-26 at 13:45 +0200, Umair Mehmood wrote:
> > Hello,
> > So now we have built in Macros for Triggers.
> >
> > Is there any macro for an Item ?
> > I need to embed the output (value) of an Item in the email.
> > The item is an external script and returns a string which has to be
> > send in the email notification.
> >
> > Any clue ??
> >
> > --
> > Regards
> > Umair
> >
> >
> >
> > On 6/26/07, Zach=E1r Bal=E1zs <za...@di...> wrote:
> > If you can use a script you can do everything!
> > ;)
> >
> > The answer is YES!
> >
> > Umair Mehmood =EDrta:
> > > Hello,
> > > While monitoring a file, can we return a String from the
> > file, instead
> > > of 1 or 0 ?
> > >
> > > --
> > > Regards
> > > Umair
> > >
> > >
> > >
> > > On 6/25/07, *Zach=E1r Bal=E1zs* < za...@di...
> > > <mailto:za...@di...>> wrote:
> > >
> > > I don't know, is there any key for this in the default
> > zabbix, but you
> > > can write your own key script for this, it is simple
> > (you should use
> > > grep)...
> > >
> > > Watch the Zabbix Manual and search this:
> > > 8.1 Extending Zabbix Agent
> > >
> > >
> > > regards,
> > > Bal=E1zs
> > >
> > >
> > > Umair Mehmood =EDrta:
> > > >
> > > > Hello,
> > > > Is it possible to perform intelligent search on the
> > text in Log
> > > Files
> > > > during monitoring them?
> > > >
> > > > I have been using
> > > > [b]vfs.file.regmatch[file,<regexp>][/b]
> > > > to perform the searching.
> > > >
> > > > But this search is not intelligent and returns the
> > first line
> > > > encountered(if matched) from the whole file.
> > > >
> > > > I need to do two things :
> > > >
> > > > 1). Check if the String is found or not
> > > > 2). Return some String instead of the 1 or 0.
> > > >
> > > >
> > > >
> > > >
> > >
> >
> ------------------------------------------------------------------------
> > > >
> > > >
> > >
> >
> -------------------------------------------------------------------------
> > > > 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/
> > > <http://sourceforge.net/powerbar/db2/>
> > > >
> > >
> >
> ------------------------------------------------------------------------
> > > >
> > > > _______________________________________________
> > > > Zabbix-users mailing list
> > > > Zab...@li...
> > > <mailto:Zab...@li...>
> > > >
> > https://lists.sourceforge.net/lists/listinfo/zabbix-users
> > > >
> > >
> > >
> > >
> >
> >
> >
> >
> -------------------------------------------------------------------------
> > 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/
> > _______________________________________________ Zabbix-users mailing
> list Zab...@li...
> https://lists.sourceforge.net/lists/listinfo/zabbix-users
>
>
|