[Solved] Setup Nmon on Suse Enterprise 11


 
Thread Tools Search this Thread
Operating Systems Linux [Solved] Setup Nmon on Suse Enterprise 11
# 1  
Old 11-17-2011
[Solved] Setup Nmon on Suse Enterprise 11

Ok, so my previous query has had more views than response (yeah, thanks alot for that)

I am trying to figure out how to run nmon on suse linux but the script I had googled only works on AIX.

I stored the binary file on (I had downloaded it directly from Nigel's website)

Code:
my-xftp0:/var/log # ls -lrt /usr/local/bin
total 8
-rwxrwxr-x 1 root root 354 Nov 17 17:21 nmon

And the logs are meant to go to a separate dir in /tmp (not the best place to store it, I know but I just want to test it!)

Nmon should run daily for a month...I could use some serious help here. Damn google keeps coming up with AIX scripts

Moderator's Comments:
Mod Comment Moved to Linux since it's not a SuSE specific question

Last edited by pludi; 11-17-2011 at 07:53 AM..
# 2  
Old 11-17-2011
Quote:
Originally Posted by hedkandi
Ok, so my previous query has had more views than response (yeah, thanks alot for that)
Of course. Most people will read your question, but not everyone might be able to help you with that. No need to get snarky about that, especially in a forum run by volunteers

Quote:
Originally Posted by hedkandi
I am trying to figure out how to run nmon on suse linux but the script I had googled only works on AIX.
Why? Does the script require special tools only found on AIX? Any hard evidence that it's only runable on AIX, and no amount of adapting would make it run on Linux? Have you tried adapting it?
# 3  
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:
# 4  
Old 11-18-2011
print really can't be found on most Linux machines. An alternative would be rewriting that line to use printf or echo. Same with compress, the replacement would be gzip or bzip2.

And that you managed to answer your own question is great!
This User Gave Thanks to pludi For This Post:
# 5  
Old 11-20-2011
Hi pludi

You can close this thread now, thanks for the advise, I might implement the script in future to purge the files at the end of every month. For now, the cron is running alright and I have my daily reports generated fine:

Code:
my-xftp0:/tmp/nmon_reports # ls -lrt
total 1184
-rw-r--r-- 1 root root  36581 Nov 18 14:40 my-xftp0_111118_1440.nmon
-rw-r--r-- 1 root root 329412 Nov 19 14:38 my-xftp0_111118_1443.nmon
-rw-r--r-- 1 root root 329305 Nov 19 23:55 my-xftp0_111119_0000.nmon
-rw-r--r-- 1 root root 329466 Nov 20 23:55 my-xftp0_111120_0000.nmon
-rw-r--r-- 1 root root 163004 Nov 21 10:20 my-xftp0_111121_0000.nmon
my-xftp0:/tmp/nmon_reports # date
Mon Nov 21 10:30:32 MYT 2011

Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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
Login or Register to Ask a Question