Unix/Linux Go Back    


Infrastructure Monitoring Forum for Nagios, Zabbix and other network monitoring and management tools.

System Activity Report

Infrastructure Monitoring


Tags
infrastructure monitoring, monitoring, solaris, solaris 10, unix

Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 03-05-2014
tarun_nix tarun_nix is offline
Registered User
 
Join Date: Feb 2014
Last Activity: 30 July 2015, 1:33 PM EDT
Posts: 16
Thanks: 4
Thanked 1 Time in 1 Post
System Activity Report

Hi team ,

I am working on monitoring the solaris machine utilization continously with shell script without using any thirdparty software. I stuck at below commands which are limited to 1000000000 seconds.

CPU Utilization

Code:
sar -u 1 1000000000

Disk Utilization

Code:
sar -d 1 1000000000

Memory Utilization

Code:
sar -r 1 1000000000

Could you please help with continous monitoring commands to use for shell script to save them into file for future anlaysis.

Moderator's Comments:
System Activity Report Use code tags, see PM, thanks.

Last edited by zaxxon; 03-05-2014 at 07:35 AM..
Sponsored Links
    #2  
Old Unix and Linux 03-05-2014
Perderabo's Unix or Linux Image
Perderabo Perderabo is offline Forum Advisor  
Unix Daemon (Administrator Emeritus)
 
Join Date: Aug 2001
Last Activity: 26 February 2016, 12:31 PM EST
Location: Ashburn, Virginia
Posts: 9,931
Thanks: 64
Thanked 469 Times in 270 Posts
Ummm, 1,000,000,000 is a lot of seconds.

60 * 60 * 24 = 86,400 seconds per day.
86,400 * 365 = 31,536,000 seconds per year
so it's
315,536,000 seconds per decade

1,000,000,000 seconds is over 31 years. You should reboot your systems at least once a decade anyway.
Sponsored Links
    #3  
Old Unix and Linux 03-05-2014
Scott's Unix or Linux Image
Scott Scott is offline Forum Staff  
Administrator
 
Join Date: Jun 2009
Last Activity: 18 September 2017, 4:38 AM EDT
Location: Zürich
Posts: 8,627
Thanks: 347
Thanked 1,111 Times in 959 Posts
But if any server could survive three decades of non-interrupted use, it would be a Solaris server!
The Following User Says Thank You to Scott For This Useful Post:
DukeNuke2 (03-06-2014)
    #4  
Old Unix and Linux 03-06-2014
tarun_nix tarun_nix is offline
Registered User
 
Join Date: Feb 2014
Last Activity: 30 July 2015, 1:33 PM EDT
Posts: 16
Thanks: 4
Thanked 1 Time in 1 Post
Thank you Perderabo, seams this is the only option, I was thinking on other methods of collecting data.
Sponsored Links
    #5  
Old Unix and Linux 03-06-2014
Peasant's Unix or Linux Image
Peasant Peasant is offline Forum Advisor  
Registered User
 
Join Date: Mar 2011
Last Activity: 20 September 2017, 10:22 PM EDT
Posts: 1,070
Thanks: 31
Thanked 312 Times in 274 Posts
There are built in scripts for sar continus monitoring and rotation.

Check out output of crontab -l sys
It should look like (commented) :

Code:
# 20,40 8-17 * * 1-5 /usr/lib/sa/sa1
# 5 18 * * 1-5 /usr/lib/sa/sa2 -s 8:00 -e 18:01 -i 1200 -A

Be sure to prepare filesystem /var/adm/sa with sufficient space for 7 days (default rotation of sar files)

Check out the documentation for your desired intervals (minute, 5 minutes or alike)

Hope that helps
Regards
Peasant.
The Following User Says Thank You to Peasant For This Useful Post:
tarun_nix (03-07-2014)
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
system activity and information data ajayyadavmca Red Hat 1 04-24-2012 10:05 AM
Strange system activity no matter what I try justgoogleit UNIX for Dummies Questions & Answers 0 01-07-2012 12:54 AM
System activity gnanadurai_it AIX 3 11-18-2008 10:05 AM
mksysb and system activity samsa1mi UNIX for Dummies Questions & Answers 1 12-12-2006 04:32 PM



All times are GMT -4. The time now is 08:21 AM.