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
CRONTAB(1)						      General Commands Manual							CRONTAB(1)

NAME
crontab - maintain crontab files for individual users (ISC Cron V4.1) SYNOPSIS
crontab [-u user] file crontab [-u user] [-l | -r | -e] DESCRIPTION
Crontab is the program used to install, deinstall or list the tables used to drive the cron(8) daemon in ISC Cron. Each user can have their own crontab, and though these are files in /var, they are not intended to be edited directly. If the cron.allow file exists, then you must be listed therein in order to be allowed to use this command. If the cron.allow file does not exist but the cron.deny file does exist, then you must not be listed in the cron.deny file in order to use this command. If neither of these files exists, only the super user will be allowed to use this command. If the -u option is given, it specifies the name of the user whose crontab is to be tweaked. If this option is not given, crontab examines "your" crontab, i.e., the crontab of the person executing the command. Note that su(8) can confuse crontab and that if you are running inside of su(8) you should always use the -u option for safety's sake. The first form of this command is used to install a new crontab from some named file or standard input if the pseudo-filename ``-'' is given. The -l option causes the current crontab to be displayed on standard output. The -r option causes the current crontab to be removed. The -e option is used to edit the current crontab using the editor specified by the VISUAL or EDITOR environment variables. After you exit from the editor, the modified crontab will be installed automatically. SEE ALSO
crontab(5), cron(8) FILES
/etc/cron.allow /etc/cron.deny STANDARDS
The crontab command conforms to IEEE Std1003.2-1992 (``POSIX''). This new command syntax differs from previous versions of Vixie Cron, as well as from the classic SVR3 syntax. DIAGNOSTICS
A fairly informative usage message appears if you run it with a bad command line. AUTHOR
Paul Vixie <vixie@isc.org> 4th Berkeley Distribution 29 December 1993 CRONTAB(1)
All times are GMT -4. The time now is 12:51 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy