03-21-2005
man crontab ....
First , to start with, run the command at shell prompt
like du , df ... etc to test.
once you are comfortbale with output of above commands,
put those commands in crontab.
so you have to understand the following commands to fulfill your task.
man du
man df
man crontab
All the best ...
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
i have a unix batch written in c, dealing with really time-consuming
database operations
i want to write a ksh script to monitor its performance.
which items i should monitor?
do you have any suggestions?
1)cputime
2)swap area
3)pmem
4)
5)
what else? (1 Reply)
Discussion started by: gfhgfnhhn
1 Replies
2. Solaris
Hi,
I want to write a script that will monitor cpu,mem usage and disk usage for entire day and data will be redirected to file, (4 Replies)
Discussion started by: manoj.solaris
4 Replies
3. Shell Programming and Scripting
Dear All,
I am new to Shell Programming, but I need a script which will monitor the different IP's in the live logs.
Condition:-
The script will monitor the logs continously and should print only those IP's which exists more than 3 times per day.
Please do help me.
Thanks and... (1 Reply)
Discussion started by: akhtar.bhat
1 Replies
4. Shell Programming and Scripting
Could anyone please help?
I have written a small program that's actually working fine for me and extracting all the details I required. What code does is, it goes to all archivelog directories and see if archivelog backup was failed or successful
<<CODE>>
... (2 Replies)
Discussion started by: anjum.suri
2 Replies
5. Shell Programming and Scripting
Hi Gurus,
Currently I am learning UNIX through online forums and unix blogs. I have the below requirement.
I need to write a script to monitor server processes. For example, there are 3 processes currently running on the server.(java, pmrepagent, pmserver). If any of the process goes down,... (2 Replies)
Discussion started by: svajhala
2 Replies
6. Shell Programming and Scripting
Hi,
I want to write script that monitors particular ports in a server.
I completed the script but.... If the server is restarted i need manually start the script..
Is there any way i can make the script start by it self after the server reboot........
Thanks,
Firestar (4 Replies)
Discussion started by: firestar
4 Replies
7. Red Hat
Hi,
I ned to monitor the memory for the red-hat machine,when its reaches a threshold value like 2GB then a mail should be sent as soon as it finds the the value is met
can you suggest me which is the best way to do this? (2 Replies)
Discussion started by: sriniv666
2 Replies
8. UNIX for Advanced & Expert Users
Hi
I do a very simple monitoring of our OpenLDAP (runs in cronjob and generate alerts if unsuccessfull)
$ ldapsearch -h hostname.domain -D "cn=monitor_user,ou=People,dc=organisation" -w "password" -b "dc=organisation" -x "(&(cn=monitor_user)(ou=People))" dn | grep -v version
dn:... (4 Replies)
Discussion started by: slashdotweenie
4 Replies
9. Shell Programming and Scripting
Hello All,
I have written a script which will grep for error codes in a file and if the count for the same is about 500 it will send and smpp alert.
Here is my code.
#!/bin/bash
#########################################################################################################... (3 Replies)
Discussion started by: Siddheshk
3 Replies
10. Shell Programming and Scripting
I currently have a shellscript to check the size of a filesystem and email me if the size is over a certain percentage (80%). I have this script on crontab and executes the shell every 10 mins.
I have the above in place on 8 servers. It so happens that a file system on one of the servers is... (1 Reply)
Discussion started by: goddevil
1 Replies
LEARN ABOUT SUSE
ocf_heartbeat_edir88
OCF_HEARTBEAT_EDIR88(7) OCF resource agents OCF_HEARTBEAT_EDIR88(7)
NAME
ocf_heartbeat_eDir88 - Manages a Novell eDirectory directory server
SYNOPSIS
eDir88 [start | stop | monitor | meta-data | validate-all]
DESCRIPTION
Resource script for managing an eDirectory instance. Manages a single instance of eDirectory as an HA resource. The "multiple instances"
feature or eDirectory has been added in version 8.8. This script will not work for any version of eDirectory prior to 8.8. This RA can be
used to load multiple eDirectory instances on the same host. It is very strongly recommended to put eDir configuration files (as per the
eDir_config_file parameter) on local storage on each node. This is necessary for this RA to be able to handle situations where the shared
storage has become unavailable. If the eDir configuration file is not available, this RA will fail, and heartbeat will be unable to manage
the resource. Side effects include STONITH actions, unmanageable resources, etc... Setting a high action timeout value is _very_ _strongly_
recommended. eDir with IDM can take in excess of 10 minutes to start. If heartbeat times out before eDir has had a chance to start
properly, mayhem _WILL ENSUE_. The LDAP module seems to be one of the very last to start. So this script will take even longer to start on
installations with IDM and LDAP if the monitoring of IDM and/or LDAP is enabled, as the start command will wait for IDM and LDAP to be
available.
SUPPORTED PARAMETERS
eDir_config_file
Path to configuration file for eDirectory instance. (optional, string, default /etc/opt/novell/eDirectory/conf/nds.conf)
eDir_monitor_ldap
Should we monitor if LDAP is running for the eDirectory instance? (optional, boolean, default 0)
eDir_monitor_idm
Should we monitor if IDM is running for the eDirectory instance? (optional, boolean, default 0)
eDir_jvm_initial_heap
Value for the DHOST_INITIAL_HEAP java environment variable. If unset, java defaults will be used. (optional, integer, no default)
eDir_jvm_max_heap
Value for the DHOST_MAX_HEAP java environment variable. If unset, java defaults will be used. (optional, integer, no default)
eDir_jvm_options
Value for the DHOST_OPTIONS java environment variable. If unset, original values will be used. (optional, string, no default)
SUPPORTED ACTIONS
This resource agent supports the following actions (operations):
start
Starts the resource. Suggested minimum timeout: 600.
stop
Stops the resource. Suggested minimum timeout: 600.
monitor
Performs a detailed status check. Suggested minimum timeout: 60. Suggested interval: 30.
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: 5.
EXAMPLE
The following is an example configuration for a eDir88 resource using the crm(8) shell:
primitive example_eDir88 ocf:heartbeat:eDir88
op monitor timeout="60" interval="30"
SEE ALSO
http://www.linux-ha.org/wiki/eDir88_(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_EDIR88(7)