Shell script to monitor and alert DB support TBS space issues
Hello:I am looking to build a shell script which would basically be to connect to the database using tnsnames.ora and check the availability of space on each of the storage space in a database. Send an alert message to dbsupport if it is less then a specified threshold value. Y at - it a script that you can share it with me.
Kind regards
BMP
I would like to know if it works... or if you have any problem... Let me know...
Tags: Database
Similar Questions
-
Navigator 1.2 infrastructure monitoring and alert
I was under the impression that the Infrastructure Navigator made monitoring and alert services and applications where if something doesn't work more or had problems he can inform you through something like the email or SMS, etc.. From what I've seen, it seems that it only shows you what services are running on a virtual machine and the dependencies with other servers. Is this the case or am I missing something?
You are right. vCenter Infrastructure Navigator is a discovery of the application, mapping and dependency visualization solution and not a demand one performance management.
vFabric Application Performance Manager (APM) provides a complete application of the surveillance capabilities. APM settles with two components: vFabric AppInsight of Transaction and Code level followed (byte code instrumentation is courtesy of spring Insight) and vFabric Hyperic for middleware and OS monitoring. More details and example of using hyperic within the MPA can be found here: http://bit.ly/MsO5Dl
-
is there a way to monitor windows services specific vm and alert based on down?
Currently, it is not possible.
-
Hello
I want to send my alarms trigged in vSphere mail, how do I do this?
Tobias
Hello
STEP 1 : go to the level of the vSphere infrastructure that you want to create an alarm on. If it's on a particular virtual machine, go to the tab alarms on this virtual machine. If it's for all hosts in the datacenter, switch to the display of data center and then click Alerts.
STEP 2 - go to the view of alarm definitions
STEP 3 - right click, and then click new alarm
STEP 4 - give a useful and descriptive name (yours and others) the alarm and select the type of alarm
STEP 5 - choose between monitor for conditions / State and monitor for specific events and go to the next tab, triggers
STEP 6 - Add a new trigger. Set the Type of trigger, Condition, cautions and alert levels. Note that this may take a few adjustments over time to get the warning and correct the warning levels. The reports tab is optional, but you must switch to the Actions tab.
STEP 7 - Add a new Action. This could be for send you by email, a notification, SNMP trap, or execute a command. Let's say that you set up the alarm in order to send you email, you must enter your e-mail address in the configuration. When you are finished, click OK, and you should see the result of your work in the view of definitions of alarm.
Figure 8: Creating a new vSphere alarm -
Calling shell script program SQL and passing parameters
Hi guys,.
Greetings from Toronto. Is it possible to move one or more strings as parameters to a sql from shell script program?
Shell script
SQL program (rd_test.sql)# Accept system input parameters p_user_id=$1 p_job_id=$2 sqlplus.exe -s $p_user_id @$RD_PATH/rd_test.sql $p_user_id $p_job_id
As always, this is not something I have to solve that minute. Any help would be appreciated-- Accept system input parameters define p_user_id = &1 define p_job_id = &2 -- Wondering if its possible to pass these 3 parameters from a shell script program. -- (1) rd_test-$p_job_id-3-1.lis -- (2) RD_PRINTER(rd_test,3) -- (3) t_data select t_data=''rd_test-'||'''$p_job_id'''||'-1-1.txt'' t_data_dir=''.'' ksh $RD_PATH/another_shell_prog.sh $p_user_id $p_job_id '||a.rd_value||' ' ||b.rd_value||' rd_test-$p_job_id-3-1.lis $RD_PRINTER(rd_test,3) '|| '$t_data $t_data_dir'||' exit_status=$? check_command' from rd_job_parameter b, rd_job_parameter a where a.job_id = &2 and a.jp_module_id = 'RDTEST' and b.job_id = a.job_id and b.module_id = a.module_id /
and I will think of the problem.
Thank you
REDA
Published by: Raj404261 on June 25, 2009 11:40
Published by: Raj404261 on June 25, 2009 17:29OK, just a few pointers possible if you need to go the way of shell script.
I suggest that you have a separate SQL script for each of your options, which retains the fairly well-defined lines and keeps the maintenance as simple as possible. Therefore, in your shell script, you can have something like:
#!/bin/ksh # Accept system input parameters p_user_id=$1 p_job_id=$2 # Deduce which script you'll call here # using if statements, or even a case: if [[ p_job_id -eq 1 ]] then SQL_SCRIPT=sql_script1.sql else SQL_SCRIPT=sql_script2.sql fi # Or using case case $2 in 1) SQL_SCRIPT=sql_script1.sql; 2) SQL_SCRIPT=sql_script2.sql; 3) SQL_SCRIPT=sql_script3.sql; *) SQL_SCRIPT=sql_script4.sql; esac export ${SQL_SCRIPT} #If you need to query the database at all to deduce which script to cal #Then something like this: SCRIPT_VAR=`sqlplus -s username/password << EOF set heading off set feedback off set verify off SELECT * FROM DUAL; EOF` export {SCRIPT_VAR} SQL_SCRIPT=sql_script${SCRIPT_VAR}.sql # Then just call your script: sqlplus. -s $p_user_id/password @${SQL_SCRIPT}
-
implementation monitoring and alerts SLA through the Workspace studio
Hello
Is it possible game of replicas and alert rules SLA through the studio of the workspace. If so, could you please help me how do.
Thank you
JamesHello..
Operational parameters such as active, tracing, monitoring etc. are easily defined within eclipse by editing with the text rather than the proxy editor editor...
SLA alerts are possible to change in the same way, but they are a little more complicated to understand.
.. Select this option.
-
Can ISE monitor and alert for status n?
Hi all
Can someone tell me if the ISE server can monitor the State of n? If a n goes done, ISE can send alert by e-mail or SMS?
Thank you.
N ° Ce would be a function of a network management system.
Offer of Cisco in this space would be first Infrastructure. You can also use any number of cheap (and some tools open source) like Nagios or what to do simple up/down controls.
-
Black monitor and remains black - hardware or software issue?
I have already suggested you.
I never had to install a driver of monitor, video projector (Spotlight presentation), HDTV or LCD display. LCD screens are sometimes delivered with driver discs, but the views are also not Plug Play devices. This is why the operating system recognizes and installs the drivers as required.
The following image is a screenshot of this desktop PC Device Manager. It has two screens connected as you can see. I haven't installed any drivers. Try uninstalling the driver to see what effect it a. let the OS do its job.
-
Stop the Service Console and shell scripts
Now that VMware announced ESX 4.1 is their last hypervisor with a service console, I was wondering-
What are the options to make what is now a large number of Linux shell scripts perform the same functions on ESXi - i.e. PowerCLI, Host Profiles, etc. and how long we have until officially support chips for the ESX service console?
Thank you
PowerCLI does not rely on a service console. However, you must have paid the ESXi version for them to work. With respect to the profiles of the host, which is a characteristic of vCenter and has more no dependencies on the COS. You can start watching to convert all of your shell scripts PowerCLI and use scripts.
What about when VMware will stop support for ESX, I do not anticipate happening any time soon.
-
shell script for oracle alert.log file
Hi gurus,
I want to write the shell script to know the last timing 10 stop of the database of the alerts log file. I'm working on oracle 9i.
Could someone please advice on that.
Thanks in advance
Kind regards
Shaan
Published by: Shaan_dmp on January 5, 2009 13:27
Published by: Shaan_dmp on January 5, 2009 13:28Use awk. I have not at hand a 9i but here is a very simple version for 10g XE
My awk file (line numbers for the notes below - don't include them):
01:BEGIN { prevline = "";} 02:03:/Completed: alter database close/ {print prevline,FS,$0;}04:05:{prevline = $0;}
The command line and the results (from my alert log 300 k)
$ awk -f alert.awk.txt alert_xe.logFri Apr 11 18:08:40 2008 Completed: alter database close normalFri May 16 18:53:21 2008 Completed: alter database close normalTue May 20 17:28:23 2008 Completed: alter database close normalThu Jul 17 19:08:52 2008 Completed: alter database close normalFri Aug 15 15:12:48 2008 Completed: alter database close normalWed Nov 05 08:52:59 2008 Completed: alter database close normalFri Nov 14 16:36:03 2008 Completed: alter database close normalTue Dec 09 10:46:23 2008 Completed: alter database close normalMon Jan 05 11:12:22 2009 Completed: alter database close normal
What it means:
(1) section START line 01 defines the variable to contain the previous line
(2) the /search chain / line 03 search marker in the file for a stop, and then performs the requested action (print the time that was in the previous line and then this line; use FS (the field to the awk - space normally separator) as a separator
(3) on line 05 is a statement that we do on each line - is remembered in case it is the timestamp for the closure.Now, you can include several cases corner for closures by adding several models of research etc. For more information, google for examples of awk.
AWK is really good at this sort of thing!
HTH
Nigel cordially
-
Get the progress and result of a shell script
Hello
I would use a shell script to convert MP3 / audio FLAC files MP3 files with a bitrate of 192kbs and do other things in Automator or AppleScript script.
So I installed lame and flac with brew, run an Automator process with a selected file and perform an action of AppleScrip:
on run {input, parameters} if input is not {} then repeat with theFile in input set posix_file to POSIX path of theFile if input is not {} then tell application "Terminal" set thescript to "/usr/local/bin/lame -b 192 \"" & posix_file & "\" " do script thescript end tell end if end repeat end if return input end run
The Terminal window is there because you tell the Terminal to run your script - try using shell script.
-
I'm on Mac OS X 10.11.2 and have problems with AppleScript and shell scripting.
The following script is a cutting of a larger project:
Tell application "Finder".
the value the_MePath (path for me)
the value the_MeCont (the_MePath container) as string
tell the end
the value of the_MeCont (text 1 thru-2) the_MeContShell
-normally isn't here!
the value the_MePara (the_MeCont & "STH - C Para WAV_48k_24.txt")
the value the_Parameters (opening for access file the_MePara with permission to write)
write ("WAV\r24\r48000\r48k\r") the_Parameters
Close access the_Parameters
-normally isn't here!
-destined to be there!
-the value the_MePara (shell script 'find' & city form the_MeContShell POSIX path & "-iname" "Para STH - C *'")
the value the_Parameters (opening for access file the_MePara)
the value the_ParaList (read the the_MePara file)
Close access the_Parameters
paragraph 1 of the value userFormat the_ParaList
paragraph 2 of the the_ParaList the value userBitDepth
paragraph 3 of the the_ParaList the value userSampleRate
paragraph 4 of the the_ParaList the value shortSampleRate
The lines between the "-normally isn't there!"-lines fills a file in the directory of the AppleScript with the data.
So now the file is there.
If I remove these lines and enable the line below "-intended to be here! ', the shell should find this file.
What I get, then, is a mistake:
"Fehler beim Zugriff auf das Netzwerk." error number - 5000 file "/ users/shared/_AppleScript development/_Archiv Sniplets/STH-C Para WAV_48k_24.txt" to "class fsrf".
to "open for access file the_MePara.
Any ideas, anyone?
Kind regards...
... Maik
Hello
Remove the end of file before the_MePara.
the_MePara contains a posix path type path--> "/ users/shared/_AppleScript development/_Archiv Sniplets/STH-C Para WAV_48k_24.txt.
You can use the file on the path of type HFS --> ' StartupDiskName:Users: shared: _AppleScript development: _Archiv Sniplets:STH - C Para WAV_48k_24.txt.
Information:
The script didn't need to open and close the access when the script to read-only.
Use this line only--> the value the_ParaList to read the_MePara
-
Insert a record, call a stored procedure and execute a shell script
Hello
I am trying to build a page APEX do these three things in order.
#1. Insert a new record in a database table (pk, donnees_xml, attr1 and attr2, etc.) and download the XML file to the donnees_xml column
#2. Save this XML file on a file system
#3. Parse the XML file on a file system and update the database with the parsed data table
I can do #1 with a regular shape based on the database table. I can do #2 with a stored procedure.
I can do #3 with a shell script.
I wonder how these tasks can be combined into a single action in APEX.
do #1;
If successful, do #2;
If successful, do #3;
I'd appreciate comments on this.
Thank you
Define a process of PL/SQL page submit that runs after the record is inserted, if P1_FILE is not null.
-
Call the batch file and not the shell script using measures of the event
Can I use EVENTACTIONS at the door of gold like
eventactions (SHELL, /path-to-batch-file/test1.bat)
will this work? I am on a windows machine, so I need to run a batch file and not a shell script
In GGSCI, you can shell OUT to the BONE and call a command/executable file.
For example on Windows:
GGSCI (WIN2003) 2 > shell dir
Volume in drive C has no label.
Volume serial number is 8CCC-9E58
Directory of C:\ggs
18/08/2012 07:23
. 18/08/2012 07:23
... 2010-10-15 06:37 bcpfmt.tpl 426
2010-10-15 06:37 bcrypt.txt 1 725
22/04/2011 03:41 2 560 category.dll
05/11/2011 10:43
cfg 2010-10-15 07:15 739 chkpt_ora_create.sql
...
What were the results when you tried this in an EVENTACTIONS clause?
-
The work of the Disqualification of Linux Shell Script
Hello
We are the 11.1.1.7.3 with Weblogic Web server and Linux App Server Disqualification.
I want to know how we can carry out the work of the Disqualification of the Linux and write these commands in the shell script.
(1) present the task (run)
(2) check the employment status to see if the work is in working condition or supplement
I know that on Windows, it utility jmxtools.jar of command line operations in dnDirector/Tools folder. But I'm not able to find the jmxtools.jar file in one of the edq.home or edq.local.home of the directories under Linux install.
Can you guide me to the location where the jmx utility will be available under Linux and also the command to check the status of the job?
Thank you
Ravi
It's him!
Jobs called via the command line interface return an exit status when finished.
Monitor the precise status of the long-term work requires the use of the server of the Disqualification Console user interface.
Maybe you are looking for
-
Strategies for the recovery of a laptop once it is stolen
Hi all. I don't know what software / services already exist with regard to the recovery of a stolen laptop. But I know that the consequences of a loss. If someday it happens I want to know what I could do to get this back. I am aware of some online s
-
Power Manager for the new X 1 carbon
Hi all! No idea if Power Manager is available for the new X 1 carbon (window 8.1, 64 bit)? So far is not available, no?
-
cannot print the document from Windows Mail, get a script error
When I try to print an electronic document of Windows Mail, I get the following error message: -An error has occurred in the script on this page -Line: 2115 -Char: 1 -Error: unexpected call to method or property access -Code: 0 -url://ieframe.dll/pre
-
I installed a trial of avg vertion, seeing that I have only 22 days of free trial, I changed my mind. In addition, my computer began to close and restart continuously, so I used system restore to go back to before the installation of this particular
-
Uninstall required WLOC?
What I need to uninstall WLOC to install MSE and I lose Onecare circle, utility printer sharing and backup central?