Re: Take Action log

John Alvord <jalvord-r/[email protected]> Wed, 14 Aug 2013 12:56:04 -0700
Newsgroups gmane.comp.sysutils.tivoli.general,gmane.comp.sysutils.tivoli.tme10
Message-ID <OFD1518D86.4A0A9974-ON88257BC7.006C5C44-88257BC7.006D7FF0@us.ibm.com>
All the status 0 means is that the command was successfully started - it 
does not reflect the exit code of the command.

Non-zero status - meaning depends on platform. I have seen ones that meant 
program exception or crash, others that meant unable to find the file, 
stuff like that.

Getting the exit code in a Linux/Unix environment is pretty easy

script.sh  || echo $? >>/tmp/exitcode.log

An actual missing command... haven't run into that one before.

Regards, 
______________________________________________


John Alvord
Advisory Engineer
IBM Tivoli Monitoring 6 Platform
Customer Support 
Office: 1-720-396-2788 
Mobile: none 
jalvord-r/[email protected]

Cloud & Smarter Infrastructure
IBM Support Portal
Open a New Service Request
Update your PMR via Email
Escalate your PMR
My Blog: Wonderful World of Situations
Secure upload to ECUREP







From:   Annamalai Arunachalam <[email protected]>
To:     "Discussion list for Tivoli product and Tivoli Ready products." 
<[email protected]>, 
Cc:     "Discussion list for Tivoli product and Tivoli Ready products." 
<[email protected]>
Date:   08/14/2013 12:31 PM
Subject:        Re: [TME10] Take Action log
Sent by:        [email protected]



I have take action configured for a klo log monitoring situation. 
Sometimes it doesnt run the script on the agent though i can see event in 
TEPS. In LGO/1 log, i dont see any entries but the situation status is 
open in tacmd listsit.

For the sucessful execution I can see in LG0/LG1 logs <Date> Executed 
<script.sh> with status 0. Is there way to know return code details?

Is there any log to know, why situation didnt execute action? Why it 
failed?

_ms_time.log has the situation details, but i cudnt identify which lines 
refer take action. Can you help?

Thanks,
Annamalai 

On 14 Aug, 2013, at 12:04 AM, John Alvord <jalvord-r/[email protected]> wrote:

The operations log 

Agent:  *.LG0 
Linux/Unix:  hostname_ms_time.log 
Windows: kdsmain.log 

will contain a record of action commands. Basically whether they started 
OK [status 0] or not. The command text message is limited size so there is 
truncation possible. 

I often use it during development to make sure the action command ran or 
not. 

There is nothing that is "Audit worthy" or a historical records etc.

Regards, 
______________________________________________ 


John Alvord
Advisory Engineer
IBM Tivoli Monitoring 6 Platform
Customer Support 
Office: 1-720-396-2788 
Mobile: none 
jalvord-r/[email protected]

Cloud & Smarter Infrastructure 
IBM Support Portal
Open a New Service Request
Update your PMR via Email
Escalate your PMR
My Blog: Wonderful World of Situations
Secure upload to ECUREP 








From:        Annamalai Arunachalam <[email protected]> 
To:        "Discussion list for Tivoli product and Tivoli Ready products." 
<[email protected]>, 
Date:        08/13/2013 08:59 AM 
Subject:        [TME10] Take Action log 
Sent by:        [email protected] 



Hi 

I have a situation configured with take action. It will call a script on 
the agent.

Is there any log in TEMS or in Agent to know take action script has been 
called or not?

I can see the situation status as open, but cannot confirm it evoked the 
action script on agent. Is there a way to confirm?

Thanks,
Annamalai 

_______________________________________________
TME10 mailing list
[email protected]
Unsubscribe:[email protected]

_______________________________________________
TME10 mailing list
[email protected]
Unsubscribe:[email protected]
_______________________________________________
TME10 mailing list
[email protected]
Unsubscribe:[email protected]

_______________________________________________
TME10 mailing list
[email protected]
Unsubscribe:[email protected]