8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
My question is basically as the title says. How can I check a user inputted string is only certain characters long (for example, 3 characters long) and how do I check a user inputted string only contains certain characters (for example, it should only contain the characters 'u', 'a', 'g', and 'c')... (4 Replies)
Discussion started by: Eric1
4 Replies
2. Shell Programming and Scripting
This was taken down recently because it appeared to be homework, but it isn't. It's for a script I am working on at work. Thanks for the help.
How do you check that user inputs (arguments 1 and 2) are both numbers and are at least 5 digits in length? (2 Replies)
Discussion started by: thibodc
2 Replies
3. UNIX for Dummies Questions & Answers
When I use who it shows who is online and from what time they logged in but is there a way I can see the last time someone was logged on if they aren't online? Is it with the who command?
thx (11 Replies)
Discussion started by: subway69
11 Replies
4. AIX
Hi
I'm a little rusty with HACMP, but wanted to find out if it is possible to remove a disk heartbeat network from a running HACMP cluster.
Reason is, I need to migrate all the SAN disk, so the current heartbeat disk will be disappearing. Ideally, I'd like to avoid taking the cluster down to... (2 Replies)
Discussion started by: cmcbugg
2 Replies
5. UNIX for Advanced & Expert Users
in a multi user system of 3 users X,Y,Z, if i know that X is presently online, is it possible to determine for how long has he been online? i mean the time duration (3 Replies)
Discussion started by: arindamlive
3 Replies
6. Programming
I'm writing a KSH shell script that's using SQL though DB2.
If I have a table defined and populated
db2 "create table tb(num int,letter char(4))"
db2 "insert into tb values(111,a)
db2 "insert into tb values(112,b)
db2 "insert into tb values(111,c)
How can I check if a letter user... (0 Replies)
Discussion started by: busdude
0 Replies
7. Programming
This is the source code:
#include <pwd.h>
#include <iostream>
#include <string.h>
using namespace std;
int main()
{
struct passwd *user;
char login="alex", password="qwertyuiop";
if ((user= getpwnam(login)) == NULL)
cout << "No such user\n";
else if... (24 Replies)
Discussion started by: hakermania
24 Replies
8. Shell Programming and Scripting
I decided to delete the first post since it was againt the forum rules (4 Replies)
Discussion started by: Necrologist
4 Replies
APPHBD(8) System administration utilitie APPHBD(8)
NAME
apphbd - Application Heartbeat Monitor for High-Availability Linux
SYNOPSIS
apphbd [-srkdh] [-c file]
DESCRIPTION
Warning
apphbd is deprecated; its use is strongly discouraged. The functionality provided by apphbd has been replaced by resource-level
monitoring in Pacemaker.
/usr/lib/heartbeat/apphbd is a basic application heartbeat monitor daemon for Linux-HA. A group of Application Heartbeat APIs are defined
for this heartbeat monitoring service. Applications may register with the daemon in order to be monitored. If an application fails to send
a heartbeat within the specified interval, the daemon will log an event.
apphbd may use a watchdog timer to monitor itself.
apphbd extends its functionality by using plugins. A plugin, recmgr notifies the recovery manager daemon if certain events occur (e.g. an
application fails to heartbeat).
The Recovery Manager daemon (/usr/lib/heartbeat/recoverymgrd) receives notification from the recmgr plugin, then it tries to execute
recovery scripts as configured. See the recoverymgrd default configuration file, recoverymgrd.conf for details.
recoverymgrd registers itself with apphbd as a client application. apphbd should be started first with the recmgr plugin loaded. Then,
recoverymgrd should be configured and started
OPTIONS
The following options are supported:
-s
Show the status of apphbd, running or stopped.
-k
Stop (kill) the daemon.
-r
Restart the daemon. apphbd will reload its configuration file when restarted.
-d level
Set the debug level.
-h
Show a brief usage message.
-c file
Set an alternate configuration file. The default configuration file is ./apphbd.cf. For details on the file format and supported
options, refer to the example apphbd.cf file found in the documentation directory.
FILES
o /var/run/apphbd.pid - default PID file
o apphbd.cf - Default configuration file for apphbd. apphbd searches the file in its working directory.
o recoverymgrd.conf - default configuration file for recoverymgrd. recoverymgrd searches the file in its working directory. An
alternative configuration file may be specified on the command line.
o /usr/lib/heartbeat/plugins/AppHBNotification - directory containing plugins for apphbd.
SEE ALSO
heartbeat(8)
AUTHORS
Alan Robertson <alanr@unix.sh>
apphbd
Andrea Brugger <andrea.l.brugger@intel.com>
man page
Florian Haas <florian.haas@linbit.com>
man page
Heartbeat 3.0.5 November 26, 2009 APPHBD(8)