Please see the output that i got for the above problem.
OUTPUT:
37
The content in C
Connection timed out.
The content in D
Connection timed out.
napdweb37 is up and fine
As per the code, when the content in C is equal to content in D , it should display that napd server is hung but it is displaying napd is up and fine,can anyone say why the if statement is not working properly.
Hi,
I have to develop a shell script which exits after <n> minutes. For e.g. The user is taking too much time to enter an input, and the script will terminate after 10 minutes pass by.
Is this possible ?
Thanks,
Puneet (3 Replies)
hello every one ,
this is my first participation in the forum , I hope it'll be a good start
within a script I would like to put some code to read i\p from standard i\p using read command if it reads Y it will terminate the script if it reads N it will continue execution , if no i\p is... (2 Replies)
Hi all,
I have a KSH script which is kicking off an sql scripts as follows:
/usr/local/installs/instantclient_10_2/sqlplus -s username/password @$sql_path/sql_query.sql > $tmp_path/sql_query_results
The problem I have is that sometimes the 10g Oracle Database spits out an error saying... (4 Replies)
i tried to configure DNS on my x86 PC ,in a network but after following all the below mentioned steps , I am getting the message ."timeout : unable to connect to DNS"
Steps followed :
Step 1. First check that the necessary packages are installed to configure DNS.
Step 2. Configure the... (1 Reply)
I am executing test.sh script. But this script takes lot of time and in the meantime the shell timeouts without completing the script.
Is there any command which will continue processing the script.
Thanks (3 Replies)
This is part of my script, as you can see when the alarm is raised it shows some text, what I need it to do is to actually kill the binary "test" (TEST_PATH) when the timeout happens.
#!/usr/bin/python26
from optparse import OptionParser
import nagios
import re
import subprocess... (0 Replies)
Hi Guys
I am using one configuration file for reading some time out values.The format of the file is
A.Type = Number
A.Val = 2000
B.Type = Number
B.Val = 4000
Now my requirement is I need to write a shell script in Solaris where i need to increase these timeout values by 10 times of... (3 Replies)
Hi,
I've written a very robust script to get an external IP address from 'behind' a router. It uses many web pages randomly choosing which one/ones to use at run time. The "fetch the web page containing the IP address" is handled by either wget or curl both of which have their 'max time for the... (6 Replies)
Hi,
I need to download a zip file from my the below US govt link.
https://www.sam.gov/SAMPortal/extractfiledownload?role=WW&version=SAM&filename=SAM_PUBLIC_MONTHLY_20160207.ZIP
I only have wget utility installed on the server.
When I use the below command, I am getting error 403... (2 Replies)
Hello guys.
I need some help. First of all, sorry about my english, that is not my native languaje.
I have a bash script in Solaris with the next lines:
And the sftp.sh has this:
The problem is that sometimes the sftp takes a long of time. I mean, 2 or 3 hours when it should... (12 Replies)
Discussion started by: giolita25
12 Replies
LEARN ABOUT DEBIAN
ocf_heartbeat_apache
OCF_HEARTBEAT_APACHE(7) OCF resource agents OCF_HEARTBEAT_APACHE(7)NAME
ocf_heartbeat_apache - Manages an Apache web server instance
SYNOPSIS
apache [start | stop | status | monitor | meta-data | validate-all]
DESCRIPTION
This is the resource agent for the Apache web server. This resource agent operates both version 1.x and version 2.x Apache servers.
The start operation ends with a loop in which monitor is repeatedly called to make sure that the server started and that it is operational.
Hence, if the monitor operation does not succeed within the start operation timeout, the apache resource will end with an error status.
The monitor operation by default loads the server status page which depends on the mod_status module and the corresponding configuration
file (usually /etc/apache2/mod_status.conf). Make sure that the server status page works and that the access is allowed *only* from
localhost (address 127.0.0.1). See the statusurl and testregex attributes for more details.
See also http://httpd.apache.org/
SUPPORTED PARAMETERS
configfile
The full pathname of the Apache configuration file. This file is parsed to provide defaults for various other resource agent
parameters. (unique, optional, string, default /etc/apache2/httpd.conf)
httpd
The full pathname of the httpd binary (optional). (optional, string, default /usr/sbin/httpd)
port
A port number that we can probe for status information using the statusurl. This will default to the port number found in the
configuration file, or 80, if none can be found in the configuration file. .sp
(optional, integer, no default)
statusurl
The URL to monitor (the apache server status page by default). If left unspecified, it will be inferred from the apache configuration
file. .sp If you set this, make sure that it succeeds *only* from the localhost (127.0.0.1). Otherwise, it may happen that the cluster
complains about the resource being active on multiple nodes. (optional, string, no default)
testregex
Regular expression to match in the output of statusurl. Case insensitive. (optional, string, default exists, but impossible to show in
a human readable format (try grep testregex))
client
Client to use to query to Apache. If not specified, the RA will try to find one on the system. Currently, wget and curl are supported.
For example, you can set this parameter to "curl" if you prefer that to wget. (optional, string, no default)
testurl
URL to test. If it does not start with "http", then it's considered to be relative to the Listen address. (optional, string, no
default)
testregex10
Regular expression to match in the output of testurl. Case insensitive. (optional, string, no default)
testconffile
A file which contains test configuration. Could be useful if you have to check more than one web application or in case sensitive info
should be passed as arguments (passwords). Furthermore, using a config file is the only way to specify certain parameters. .sp Please
see README.webapps for examples and file description. (optional, string, no default)
testname
Name of the test within the test configuration file. (optional, string, no default)
options
Extra options to apply when starting apache. See man httpd(8). (optional, string, no default)
envfiles
Files (one or more) which contain extra environment variables. If you want to prevent script from reading the default file, set this
parameter to empty string. (optional, string, default /etc/apache2/envvars)
SUPPORTED ACTIONS
This resource agent supports the following actions (operations):
start
Starts the resource. Suggested minimum timeout: 40s.
stop
Stops the resource. Suggested minimum timeout: 60s.
status
Performs a status check. Suggested minimum timeout: 30s.
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: 5.
EXAMPLE
The following is an example configuration for a apache resource using the crm(8) shell:
primitive p_apache ocf:heartbeat:apache
op monitor depth="0" timeout="20s" interval="10"
SEE ALSO
http://www.linux-ha.org/wiki/apache_(resource_agent)
AUTHOR
Linux-HA contributors (see the resource agent source for information about individual authors)
resource-agents UNKNOWN 03/09/2014 OCF_HEARTBEAT_APACHE(7)