Sponsored Content
Full Discussion: system monitoring api
Top Forums Programming system monitoring api Post 302195521 by ramen_noodle on Thursday 15th of May 2008 09:36:38 AM
Old 05-15-2008
SYSSTAT , linux specific.
You can use sar equivalencies for other unixes.
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Monitoring system available time

Hi, I am new to Unix. I have an application which i need to monitor it for the available system time. If the system is down, i need to send an email notifying the downtime. Can someone provide a sample code or shell script to perform the above activity. Thanks (3 Replies)
Discussion started by: borncrazy
3 Replies

2. AIX

AIX system monitoring

Hi All, I am new to administration. can any one pls tell me how can i accomplish the follwoing task in AIX : 1.The overall %CPU used, the %CPU used of each CPU, the overall Real Memory in KB is used, the total Real Memory is installed in the host, the overall Virtual Memory in KB is... (2 Replies)
Discussion started by: panyam
2 Replies

3. HP-UX

API about system performance monitor

Hello, there. We want to write application on HP-UX to monitor system resource,such as CPU,Network Traffic Load,Disk Usage,etc. Anyone know these API functions except the system command ? thanks. (6 Replies)
Discussion started by: Frank2004
6 Replies

4. Programming

C/C++ System Programming API for AIX

Hi, I'm trying to locate the API information that is used for system programming on IBM's AIX operating system and other programming resources for AIX (language C/C++), I've had a look around the IBM website/Internet but I don't seem to be able to find anything that is up to date. This... (1 Reply)
Discussion started by: warlockuk
1 Replies

5. Infrastructure Monitoring

Monitoring and Alert System

hi, i serarch monitoring and alert system. when HDD and services are down. Send email and sms alert to me and help desk. but i don't find any program. Can you help me ? Thanks. (1 Reply)
Discussion started by: oulutas
1 Replies

6. Infrastructure Monitoring

Unix system monitoring

Hi, I am relatively new to Unix. Today I have attended an interview and they asked me below questions (a)How do you monitor Unix system? (b)How do you know every thing is working fine? (c)How do you know if there are any bottle necks? (d)How do you know if any process is hanging and draining... (5 Replies)
Discussion started by: krdblc
5 Replies

7. Shell Programming and Scripting

system monitoring script

Hi, Does anyone have an example system monitoring script to monitor drives, memory, etc. Need a good example. Cheers Walnutpony (4 Replies)
Discussion started by: walnutpony123
4 Replies

8. Shell Programming and Scripting

Need to run an API from a script and extract fields from output of API

Hi, I need to call an API (GetUsageDetails)from inside a shell script which takes an input argument acct_nbr. The output of API will be like : <usageAccum accumId="450" accumCaptn="PM_125" inclUnits="1410.00" inclUnitsUsed="744.00" shared="true" pooled="false" prorated="false"... (1 Reply)
Discussion started by: rkrish
1 Replies

9. Linux

Best Linux monitoring system

Hi all, I'm looking for the best tool to monitor the Linux system. I've found a lot of interesting tools searching the web but I didn't find one which can do all the requirments (like a one in all tool). I would prefer it to include a command line interface also. Thank you, Andreea (0 Replies)
Discussion started by: andreea9322
0 Replies
SADF(1) 							Linux User's Manual							   SADF(1)

NAME
sadf - Display data collected by sar in multiple formats. SYNOPSIS
sadf [ -C ] [ -d | -j | -p | -x ] [ -H ] [ -h ] [ -T | -t | -U ] [ -V ] [ -P { cpu [,...] | ALL } ] [ -s [ hh:mm:ss ] ] [ -e [ hh:mm:ss ] ] [ -- sar_options ] [ interval [ count ] ] [ datafile ] DESCRIPTION
The sadf command is used for displaying the contents of data files created by the sar(1) command. But unlike sar, sadf can write its data in many different formats (CSV, XML, etc.) The default format is one that can easily be handled by pattern processing commands like awk (see option -p). The sadf command extracts and writes to standard output records saved in the datafile file. This file must have been created by a version of sar which is compatible with that of sadf. If datafile is omitted, sadf uses the standard system activity file, the /var/log/sa/sadd file, where the dd parameter indicates the current day. The interval and count parameters are used to tell sadf to select count records at interval seconds apart. If the count parameter is not set, then all the records saved in the data file will be displayed. All the activity flags of sar may be entered on the command line to indicate which activities are to be reported. Before specifying them, put a pair of dashes (--) on the command line in order not to confuse the flags with those of sadf. Not specifying any flags selects only CPU activity. OPTIONS
-C Tell sadf to display comments present in file. -d Print the contents of the data file in a format that can easily be ingested by a relational database system. The output consists of fields separated by a semicolon. Each record contains the hostname of the host where the file was created, the interval value (or -1 if not applicable), the timestamp in a form easily acceptable by most databases, and additional semicolon separated data fields as specified by sar_options command line options. Note that timestamp output can be controlled by options -T, -t and -U. -e [ hh:mm:ss ] Set the ending time of the report, given in local time. The default ending time is 18:00:00. Hours must be given in 24-hour format. -H Display only the header of the report (when applicable). If no format has been specified, then the header of the data file is dis- played. -h When used in conjunction with option -d, all activities will be displayed horizontally on a single line. -j Print the contents of the data file in JSON (JavaScript Object Notation) format. Timestamps can be controlled by options -T and -t. -P { cpu [,...] | ALL } Tell sadf that processor dependent statistics are to be reported only for the specified processor or processors. Specifying the ALL keyword reports statistics for each individual processor, and globally for all processors. Note that processor 0 is the first pro- cessor. -p Print the contents of the data file in a format that can easily be handled by pattern processing commands like awk. The output con- sists of fields separated by a tab. Each record contains the hostname of the host where the file was created, the interval value (or -1 if not applicable), the timestamp, the device name (or - if not applicable), the field name and its value. Note that timestamp output can be controlled by options -T, -t and -U. -s [ hh:mm:ss ] Set the starting time of the data (given in local time), causing the sadf command to extract records time-tagged at, or following, the time specified. The default starting time is 08:00:00. Hours must be given in 24-hour format. -T Display timestamp in local time instead of UTC (Coordinated Universal Time). -t Display timestamp in the original local time of the data file creator instead of UTC (Coordinated Universal Time). -U Display timestamp (UTC - Coordinated Universal Time) in seconds from the epoch. -V Print version number then exit. -x Print the contents of the data file in XML format. Timestamps can be controlled by options -T and -t. The corresponding DTD (Docu- ment Type Definition) and XML Schema are included in the sysstat source package. They are also available at http://pagesperso- orange.fr/sebastien.godard/download.html ENVIRONMENT
The sadf command takes into account the following environment variable: S_TIME_DEF_TIME If this variable exists and its value is UTC then sadf will use UTC time instead of local time to determine the current daily data file located in the /var/log/sa directory. EXAMPLES
sadf -d /var/log/sa/sa21 -- -r -n DEV Extract memory, swap space and network statistics from system activity file 'sa21', and display them in a format that can be ingested by a database. sadf -p -P 1 Extract CPU statistics for processor 1 (the second processor) from current daily data file, and display them in a format that can easily be handled by a pattern processing command. FILES
/var/log/sa/sadd Indicate the daily data file, where the dd parameter is a number representing the day of the month. AUTHOR
Sebastien Godard (sysstat <at> orange.fr) SEE ALSO
sar(1), sadc(8), sa1(8), sa2(8) http://pagesperso-orange.fr/sebastien.godard/ Linux JULY 2012 SADF(1)
All times are GMT -4. The time now is 02:20 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy