Debian 7 - Longview Installation - Apache/mysql

Linode Staff

I'm having some trouble getting Longview to work using Debian 7. Below is a bit of my longview.log. Any suggestions?

var/log/linode$ tail -100 longview.log
[...snip...]
07/29 21:24:30 INFO Longview[15826] - Starting Longview Agent version 1.1.5
07/29 21:24:30 INFO Longview[15827] - Loading module /opt/linode/longview/Linode/Longview/DataGetter/Disk.pm
07/29 21:24:30 INFO Longview[15827] - Loading module /opt/linode/longview/Linode/Longview/DataGetter/Processes.pm
07/29 21:24:30 INFO Longview[15827] - Loading module /opt/linode/longview/Linode/Longview/DataGetter/Network.pm
07/29 21:24:30 INFO Longview[15827] - Loading module /opt/linode/longview/Linode/Longview/DataGetter/SysInfo.pm
07/29 21:24:30 INFO Longview[15827] - Loading module /opt/linode/longview/Linode/Longview/DataGetter/Ports.pm
07/29 21:24:30 INFO Longview[15827] - Loading module /opt/linode/longview/Linode/Longview/DataGetter/Memory.pm
07/29 21:24:30 INFO Longview[15827] - Loading module /opt/linode/longview/Linode/Longview/DataGetter/CPU.pm
07/29 21:24:30 INFO Longview[15827] - Loading module /opt/linode/longview/Linode/Longview/DataGetter/Applications/MySQL.pm
07/29 21:24:30 INFO Longview[15827] - Loading module /opt/linode/longview/Linode/Longview/DataGetter/Applications/Nginx.pm
07/29 21:24:30 INFO Longview[15827] - Loading module /opt/linode/longview/Linode/Longview/DataGetter/Applications/Apache.pm
07/29 21:24:30 INFO Longview[15827] - Loading module /opt/linode/longview/Linode/Longview/DataGetter/Packages/APT.pm
07/29 21:24:30 INFO Longview[15827] - Start up complete
07/29 21:24:30 ERROR Longview[15827] - Unable to access local server status for Apache at http://127.0.0.1/server-status?auto: 403 Forbidden
07/29 21:24:30 WARN Longview[15827] - install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl . /opt/linode/longview/Linode/../ /opt/linode/longview/Linode/../lib/perl5 /opt/linode/longview/Linode/../lib/perl5/x86_64-linux-gnu-thread-multi/ /opt/linode/longview/Linode/../usr/include) at (eval 413) line 3.
Perhaps the DBD::mysql perl module hasn't been fully installed,
or perhaps the capitalisation of 'mysql' isn't right.
Available drivers: DBM, ExampleP, File, Gofer, Proxy, Sponge.
at /opt/linode/longview/Linode/Longview/DataGetter/Applications/MySQL.pm line 69

1 Reply

Taking a look at the error messages you provided, it seems like you ran into 2 main issues:

install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC
Unable to access local server status for Apache at http://127.0.0.1/server-status?auto: 403 Forbidden

It looks like you are missing the mysql-perl library to get MySQL monitoring configured. Run the following to install it:

sudo apt-get install libdbd-mysql-perl

The 403 error you are getting indicates that Apache did not enable mod_status when Longview client was installed. You can try to fix this automatically with the below command, or reference Apache Server Manual Configuration for instructions on doing it manually.

sudo dpkg-reconfigure -phigh linode-longview

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct