Skip to content

Commit

Permalink
Initial import of HQ 2.7.2 sources
Browse files Browse the repository at this point in the history
  • Loading branch information
rmorgan committed Jul 18, 2006
1 parent f6a3ae8 commit f38bf57
Show file tree
Hide file tree
Showing 2,976 changed files with 474,760 additions and 0 deletions.
339 changes: 339 additions & 0 deletions COPYING

Large diffs are not rendered by default.

75 changes: 75 additions & 0 deletions LICENSES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
Hyperic HQ includes a number of third-party open source components
in its distribution. The list below identifies the community or
organization and links to their appropriate license terms.

The Hyperic engineering team would like to thank all the communities
of the projects listed below for their contributions.
---------------------------------------------------------------------

- JBoss Group -
Information: http://www.jboss.org
License: http://www.jboss.org/company/opensouce_aboutlgpl

- PostgreSQL Development Group -
Information: http://www.postgresql.org
License: http://www.postgresql.org/licence.html

- Apache Jakarta Project -
Information: http://jakarta.apache.org
License: http://www.apache.org/licenses/LICENSE-2.0

- Quartz Enterprise Job Scheduler -
Information: http://www.opensymphony.com/quartz/
License: http://www.apache.org/licenses/LICENSE-2.0

- XDoclet -
Information: http://xdoclet.sourceforge.net/
License: http://xdoclet.sourceforge.net/xdoclet/licenses/xdoclet-license.html

- JDOM -
Information: http://www.jdom.org/
License: http://www.jdom.org/docs/faq.html#a0030

- MySQL Connector/J -
Information: http://www.mysql.com/products/connector/j/
License: http://www.gnu.org/licenses/gpl.txt

- MX4j -
Information: http://www.mx4j.org
License: http://www.apache.org/licenses/LICENSE-2.0

- dnsjava -
Information: http://www.dnsjava.org/
License: http://www.dnsjava.org/README

- JSch -
Information: http://www.jcraft.com/jsch
License: http://www.jcraft.com/jsch/LICENSE.txt

- SNMP4J -
Information: http://www.snmp4j.org/index.html
License: http://www.snmp4j.org/LICENSE-2_0.txt

- Rico -
Information: http://www.openrico.org
License: http://www.apache.org/licenses/LICENSE-2.0.html

- Prototype -
Information: http://prototype.conio.net
License: http://prototype.conio.net

- script.aculo.us -
Information: http://script.aculo.us
License: http://script.aculo.us/downloads

- InstantJ -
Information: http://instantj.sourceforge.net/
License: http://www.gnu.org/licenses/lgpl.txt

- GNU getopt Java port -
Information: http://www.urbanophile.com/arenn/hacking/download.html
License: http://www.gnu.org/licenses/lgpl.txt

- PrintfFormat.java -
Information: http://java.sun.com/developer/technicalArticles/Programming/sprintf/PrintfFormat.java
License: within src/org/hyperic/util/PrintfFormat.java
16 changes: 16 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

Visit the Hyperic HQ Documentation Wiki for details on how to build HQ:

http://support.hyperic.com/confluence/display/DOCSHQ27/Build+Instructions

For development questions visit our HQ Developer forum:

http://forums.hyperic.org/jiveforums/forum.jspa?forumID=3

For end user questions visit the HQ Users forum:

http://forums.hyperic.org/jiveforums/forum.jspa?forumID=1

Any enhancments or bugs should be discussed on the forums, or logged in
our JIRA located at: http://jira.hyperic.com

87 changes: 87 additions & 0 deletions bin/agent.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
#!/bin/sh
#
# description: Starts and stops the Hyperic Agent. The agent
# must be started once by hand to complete the setup process.
#
#
#

PROGRAM="Hyperic Agent"

#
# Set the USER variable to the user to start the agent as
#
USER=

#
# Set AGENT_DIR to your agent installation path. For example:
# AGENT_DIR=/usr/local/agent-2.7.2
#
AGENT_DIR=

# Set HQ_JAVA_HOME if you want to use a different JDK
# export HQ_JAVA_HOME=/opt/bea/jrockit81sp1_141_03

checksetup() {
if ! [ -d $AGENT_DIR ]; then
echo "Agent directory: $AGENT_DIR not found."
exit 1;
fi
if ! [ -e $AGENT_DIR/data/tokendata ]; then
echo "$PROGRAM must be setup. Run start command by hand"
return 1;
fi
if [ $USER = "" ]; then
echo "$PROGRAM USER not set."
return 1;
fi
}

start() {
echo -n "Starting $PROGRAM services: "
su - $USER -c "$AGENT_DIR/hq-agent.sh start > /dev/null 2>&1"
return $?
}

stop() {
echo -n "Shutting down $PROGRAM services: "
su - $USER -c "$AGENT_DIR/hq-agent.sh stop > /dev/null 2>&1"
return $?
}

restart() {
stop
start
}

ping() {
echo -n "Pinging $PROGRAM"
su - $USER -c "$AGENT_DIR/hq-agent.sh ping > /dev/null 2>&1"
return $?
}

checksetup
RET=$?
if [ $RET -ne 0 ]; then
exit $RET
fi

case "$1" in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
ping)
ping
;;
*)
echo $"Usage: $0 {start|stop|restart|ping}"
exit 1
esac

exit $?
3 changes: 3 additions & 0 deletions bin/background.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@echo off
rem see comment in background.sh
cmd /c start /b "" /MIN %*
27 changes: 27 additions & 0 deletions bin/background.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/sh

#for use by startup scripts such as jboss which do not background themselves.
#see ServerControlPlugin

exec "$@" &

PID=$!

if [ "x$HQ_CONTROL_WAIT" = "x" ] ; then
exit 0
fi
if [ "x$HQ_CONTROL_WAIT" = "x0" ] ; then
exit 0
fi

#sleep for a bit then check that the process is still alive,
#otherwise the script failed right away perhaps due to syntax
#error, invalid command line option, missing JAVA_HOME, etc.

sleep $HQ_CONTROL_WAIT

if kill -0 $PID 2>/dev/null ; then
exit 0
else
exit 1
fi
Loading

0 comments on commit f38bf57

Please sign in to comment.