Sponsored Content
Homework and Emergencies Emergency UNIX and Linux Support Monitoring progress of a process in Linux server Post 302897460 by MarkSeger on Monday 14th of April 2014 09:02:35 AM
Old 04-14-2014
kunwar - to be clear, collectl CAN get a lot of data from /proc but as I told you earlier, not all of that information is available by process in /proc, at least not in /proc/pid where collectl gets its data.

Specifically I'm talking about your big 3: open files, system calls and process wait states. Collectl DOES report the number of system calls as reported in /proc/pid/io, but those are only for read/write I/O calls.

There is some process level info on waiting but don't think it's extensive. Furthermore collectl gets most data from stat and io, and a little from status. I've got eliminating reading status on my todo list since reading all this data for nearly 1000 processes can get pretty expensive and I don't want to read more data, I want to read less. My overarching philosophy for collectl is first and foremost 'do no harm' as far as performance goes.

-mark
 

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Linux Server Monitoring Script !!!

I am the Linux Admin in my organisation and need to write a shell script which will monitor the machine statistics every day and will send a consolidated report to me on my email id / will display the output into a file. Does anyone have such kind of script fulfilling this kind of purpose? ... (4 Replies)
Discussion started by: csaha
4 Replies

2. Shell Programming and Scripting

process monitoring

hi all, i would like to write the shell script to monitoring the processing, but if i passing the parameter the number of process is incorrect how to slove it? many thx got the correct number of process as following script: ===========================================================... (3 Replies)
Discussion started by: eric_wong_ch
3 Replies

3. Shell Programming and Scripting

How to show progress bar for a running process

Hi, I have 2 shell scripts ,one for taking hot backup of oracle Database while other is for progress bar. But I don't have an idea hoe should I incorporate the shell script of progress bar in my hot backup code . Please help. My shell script for hot backup is as below: ... (0 Replies)
Discussion started by: dwiravi
0 Replies

4. Shell Programming and Scripting

Error in script to automate the daily monitoring process of UNIX server and it's proc

hi friends, I am trying to automate the daily monitoring process of UNIX server and it's processes. the script are below i executed the above script using ksh -x monitortest1.sh in root login . It shows error at some lines . 1. i logged in using root ,but it... (8 Replies)
Discussion started by: rdhaprakasam
8 Replies

5. Shell Programming and Scripting

Monitoring awk script progress

Is there a way to have awk output its regular output to a file and some other stuff to a log file to monitor progress? ie: print first field of a file and for every 100000 lines dealt with, print time in file.log (2 Replies)
Discussion started by: FrancoisCN
2 Replies

6. Red Hat

HELP - Resource/Performance Monitoring Script - Red Hat Enterprise Linux Server

Hi all, ------------------------- Linux OS Version/Release: ------------------------- Red Hat Enterprise Linux Server release 5.5 (Tikanga) Linux <hostname> 2.6.18-194.8.1.el5 #1 SMP Wed Jun 23 10:52:51 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux I have a server that hosts 30+ Oracle... (1 Reply)
Discussion started by: newbie_01
1 Replies

7. Red Hat

RHEL Linux process activity monitoring tool from windows 7 system

I have 2 RHEL 5.9 system where customized applications are running. These 2 servers are with in a network (LAN) with each other.One application in say Server 1 can talk to another application in server 2 and vice versa. The applications are exchanging data among each other. Recently I am... (0 Replies)
Discussion started by: Anjan Ganguly
0 Replies

8. Shell Programming and Scripting

Monitoring processes in parallel and process log file after process exits

I am writing a script to kick off a process to gather logs on multiple nodes in parallel using "&". These processes create individual log files. Which I would like to filter and convert in CSV format after they are complete. I am facing following issues: 1. Monitor all Processes parallelly.... (5 Replies)
Discussion started by: shunya
5 Replies
Monitoring::Availability(3pm)				User Contributed Perl Documentation			     Monitoring::Availability(3pm)

NAME
Monitoring::Availability - Calculate Availability Data from Nagios / Icinga and Shinken Logfiles. SYNOPSIS
use Monitoring::Availability; my $ma = Monitoring::Availability->new(); DESCRIPTION
This module calculates the availability for hosts/server from given logfiles. The Logfileformat is Nagios/Icinga only. REPOSITORY
Git: http://github.com/sni/Monitoring-Availability CONSTRUCTOR
new ( [ARGS] ) Creates an "Monitoring::Availability" object. "new" takes at least the logs parameter. Arguments are in key-value pairs. rpttimeperiod report timeperiod. defines a timeperiod for this report. Will use 24x7 if not specified. assumeinitialstates Assume the initial host/service state if none is found, default: yes assumestateretention Assume state retention, default: yes assumestatesduringnotrunning Assume state during times when the monitoring process is not running, default: yes includesoftstates Include soft states in the calculation. Only hard states are used otherwise, default: no initialassumedhoststate Assumed host state if none is found, default: unspecified valid options are: unspecified, current, up, down and unreachable initialassumedservicestate Assumed service state if none is found, default: unspecified valid options are: unspecified, current, ok, warning, unknown and critical backtrack Go back this amount of days to find initial states, default: 4 showscheduleddowntime Include downtimes in calculation, default: yes timeformat Time format for the log output, default: %s verbose verbose mode breakdown Breakdown availability into 'months', 'weeks', 'days', 'none' adds additional 'breakdown' hash to each result with broken down results METHODS
calculate calculate() Calculate the availability start Timestamp of start end Timestamp of end log_string String containing the logs log_file File containing the logs log_dir Directory containing *.log files log_livestatus Array with logs from a livestatus query a sample query could be: selectall_arrayref(GET logs... Columns: time type options, {Slice => 1}) log_iterator Iterator object for logentry objects. For example a L<MongoDB::Cursor> object. hosts array with hostnames for which the report should be generated services array with hashes of services for which the report should be generated. The array should look like this: [{host => 'hostname', service => 'description'}, ...] initial_states if you use the "current" option for initialassumedservicestate or initialassumedhoststate you have to provide the current states with a hash like this: { hosts => { 'hostname' => 'ok', ... }, services => { 'hostname' => { 'description' => 'warning', ... } } } valid values for hosts are: up, down and unreachable valid values for services are: ok, warning, unknown and critical get_condensed_logs get_condensed_logs() returns an array of hashes with the condensed log used for this report get_full_logs get_full_logs() returns an array of hashes with the full log used for this report BUGS
Please report any bugs or feature requests to http://github.com/sni/Monitoring-Availability/issues <http://github.com/sni/Monitoring- Availability/issues>. DEBUGING
You may enable the debug mode by setting MONITORING_AVAILABILITY_DEBUG environment variable. This will create a logfile: /tmp/Monitoring-Availability-Debug.log which gets overwritten with every calculation. You will need the Log4Perl module to create this logfile. SEE ALSO
You can also look for information at: o Search CPAN http://search.cpan.org/dist/Monitoring-Availability/ <http://search.cpan.org/dist/Monitoring-Availability/> o Github http://github.com/sni/Monitoring-Availability <http://github.com/sni/Monitoring-Availability> AUTHOR
Sven Nierlein, <nierlein@cpan.org> COPYRIGHT AND LICENSE
Copyright (C) 2010 by Sven Nierlein This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2012-06-21 Monitoring::Availability(3pm)
All times are GMT -4. The time now is 08:39 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy