• Add a Comment
  • Edit
  • More Actions v
  • Quarantine this Entry

Comments (12)

1 gulfsoft commented Permalink

Awesome as always, John, and EXTREMELY helpful. Thanks for all of your support!

2 NoelLewis commented Permalink

Nice pic of the kitties...

3 jalvord commented Permalink

Thanks Frank. I am usually just writing up solutions to issues that customers have brought up in PMRs. What is written here is a bit more polished and thoughtful. Often my testing for the blog requires a more general scheme.

 
I am working to get ahead of the game. At this week I have two un-posted entries and a third in the thinking stage.

4 ina00057 commented Permalink

As always, I am amazed with your work. when I grow up (I'm not saying that you are "elder" ) I want to be like you. -))))

5 jalvord commented Permalink

A reminder... the third sit needs revision so the sysload15 attributes are sent. john

6 rzr80 commented Permalink

Any reason this would not be a good solution on AIX, Solaris or HPUX? I am trying it on AIX now and I ran into a minor problem: the "echo" command has no options! I changed the first part of situation 2 as follows:
cd $CANDLEHOME/tmp;(echo "&{System.Load_Average_15_Min} " | awk '{printf $1 " "}'; (cat ponline.txt 2>/dev/null || echo 1)) | . . . .

 
Note also the 2>/dev/null instead of 2>nul or 2>null

7 jalvord commented Permalink

Good points, I will update the examples.

 
You need to be a bit careful with awk. For example in Solaris you must use nawk {new awk] because the awk binary is busted - at least on the systems I tested with,
 
John Alvord

8 jalvord commented Permalink

I reworked the example action command so the the echo -n option was not needed. It is not present in some platforms. Also added a comment about sometimes needing to use "nawk" or new awk on some platforms.

 
John Alvord

9 rzr80 commented Permalink

One potential 'problem' is that the reflex automation of part2 generates a couple of lines of output in the agent's LG0 log file every 5 minutes. Unlike the RAS1 logs, this file is allowed to grow indefinitely... I suppose it could get pretty big.

10 rzr80 commented Permalink

One option to reduce the overhead of _part2 and reduce the message flow to .LG0 is to change the predicate or _part2 from (System Load Last 15 Minutes >= 0.00) to > 4.00 (or the value used in "if (load/100 > cpu*4.00)" if not 4.00).

Add a Comment Add a Comment