Sponsored Content
Operating Systems Linux [Solved] Setup Nmon on Suse Enterprise 11 Post 302574646 by hedkandi on Friday 18th of November 2011 02:53:59 AM
Old 11-18-2011
Hi pludi

Sorry about that, was kind of stressed out yesterday. Now lets see, script I was working on is this :

Code:
print "'date +%H:%M' -Performance Monitoring Report" > /dev/console
APPLDIR=/usr/local/bin/
 LOGDIR=/tmp/nmon-reports/
ls $LOGDIR | grep -v "nmon.Z" | grep -v "lost+found" | while read LINE;
do
compress -F $LOGDIR/$LINE
done
find $LOGDIR -name 'hostname'.'date +%d'.nmon.Z -exec rm {} \;
$APPLDIR/nmon -F $LOGDIR/'hostname'.'date +%d'.nmon -t -s $1 -c $2

but the error messages I get when i run this script are "print in line 1 and compress in line 6 are not found" but I know compress works because I just compressed a file this morning

I'm not very good at scripting so I guess I'll have to start afresh and set a cronjob for this Smilie

---------- Post updated at 11:53 PM ---------- Previous update was at 05:54 PM ----------

Ok, so this is what I did

I added a crontab entry which reads:

Code:
my-xftp0:/tmp/nmon_reports # crontab -l
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.XXXXrwrPNq installed on Fri Nov 18 14:42:49 2011)
# (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $)
0 0 * 11 * /usr/local/bin/nmon -fr "Performance Report:myxftp0" -s 300 -c 288 -m /tmp/nmon_reports
my-xftp0:/tmp/nmon_reports # date
Fri Nov 18 15:51:35 MYT 2011

my-xftp0:/tmp/nmon_reports # ll
total 132
-rw-r--r-- 1 root root 37231 Nov 18 14:37 my-xftp0_111118_1432.nmon
-rw-r--r-- 1 root root 36581 Nov 18 14:40 my-xftp0_111118_1440.nmon
-rw-r--r-- 1 root root 49898 Nov 18 15:48 my-xftp0_111118_1443.nmon
my-xftp0:/tmp/nmon_reports # date
Fri Nov 18 15:53:14 MYT 2011

this basically gathers all the basic info I need with the default values and then i use nmon analyzer to transform all that into human readable xls sheet:

..lol i pretty much answered my own questions...
This User Gave Thanks to hedkandi For This Post:
 

6 More Discussions You Might Find Interesting

1. SuSE

Setup Problem with SUSE Linux

I setup SUSE Linux 10. I downloaded from SUSE website. A DVD version. But I have a problem: Please click to see the screen shots Shot 1: (Problem is here, with Software) http://www.vernoos.net/shot-1.jpg Shot 2: http://www.vernoos.net/shot-2.jpg Shot 3:... (1 Reply)
Discussion started by: HASSELBLAD
1 Replies

2. SuSE

LKCD for suse linux enterprise server 8

Hi, I have installed LKCD using lkcdutils pakage through Yast install and remove applications. I have used enterprise server cd for installation. But I did not found any service of lkcd like /etc/init.d/boo.lkcd there. if we dont have this servers lkcd dump can not be saved at dump... (0 Replies)
Discussion started by: bryanabhay
0 Replies

3. UNIX Desktop Questions & Answers

Suse Linux enterprise 10 - booting problem

Hi, It was happened to close my laptop without proper shutdown due to power failure with USB device connected to it. (removed the USB after shut down) After this incident, I was not able to boot my suse linux OS. Initial study reveals that the device is not unmounted properly and shows... (2 Replies)
Discussion started by: Prabhu V
2 Replies

4. UNIX for Dummies Questions & Answers

SunOS5.10 and SuSe Linux Enterprise

OK, I've been thrown into an issue at my company where the security folks want password aging turned on for their limited NIS environment. The config is a SunOS5.10 (Solaris 10) Master with several slaves and several SuSe Enterprise Server 11 Clients. What I'm looking to understand is... (0 Replies)
Discussion started by: rzrv15
0 Replies

5. UNIX and Linux Applications

SUSE Linux Enterprise 12

Is there any SUSE enterprise 12 x86_32 version available? I have SUSE enterprise 12 x86_64 and I am unable to compile 32 programs in that. It looks to be that gcc compiler (32 bit) does not come with SUSE 12. How can I get that? Regards, George (6 Replies)
Discussion started by: George47
6 Replies

6. SuSE

Suse enterprise server installation help

hello All, good day to you. could you tell me is there any way I can download SUSE lunux enterprise server trail version ? I want to install sap application over it. thanks in advance. (1 Reply)
Discussion started by: Leaner_963
1 Replies
SETSID(1)                                                          User Commands                                                         SETSID(1)

NAME
setsid - run a program in a new session SYNOPSIS
setsid [options] program [arguments] DESCRIPTION
setsid runs a program in a new session. The command calls fork(2) if already a process group leader. Otherwise, it executes a program in the current process. OPTIONS
-c, --ctty Set the controlling terminal to the current one. -w, --wait Wait for the execution of the program to end, and return the exit value of this program as the return value of setsid. -V, --version Display version information and exit. -h, --help Display help text and exit. SEE ALSO
setsid(2) AUTHOR
Rick Sladkey <jrs@world.std.com> AVAILABILITY
The setsid command is part of the util-linux package and is available from https://www.kernel.org/pub/linux/utils/util-linux/. util-linux July 2014 SETSID(1)
All times are GMT -4. The time now is 07:21 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy