Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...(I) have been able to get my problems solved from past messages and also new posts that other users have responded to promptly..."

Geography

Where in the world do Tek-Tips members come from?
LaysonS (TechnicalUser)
7 Apr 03 14:01
Under NT (TNG 2.4) CaiLogA2,
I currently trap a message EXTIDS :Error. From the NT Application log thats nice and easy.
Recently developers have requested that with the same error (EXTIDS : Error) that if the string for the same error contains the words (Server down system is inactive) then they need a seperate message.

So the question is I would like to have one message record and correlate on the message text.

Has anyone out there (Under TNG EM) managed to take &TEXT and extract a word/s into a usable variable to work with for correlation ?

I would like to say take the 17th word from &TEXT and pass this into SETENVSH <Var> <Var>.. then test this variable for a possible second variation on the event.

1 . SNMP trap Peter is happy
= Basic Alert
2 . SNMP trap Peter is happy not
= Different Alert

Where Peter is happy is the log watcher.

Same log watcher just traping on the additional text (not)rather than having multiple log watchers and Send/DelKeeps in the conlog.

Any advise .... ?

Regards, Steve.      
lza (Programmer)
8 Apr 03 8:49
Hello Steve

You can test each single word of the message.
The words are reference by a '&' and the word's number. The 17th word would be &17.
For example, if the message is "Peter is happy not", you can test the presence of "not" with the command 'TEST' and this syntax:
'&4' = 'not'
In the next step you can create a conlog message if the condition code is 0.

Let me know if you need more informations.

Regards
Leandro
LaysonS (TechnicalUser)
8 Apr 03 10:36
Leandro,

Many thanks for the advise, Works well.
I must admit that I got there anyway by hacking bits from JonnoGT's reply to Techpearl (Jan 21 03).

Thanks ... Steve.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close