0 Replies Latest reply: Feb 23, 2015 2:18 PM by Timothy Weaver RSS

Discovery Agent for Linux - Ubuntu 10.04 on AWS

Timothy Weaver

Has anyone successfully generated the Discovery Agent on an Ubuntu 10.04 AWS AMI? The build and install script run fine without error, but when attempting to start the service it tells me that it's an invalid module format.

 

> sudo /etc/init.d/rvbd_discovery_agent restart

/usr/local/discoveryagent/sbin/discovery_agent not running..

discovery_agent module not loaded

Loading discovery_agent module

insmod: error inserting '/usr/local/discoveryagent/lib/discovery_agent.ko': -1 Invalid module format

Major no =

ls: cannot access /usr/local/discoveryagent/core/*: No such file or directory

ls: cannot access /usr/local/discoveryagent/core/*: No such file or directory

ubuntu@ip-10-255-253-227:/usr/local/discoveryagent$ [Jan  1 00:00:00 0 -1 /cpuinfo DEBUG] {- -} counting processor 0

[Jan  1 00:00:00 0 -1 /cpuinfo DEBUG] {- -} counting processor 1

[Jan  1 00:00:00 0 -1 /cpuinfo DEBUG] {- -} counting processor 2

[Jan  1 00:00:00 0 -1 /cpuinfo DEBUG] {- -} counting processor 3

[Jan  1 00:00:00 0 -1 /cpuinfo DEBUG] {- -} counting processor 0

[Jan  1 00:00:00 0 -1 /cpuinfo DEBUG] {- -} counting processor 1

[Jan  1 00:00:00 0 -1 /cpuinfo DEBUG] {- -} counting processor 2

[Jan  1 00:00:00 0 -1 /cpuinfo DEBUG] {- -} counting processor 3

[Jan  1 00:00:00 0 -1 /cpuinfo DEBUG] {- -} counting processor 0

[Jan  1 00:00:00 0 -1 /cpuinfo DEBUG] {- -} counting processor 1

[Jan  1 00:00:00 0 -1 /cpuinfo DEBUG] {- -} counting processor 2

[Jan  1 00:00:00 0 -1 /cpuinfo DEBUG] {- -} counting processor 3

[Jan  1 00:00:00 0 -1 /cpuinfo DEBUG] {- -} counting processor 0

[Jan  1 00:00:00 0 -1 /cpuinfo DEBUG] {- -} counting processor 1

[Jan  1 00:00:00 0 -1 /cpuinfo DEBUG] {- -} counting processor 2

[Jan  1 00:00:00 0 -1 /cpuinfo DEBUG] {- -} counting processor 3

[Feb 23 21:39:21 21351 -1 /discoveryagent INFO] {- -} Reading Config File: /usr/local/discoveryagent/etc/discovery_agent.xml

[Feb 23 21:39:21 21351 -1 /discoveryagent INFO] {- -} Reading Config complete.

 

This is the compile:

 

> sudo ./build-and-install

Checking if this is AWS environment..

--2015-02-23 22:14:40--  http://169.254.169.254/latest/meta-data/ami-id

Connecting to 169.254.169.254:80... connected.

HTTP request sent, awaiting response... 200 OK

Length: 12 [text/plain]

Saving to: `ami-id'

 

100%[======================================>] 12          --.-K/s   in 0s    

 

2015-02-23 22:14:40 (1.67 MB/s) - `ami-id' saved [12/12]

 

Installing Discovery Agent in AWS environment

Instance's AKI-ID is not specified. Trying to fetch from Amazon.

--2015-02-23 22:14:40--  http://169.254.169.254/latest/meta-data/ami-id

Connecting to 169.254.169.254:80... connected.

HTTP request sent, awaiting response... 200 OK

Length: 12 [text/plain]

Saving to: `ami-id'

 

100%[======================================>] 12          --.-K/s   in 0s    

 

2015-02-23 22:14:40 (1.73 MB/s) - `ami-id' saved [12/12]

 

--2015-02-23 22:14:40--  http://169.254.169.254/latest/meta-data/kernel-id

Connecting to 169.254.169.254:80... connected.

HTTP request sent, awaiting response... 200 OK

Length: 12 [text/plain]

Saving to: `kernel-id'

 

100%[======================================>] 12          --.-K/s   in 0s    

 

2015-02-23 22:14:40 (1.74 MB/s) - `kernel-id' saved [12/12]

 

sudo apt-get update

sudo: unable to resolve host ip-10-255-253-227

Get:1 http://security.ubuntu.com lucid-security Release.gpg [198B]

Ign http://security.ubuntu.com/ubuntu/ lucid-security/main Translation-en_US 

Hit http://us-west-2.ec2.archive.ubuntu.com lucid Release.gpg    

Ign http://security.ubuntu.com/ubuntu/ lucid-security/universe Translation-en_US

Ign http://us-west-2.ec2.archive.ubuntu.com/ubuntu/ lucid/main Translation-en_US

Get:2 http://security.ubuntu.com lucid-security Release [57.3kB]

Ign http://us-west-2.ec2.archive.ubuntu.com/ubuntu/ lucid/universe Translation-en_US

Get:3 http://us-west-2.ec2.archive.ubuntu.com lucid-updates Release.gpg [198B]

Ign http://us-west-2.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main Translation-en_US

Get:4 http://security.ubuntu.com lucid-security/main Packages [621kB]

Ign http://us-west-2.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/universe Translation-en_US

Hit http://us-west-2.ec2.archive.ubuntu.com lucid Release

Get:5 http://us-west-2.ec2.archive.ubuntu.com lucid-updates Release [184kB]

Get:6 http://security.ubuntu.com lucid-security/universe Packages [217kB] 

Get:7 http://security.ubuntu.com lucid-security/main Sources [249kB]         

Get:8 http://security.ubuntu.com lucid-security/universe Sources [46.7kB]    

Hit http://us-west-2.ec2.archive.ubuntu.com lucid/main Packages           

Hit http://us-west-2.ec2.archive.ubuntu.com lucid/universe Packages

Hit http://us-west-2.ec2.archive.ubuntu.com lucid/main Sources 

Hit http://us-west-2.ec2.archive.ubuntu.com lucid/universe Sources

Get:9 http://us-west-2.ec2.archive.ubuntu.com lucid-updates/main Packages [807kB]

Get:10 http://us-west-2.ec2.archive.ubuntu.com lucid-updates/universe Packages [355kB]

Get:11 http://us-west-2.ec2.archive.ubuntu.com lucid-updates/main Sources [341kB]

Get:12 http://us-west-2.ec2.archive.ubuntu.com lucid-updates/universe Sources [110kB]

Fetched 2,988kB in 3s (900kB/s)

Reading package lists... Done

sudo apt-get -y install gcc gawk make

sudo: unable to resolve host ip-10-255-253-227

Reading package lists... Done

Building dependency tree     

Reading state information... Done

gcc is already the newest version.

gawk is already the newest version.

make is already the newest version.

0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.

cd ./discovery_agent/kernel

make install

Installing Riverbed Discovery Agent

[ -d /usr/local/discoveryagent ] || \

  (mkdir -p /usr/local/discoveryagent; chmod 755 /usr/local/discoveryagent)

[ -d /usr/local/discoveryagent/lib ] || \

  (mkdir -p /usr/local/discoveryagent/lib; chmod 755 /usr/local/discoveryagent/lib)

/usr/bin/install -c -m 644 discovery_agent.ko /usr/local/discoveryagent/lib

[ -d /usr/local/discoveryagent/sbin ] || \

            (mkdir -p /usr/local/discoveryagent/sbin; chmod 755 /usr/local/discoveryagent/sbin)

/usr/bin/install -c ../usr/discovery_agent /usr/local/discoveryagent/sbin

Creating core dir for Riverbed Discovery Agent

[ -d /usr/local/discoveryagent/core ] || \

        (mkdir -p /usr/local/discoveryagent/core; chmod 755 /usr/local/discoveryagent/core)

Creating sysdump dir for Riverbed Discovery Agent

[ -d /usr/local/discoveryagent/sysdump ] || \

  (mkdir -p /usr/local/discoveryagent/sysdump; chmod 755 /usr/local/discoveryagent/sysdump)

Creating version file for Riverbed Discovery Agent

/usr/bin/install -c ../version /usr/local/discoveryagent

Installing docs for Riverbed Discovery Agent

[ -d /usr/local/discoveryagent/doc ] || \

  (mkdir -p /usr/local/discoveryagent/doc; chmod 755 /usr/local/discoveryagent/doc)

/usr/bin/install -c ../../README /usr/local/discoveryagent/doc

/usr/bin/install -c ../../COPYING /usr/local/discoveryagent/doc

Installing config files for Riverbed Discovery Agent

[ -d /usr/local/discoveryagent/etc ] || \

  (mkdir -p /usr/local/discoveryagent/etc; chmod 755 /usr/local/discoveryagent/etc)

[ -f /usr/local/discoveryagent/etc/discovery_agent.xml ] || \

  (/usr/bin/install -c ../etc/discovery_agent.xml /usr/local/discoveryagent/etc)

[ -f /usr/local/discoveryagent/etc/../etc/dcfg.xml ] || \

  (/usr/bin/install -c ../etc/dcfg.xml /usr/local/discoveryagent/etc)

[ -f /usr/local/discoveryagent/etc/discoveryagent.logrc ] || \

  (/usr/bin/install -c ../etc/discoveryagent.logrc /usr/local/discoveryagent/etc)

/usr/bin/install -c ../etc/dsc_config /usr/local/discoveryagent/etc

/usr/bin/install -c ../etc/dsc_cron /usr/local/discoveryagent/etc

/usr/bin/install -c ../etc/sysdump /usr/local/discoveryagent/etc

[ -d /var/log/discoveryagent ] || \

  (mkdir -p /var/log/discoveryagent; chmod 755 /var/log/discoveryagent)

/usr/bin/install -c ../etc/discoveryagent_logrotate /etc/logrotate.d/discoveryagent

chmod 644 /etc/logrotate.d/discoveryagent

update-rc.d: warning: /etc/init.d/rvbd_discovery_agent missing LSB information

update-rc.d: see <http://wiki.debian.org/LSBInitScripts>

System start/stop links for /etc/init.d/rvbd_discovery_agent already exist.

/mnt/software/rvbd-discovery-agent-src-x86_64-31/discovery_agent/kernel

echo "Installation done. Use /usr/local/discoveryagent/etc/dsc_config to configure the Discovery Agent.";\

  echo "Run /etc/init.d/rvbd_discovery_agent start to start service";\

 

Installation done. Use /usr/local/discoveryagent/etc/dsc_config to configure the Discovery Agent.

Run /etc/init.d/rvbd_discovery_agent start to start service