Today (Saturday) We will make some minor tuning adjustments to MySQL.

You may experience 2 up to 10 seconds "glitch time" when we restart MySQL. We expect to make these adjustments around 1AM Eastern Daylight Saving Time (EDT) US.


Need script to monitor open file in Linux


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
Need script to monitor open file in Linux

Kindly advice with shell script to monitor open file in linux, if the open file count is greater then 5000 then send me an email..

command : lsof | wc -l
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Use script to monitor command output question? (like Linux watch)
nnnnnnine
Hi I want to write a script, help me to monitor command output. This script like Linux "watch" command. Below is my script: # cat watch.sh #!/bin/bash while true do clear echo "command: $*" ( $* ) sleep 2 done Then I run this script below... Shell Programming and Scripting
2
Shell Programming and Scripting
Need help on Linux script to monitor hard drive space
wgreg23
I'm new to Linux and have very limited experience with shell scripts in general. I am taking a class and I have to research online and come up with a shell script that monitors disk space. I also have to be able to explain it line by line. I've researched various sites and came across this shell...... Shell Programming and Scripting
3
Shell Programming and Scripting
script to monitor mount points on linux box
prakash.gr
Hi, the following shell script is not working on linux box sugeestions appreciated. FILE1=/tmp/check1.txt FILE2=/tmp/check2.txt df -k | awk '{if (NR != 1) print $5 $6}' > ${FILE1} awk -F"%" '{if ($1 > 90) print "Warning: Filesystem " $2 " over 90% threshold (" $1 "%)"}' ${FILE1} >...... Shell Programming and Scripting
7
Shell Programming and Scripting
Monitor open file handles used by a process
jakSun8
We have a process that is running out of file handles. Is there some command line way to determine this that we can include into a cron script? Please let me know JAK... Shell Programming and Scripting
3
Shell Programming and Scripting
OCF_HEARTBEAT_NFSSER(7) 					OCF resource agents					   OCF_HEARTBEAT_NFSSER(7)

NAME
ocf_heartbeat_nfsserver - Manages an NFS server
SYNOPSIS
nfsserver [start | stop | monitor | meta-data | validate-all]
DESCRIPTION
Nfsserver helps to manage the Linux nfs server as a failover-able resource in Linux-HA. It depends on Linux specific NFS implementation details, so is considered not portable to other platforms yet.
SUPPORTED PARAMETERS
nfs_init_script The default init script shipped with the Linux distro. The nfsserver resource agent offloads the start/stop/monitor work to the init script because the procedure to start/stop/monitor nfsserver varies on different Linux distro. (optional, string, default /etc/init.d/nfsserver) nfs_notify_cmd The tool to send out NSM reboot notification. Failover of nfsserver can be considered as rebooting to different machines. The nfsserver resource agent use this command to notify all clients about the happening of failover. (optional, string, default /usr/sbin/sm-notify) nfs_shared_infodir The nfsserver resource agent will save nfs related information in this specific directory. And this directory must be able to fail-over before nfsserver itself. (required, string, no default) nfs_ip The floating IP address used to access the nfs service (required, string, no default)
SUPPORTED ACTIONS
This resource agent supports the following actions (operations): start Starts the resource. Suggested minimum timeout: 40. stop Stops the resource. Suggested minimum timeout: 20s. monitor Performs a detailed status check. Suggested minimum timeout: 20s. Suggested interval: 10. meta-data Retrieves resource agent metadata (internal use only). Suggested minimum timeout: 5. validate-all Performs a validation of the resource configuration. Suggested minimum timeout: 30.
EXAMPLE
The following is an example configuration for a nfsserver resource using the crm(8) shell: primitive example_nfsserver ocf:heartbeat:nfsserver params nfs_shared_infodir=string nfs_ip=string op monitor depth="0" timeout="20s" interval="10"
SEE ALSO
http://www.linux-ha.org/wiki/nfsserver_(resource_agent)
AUTHOR
Linux-HA contributors (see the resource agent source for information about individual authors) resource-agents 1.0.3 07/05/2010 OCF_HEARTBEAT_NFSSER(7)

Featured Tech Videos