Apache & Mysql data can't be collect when Longview on Archlinux

I installed the Longview on Archlinux .But the Apache and Mysql can't be connected . I have read the documentations . create an user for mysql , paste the status code to http.conf. and then create the conf file for Longview. But it still not work. Anyone can help me ?

follow is my conf

/etc/linode/longview.d/MySQL.conf

username root

password example_password

username linode-longview

password ***aaaa

/etc/linode/longview.d/Apache.conf

location http://127.0.0.1/server-status?auto

Apache

This is the main Apache HTTP server configuration file. It contains the

configuration directives that give the server its instructions.

See http://httpd.apache.org/docs/2.4/> for detailed information.

In particular, see

http://httpd.apache.org/docs/2.4/mod/directives.html>

for a discussion of each configuration directive.

#

Do NOT simply read the instructions in here without understanding

what they do. They're here only as hints or reminders. If you are unsure

consult the online docs. You have been warned.

#

Configuration and logfile names: If the filenames you specify for many

of the server's control files begin with "/" (or "drive:/" for Win32), the

server will use that explicit path. If the filenames do not begin

with "/", the value of ServerRoot is prepended – so "logs/access_log"

with ServerRoot set to "/usr/local/apache2" will be interpreted by the

server as "/usr/local/apache2/logs/accesslog", whereas "/logs/accesslog"

will be interpreted as '/logs/access_log'.

#

ServerRoot: The top of the directory tree under which the server's

configuration, error, and log files are kept.

#

Do not add a slash at the end of the directory path. If you point

ServerRoot at a non-local disk, be sure to specify a local disk on the

Mutex directive, if file-based mutexes are used. If you wish to share the

same ServerRoot for multiple httpd daemons, you will need to change at

least PidFile.

#

ServerRoot "/etc/httpd"

#

Mutex: Allows you to set the mutex mechanism and mutex file directory

for individual mutexes, or change the global defaults

#

Uncomment and change the directory if mutexes are file-based and the default

mutex file directory is not on a local disk or is not appropriate for some

other reason.

#

Mutex default:/run/httpd

#

Listen: Allows you to bind Apache to specific IP addresses and/or

ports, instead of the default. See also the # directive.

#

Change this to Listen on specific IP addresses as shown below to

prevent Apache from glomming onto all bound IP addresses.

#

Listen 12.34.56.78:80

Listen 80

#

Dynamic Shared Object (DSO) Support

#

To be able to use the functionality of a module which was built as a DSO you

have to place corresponding `LoadModule' lines at this location so the

directives contained in it are actually available before they are used.

Statically compiled modules (those listed by `httpd -l') do not need

to be loaded here.

#

Example:

LoadModule foomodule modules/modfoo.so

#

LoadModule authnfilemodule modules/modauthnfile.so

LoadModule authndbmmodule modules/modauthndbm.so

LoadModule authnanonmodule modules/modauthnanon.so

LoadModule authndbdmodule modules/modauthndbd.so

LoadModule authnsocachemodule modules/modauthnsocache.so

LoadModule authncoremodule modules/modauthncore.so

LoadModule authzhostmodule modules/modauthzhost.so

LoadModule authzgroupfilemodule modules/modauthzgroupfile.so

LoadModule authzusermodule modules/modauthzuser.so

LoadModule authzdbmmodule modules/modauthzdbm.so

LoadModule authzownermodule modules/modauthzowner.so

LoadModule authzdbdmodule modules/modauthzdbd.so

LoadModule authzcoremodule modules/modauthzcore.so

LoadModule authnzldapmodule modules/modauthnzldap.so

LoadModule authnzfcgimodule modules/modauthnzfcgi.so

LoadModule accesscompatmodule modules/modaccesscompat.so

LoadModule authbasicmodule modules/modauthbasic.so

LoadModule authformmodule modules/modauthform.so

LoadModule authdigestmodule modules/modauthdigest.so

LoadModule allowmethodsmodule modules/modallowmethods.so

LoadModule filecachemodule modules/modfilecache.so

LoadModule cachemodule modules/modcache.so

LoadModule cachediskmodule modules/modcachedisk.so

LoadModule cachesocachemodule modules/modcachesocache.so

LoadModule socacheshmcbmodule modules/modsocacheshmcb.so

LoadModule socachedbmmodule modules/modsocachedbm.so

LoadModule socachememcachemodule modules/modsocachememcache.so

LoadModule watchdogmodule modules/modwatchdog.so

LoadModule macromodule modules/modmacro.so

LoadModule dbdmodule modules/moddbd.so

LoadModule dumpiomodule modules/moddumpio.so

LoadModule echomodule modules/modecho.so

LoadModule buffermodule modules/modbuffer.so

LoadModule datamodule modules/moddata.so

LoadModule ratelimitmodule modules/modratelimit.so

LoadModule reqtimeoutmodule modules/modreqtimeout.so

LoadModule extfiltermodule modules/modextfilter.so

LoadModule requestmodule modules/modrequest.so

LoadModule includemodule modules/modinclude.so

LoadModule filtermodule modules/modfilter.so

LoadModule reflectormodule modules/modreflector.so

LoadModule substitutemodule modules/modsubstitute.so

LoadModule sedmodule modules/modsed.so

LoadModule charsetlitemodule modules/modcharsetlite.so

LoadModule deflatemodule modules/moddeflate.so

LoadModule xml2encmodule modules/modxml2enc.so

LoadModule proxyhtmlmodule modules/modproxyhtml.so

LoadModule mimemodule modules/modmime.so

LoadModule ldapmodule modules/modldap.so

LoadModule logconfigmodule modules/modlogconfig.so

LoadModule logdebugmodule modules/modlogdebug.so

LoadModule logforensicmodule modules/modlogforensic.so

LoadModule logiomodule modules/modlogio.so

LoadModule luamodule modules/modlua.so

LoadModule envmodule modules/modenv.so

LoadModule mimemagicmodule modules/modmimemagic.so

LoadModule cernmetamodule modules/modcernmeta.so

LoadModule expiresmodule modules/modexpires.so

LoadModule headersmodule modules/modheaders.so

LoadModule identmodule modules/modident.so

LoadModule usertrackmodule modules/modusertrack.so

LoadModule uniqueidmodule modules/moduniqueid.so

LoadModule setenvifmodule modules/modsetenvif.so

LoadModule versionmodule modules/modversion.so

LoadModule remoteipmodule modules/modremoteip.so

LoadModule proxymodule modules/modproxy.so

LoadModule proxyconnectmodule modules/modproxyconnect.so

LoadModule proxyftpmodule modules/modproxyftp.so

LoadModule proxyhttpmodule modules/modproxyhttp.so

LoadModule proxyfcgimodule modules/modproxyfcgi.so

LoadModule proxyscgimodule modules/modproxyscgi.so

LoadModule proxyfdpassmodule modules/modproxyfdpass.so

LoadModule proxywstunnelmodule modules/modproxywstunnel.so

LoadModule proxyajpmodule modules/modproxyajp.so

LoadModule proxybalancermodule modules/modproxybalancer.so

LoadModule proxyexpressmodule modules/modproxyexpress.so

LoadModule sessionmodule modules/modsession.so

LoadModule sessioncookiemodule modules/modsessioncookie.so

LoadModule sessioncryptomodule modules/modsessioncrypto.so

LoadModule sessiondbdmodule modules/modsessiondbd.so

LoadModule slotmemshmmodule modules/modslotmemshm.so

LoadModule slotmemplainmodule modules/modslotmemplain.so

LoadModule sslmodule modules/modssl.so

LoadModule dialupmodule modules/moddialup.so

LoadModule lbmethodbyrequestsmodule modules/modlbmethodbyrequests.so

LoadModule lbmethodbytrafficmodule modules/modlbmethodbytraffic.so

LoadModule lbmethodbybusynessmodule modules/modlbmethodbybusyness.so

LoadModule lbmethodheartbeatmodule modules/modlbmethodheartbeat.so

LoadModule mpmeventmodule modules/modmpmevent.so

LoadModule mpmpreforkmodule modules/modmpmprefork.so

LoadModule unixdmodule modules/modunixd.so

LoadModule heartbeatmodule modules/modheartbeat.so

LoadModule heartmonitormodule modules/modheartmonitor.so

LoadModule davmodule modules/moddav.so

LoadModule statusmodule modules/modstatus.so

LoadModule autoindexmodule modules/modautoindex.so

LoadModule asismodule modules/modasis.so

LoadModule infomodule modules/modinfo.so

LoadModule suexecmodule modules/modsuexec.so

LoadModule cgidmodule modules/modcgid.so

LoadModule cgimodule modules/modcgi.so

LoadModule davfsmodule modules/moddavfs.so

LoadModule davlockmodule modules/moddavlock.so

LoadModule vhostaliasmodule modules/modvhostalias.so

LoadModule negotiationmodule modules/modnegotiation.so

LoadModule dirmodule modules/moddir.so

LoadModule php5_module modules/libphp5.so

LoadModule imagemapmodule modules/modimagemap.so

LoadModule actionsmodule modules/modactions.so

LoadModule spelingmodule modules/modspeling.so

LoadModule userdirmodule modules/moduserdir.so

LoadModule aliasmodule modules/modalias.so

LoadModule rewritemodule modules/modrewrite.so

#

If you wish httpd to run as a different user or group, you must run

httpd as root initially and it will switch.

#

User/Group: The name (or #number) of the user/group to run httpd as.

It is usually good practice to create a dedicated user and group for

running httpd, as with most system services.

#

User http

Group http

'Main' server configuration

#

The directives in this section set up the values used by the 'main'

server, which responds to any requests that aren't handled by a

definition. These values also provide defaults for

any containers you may define later in the file.

#

All of these directives may appear inside containers,

in which case these default settings will be overridden for the

virtual host being defined.

#

#

ServerAdmin: Your address, where problems with the server should be

e-mailed. This address appears on some server-generated pages, such

as error documents. e.g. admin@your-domain.com

#

ServerAdmin tpxcer@outlook.com

#

ServerName gives the name and port that the server uses to identify itself.

This can often be determined automatically, but we recommend you specify

it explicitly to prevent problems during startup.

#

If your host doesn't have a registered DNS name, enter its IP address here.

#

ServerName www.example.com:80

#

Deny access to the entirety of your server's filesystem. You must

explicitly permit access to web content directories in other

blocks below.

#

AllowOverride none

Require all denied

#

Note that from this point forward you must specifically allow

particular features to be enabled - so if something's not working as

you might expect, make sure that you have specifically enabled it

below.

#

#

DocumentRoot: The directory out of which you will serve your

documents. By default, all requests are taken from this directory, but

symbolic links and aliases may be used to point to other locations.

#

DocumentRoot "/srv/http"

#

Possible values for the Options directive are "None", "All",

or any combination of:

Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews

#

Note that "MultiViews" must be named explicitly --- "Options All"

doesn't give it to you.

#

The Options directive is both complicated and important. Please see

http://httpd.apache.org/docs/2.4/mod/core.html#options

for more information.

#

Options Indexes FollowSymLinks

#

AllowOverride controls what directives may be placed in .htaccess files.

It can be "All", "None", or any combination of the keywords:

AllowOverride FileInfo AuthConfig Limit

#

AllowOverride None

#

Controls who can get stuff from this server.

#

Require all granted

#

DirectoryIndex: sets the file that Apache will serve if a directory

is requested.

#

DirectoryIndex index.html

#

The following lines prevent .htaccess and .htpasswd files from being

viewed by Web clients.

#

Require all denied

#

ErrorLog: The location of the error log file.

If you do not specify an ErrorLog directive within a # container, error messages relating to that virtual host will be

logged here. If you do define an error logfile for a # container, that host's errors will be logged there and not here.

#

ErrorLog "/var/log/httpd/error_log"

#

LogLevel: Control the number of messages logged to the error_log.

Possible values include: debug, info, notice, warn, error, crit,

alert, emerg.

#

LogLevel warn

#

The following directives define some format nicknames for use with

a CustomLog directive (see below).

#

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined

LogFormat "%h %l %u %t \"%r\" %>s %b" common

# You need to enable mod_logio.c to use %I and %O

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio

#

The location and format of the access logfile (Common Logfile Format).

If you do not define any access logfiles within a # container, they will be logged here. Contrariwise, if you do

define per- access logfiles, transactions will be

logged therein and not in this file.

#

CustomLog "/var/log/httpd/access_log" common

#

If you prefer a logfile with access, agent, and referer information

(Combined Logfile Format) you can use the following directive.

#

CustomLog "/var/log/httpd/access_log" combined

#

Redirect: Allows you to tell clients about documents that used to

exist in your server's namespace, but do not anymore. The client

will make a new request for the document at its new location.

Example:

Redirect permanent /foo http://www.example.com/bar

#

Alias: Maps web paths into filesystem paths and is used to

access content that does not live under the DocumentRoot.

Example:

Alias /webpath /full/filesystem/path

#

If you include a trailing / on /webpath then the server will

require it to be present in the URL. You will also likely

need to provide a section to allow access to

the filesystem path.

#

ScriptAlias: This controls which directories contain server scripts.

ScriptAliases are essentially the same as Aliases, except that

documents in the target directory are treated as applications and

run by the server when requested rather than as documents sent to the

client. The same rules about trailing "/" apply to ScriptAlias

directives as to Alias.

#

ScriptAlias /cgi-bin/ "/srv/http/cgi-bin/"

#

ScriptSock: On threaded servers, designate the path to the UNIX

socket used to communicate with the CGI daemon of mod_cgid.

#

Scriptsock cgisock

#

"/srv/http/cgi-bin" should be changed to whatever your ScriptAliased

CGI directory exists, if you have that configured.

#

AllowOverride None

Options None

Require all granted

#

TypesConfig points to the file containing the list of mappings from

filename extension to MIME-type.

#

TypesConfig conf/mime.types

#

AddType allows you to add to or override the MIME configuration

file specified in TypesConfig for specific file types.

#

AddType application/x-gzip .tgz

#

AddEncoding allows you to have certain browsers uncompress

information on the fly. Note: Not all browsers support this.

#

AddEncoding x-compress .Z

AddEncoding x-gzip .gz .tgz

#

If the AddEncoding directives above are commented-out, then you

probably should define those extensions to indicate media types:

#

AddType application/x-compress .Z

AddType application/x-gzip .gz .tgz

#

AddHandler allows you to map certain file extensions to "handlers":

actions unrelated to filetype. These can be either built into the server

or added with the Action directive (see below)

#

To use CGI scripts outside of ScriptAliased directories:

(You will also need to add "ExecCGI" to the "Options" directive.)

#

AddHandler cgi-script .cgi

For type maps (negotiated resources):

AddHandler type-map var

#

Filters allow you to process content before it is sent to the client.

#

To parse .shtml files for server-side includes (SSI):

(You will also need to add "Includes" to the "Options" directive.)

#

AddType text/html .shtml

AddOutputFilter INCLUDES .shtml

#

The modmimemagic module allows the server to use various hints from the

contents of the file itself to determine its type. The MIMEMagicFile

directive tells the module where the hint definitions are located.

#

MIMEMagicFile conf/magic

#

Customizable error responses come in three flavors:

1) plain text 2) local redirects 3) external redirects

#

Some examples:

ErrorDocument 500 "The server made a boo boo."

ErrorDocument 404 /missing.html

ErrorDocument 404 "/cgi-bin/missing_handler.pl"

ErrorDocument 402 http://www.example.com/subscription_info.html

#

#

MaxRanges: Maximum number of Ranges in a request before

returning the entire resource, or one of the special

values 'default', 'none' or 'unlimited'.

Default setting is to accept 200 Ranges.

MaxRanges unlimited

#

EnableMMAP and EnableSendfile: On systems that support it,

memory-mapping or the sendfile syscall may be used to deliver

files. This usually improves server performance, but must

be turned off when serving from networked-mounted

filesystems or if support for these functions is otherwise

broken on your system.

Defaults: EnableMMAP On, EnableSendfile Off

#

EnableMMAP off

EnableSendfile on

Supplemental configuration

#

The configuration files in the conf/extra/ directory can be

included to add extra features or to modify the default configuration of

the server, or you may simply copy their contents here and change as

necessary.

Server-pool management (MPM specific)

Include conf/extra/httpd-mpm.conf

Include /etc/httpd/conf/extra/wordpress.conf

Multi-language error messages

Include conf/extra/httpd-multilang-errordoc.conf

Fancy directory listings

Include conf/extra/httpd-autoindex.conf

Language settings

Include conf/extra/httpd-languages.conf

User home directories

Include conf/extra/httpd-userdir.conf

Real-time info on requests and configuration

Include conf/extra/httpd-info.conf

Virtual hosts

Include conf/extra/httpd-vhosts.conf

Include conf/extra/www.bihell.com.conf

Include conf/extra/ss.bihell.com.conf

Local access to the Apache HTTP Server Manual

Include conf/extra/httpd-manual.conf

Distributed authoring and versioning (WebDAV)

Include conf/extra/httpd-dav.conf

Various default settings

Include conf/extra/httpd-default.conf

Include conf/extra/php5_module.conf

Configure modproxyhtml to understand HTML4/XHTML1

Include conf/extra/proxy-html.conf

Secure (SSL/TLS) connections

Include conf/extra/httpd-ssl.conf

#

Note: The following must must be present to support

starting without SSL on platforms with no /dev/random equivalent

but a statically compiled-in mod_ssl.

#

SSLRandomSeed startup builtin

SSLRandomSeed connect builtin

#

uncomment out the below to deal with user agents that deliberately

violate open standards by misusing DNT (DNT must be a specific

end-user choice)

#

#BrowserMatch "MSIE 10.0;" bad_DNT

#RequestHeader unset DNT env=bad_DNT

ExtendedStatus On

SetHandler server-status

Order deny,allow

Deny from all

Allow from 127.0.0.1

Other …

[root@bihell ~]# curl -IL http://127.0.0.1/server-status?auto

HTTP/1.1 404 Not Found

Date: Thu, 28 May 2015 02:15:44 GMT

Server: Apache/2.4.12 (Unix) PHP/5.6.9

X-Powered-By: PHP/5.6.9

Vary: Cookie

X-Pingback: http://www.bihell.com/xmlrpc.php

Expires: Wed, 11 Jan 1984 05:00:00 GMT

Cache-Control: no-cache, must-revalidate, max-age=0

Pragma: no-cache

Connection: close

Content-Type: text/html; charset=UTF-8

[root@bihell ~]# ls -lisa /etc/linode/longview.d/{MySQL.conf,Apache.conf}

278557 4.0K -rw-r–r-- 1 root root 45 May 28 00:30 /etc/linode/longview.d/Apache.conf

278556 4.0K -rw-r--r-- 1 root root 91 May 28 01:08 /etc/linode/longview.d/MySQL.conf

[root@bihell ~]# apachectl -S

VirtualHost configuration:

*:80 is a NameVirtualHost

default server bihell.com (/etc/httpd/conf/extra/www.bihell.com.conf:1)

port 80 namevhost bihell.com (/etc/httpd/conf/extra/www.bihell.com.conf:1)

alias www.bihell.com

port 80 namevhost ss.bihell.com (/etc/httpd/conf/extra/ss.bihell.com.conf:1)

alias ss.bihell.com

ServerRoot: "/etc/httpd"

Main DocumentRoot: "/srv/http"

Main ErrorLog: "/var/log/httpd/error_log"

Mutex mpm-accept: using_defaults

Mutex proxy-balancer-shm: using_defaults

Mutex rewrite-map: using_defaults

Mutex proxy: using_defaults

Mutex default: dir="/run/httpd/" mechanism=default

PidFile: "/run/httpd/httpd.pid"

Define: DUMP_VHOSTS

Define: DUMPRUNCFG

User: name="http" id=33

Group: name="http" id=33

Another Problem.

The folder & file (longview.d/{MySQL.conf,Apache.conf}) was create by myself . After I put these files into /etc/linode and restart the longview service . The Longview will not collect any data ….

1 Reply

Linode Longview does not support Arch. The list of supported distributions can be found here: https://www.linode.com/docs/platform/lo … tributions">https://www.linode.com/docs/platform/longview/longview#supported-distributions

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