Commit 791a2d49 authored by Gary Wong's avatar Gary Wong

Fixes to get monitoring support installed on racks.

parent b50021f2
......@@ -34,7 +34,7 @@ PROGRAMS = shared-node-monitor
include $(OBJDIR)/Makeconf
all: $(PROGRAMS)
all:
include $(TESTBED_SRCDIR)/GNUmakerules
......@@ -55,6 +55,12 @@ LIBS += -levent -lcrypto
LIBS += -lm -L/usr/local/lib -lpubsub
LDFLAGS += $(LDSTATIC)
shared-node-monitor: shared-node-monitor.o $(TESTBED_LIBOBJDIR)/event/libevent.a
$(CC) $(LDFLAGS) -o $@ shared-node-monitor.o $(LIBS)
shared-node-monitor.o: shared-node-monitor.c
$(CC) $(CFLAGS) -o $@ $<
boss-install:
control-install:
......
......@@ -257,6 +257,9 @@ if ($dofunc && !$install) {
$command = "$devel/update-shared.pl -t $type -f $func ".
(defined($limit) ? "-l $limit" : "");
}
elsif (1) {
$command = "cd /tmp; wget http://www.emulab.net/downloads/ops-monitoring.tar.gz && cd /usr/local && sudo tar xf /tmp/ops-monitoring.tar.gz; mysqladmin create monitoring; cd /usr/local/ops-monitoring/local/unit-tests && python ./local_table_reset.py; sudo /usr/testbed/sbin/protogeni/mondbd";
}
elsif (0) {
$command = "mkdir /home/elabman/openvpn"
}
......@@ -405,7 +408,7 @@ if ($rsync) {
print "rsyncing $rack ...\n";
print "-> rsyncing emulab-devel\n";
system("rsync -a --timeout=30 --delete ".
"--exclude-from .rsyncignore ".
"--exclude-from $HOME/.rsyncignore ".
" $HOME/testbed-noelvin/emulab-devel ".
" $HOME/testbed-noelvin/reconfig.rack ".
" elabman\@${rack}:emulab-devel");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment