cancel
Showing results for 
Search instead for 
Did you mean: 

how to monitor alfresco 4 on cacti

sharifu
Confirmed Champ
Confirmed Champ
How can i monitor alfresco 4.0d on cacti?

Has anyone done this
5 REPLIES 5

jpotts
World-Class Innovator
World-Class Innovator
Is JMX a requirement? If so, be aware that JMX isn't available in Alfresco Community Edition.

Jeff

sharifu
Confirmed Champ
Confirmed Champ
will it become available in future? I have managed to set up cacti using percona templates would i be bale to use this to tune java settings?


[img]http://i.imgur.com/pLM6NiJ.png[/img]



sharifu
Confirmed Champ
Confirmed Champ
I have come across a few sites about tomcat and jmx but i never got it working. is alfresco possible to monitor on cacti?

mrogers
Star Contributor
Star Contributor
Summarising this thread the answer seems to be yes, But its better to use SNTP on JBOSS or JMX on plain tomcat.
http://forums.cacti.net/viewtopic.php?p=127420

A clarification to Jeff's posting.  You can use JMX with alfresco community but all you will get is the bog standard tomcat JMX stuff,  what you won't get is the alfresco specific JMX extensions.

I have been trying to follow that link but I cannot seem to get it to work. I get the following message:


401 Unauthorized

You are not authorized to view this page. If you have not changed any configuration files, please examine the file conf/tomcat-users.xml in your installation. That file must contain the credentials to let you use this webapp.

For example, to add the manager-gui role to a user named tomcat with a password of s3cret, add the following to the config file listed above.

<role rolename="manager-gui"/>
<user username="tomcat" password="s3cret" roles="manager-gui"/>

Note that for Tomcat 7 onwards, the roles required to use the manager application were changed from the single manager role to the following four roles. You will need to assign the role(s) required for the functionality you wish to access.

    manager-gui - allows access to the HTML GUI and the status pages
    manager-script - allows access to the text interface and the status pages
    manager-jmx - allows access to the JMX proxy and the status pages
    manager-status - allows access to the status pages only

The HTML interface is protected against CSRF but the text and JMX interfaces are not. To maintain the CSRF protection:

    Users with the manager-gui role should not be granted either the manager-script or manager-jmx roles.
    If the text or jmx interfaces are accessed through a browser (e.g. for testing since these interfaces are intended for tools not humans) then the browser must be closed afterwards to terminate the session.

For more information - please see the Manager App HOW-TO.


My tomcat user is:


<tomcat-users>
   <role rolename="manager"/>
   <role rolename="manager-gui"/>
   <role rolename="manager-script"/>
   <role rolename="manager-jmx"/>
   <role rolename="manager-status"/>
   <user username="tomcat" password="passwords" roles="manager,manager-script,manager-jmx,manager-status"/>
   <user username="admin" password="passwords" roles="admin,manager,manager-gui,manager-script,manager-jmx,manager-status"/>
   
  <user username="CN=Alfresco Repository Client, OU=Unknown, O=Alfresco Software Ltd., L=Maidenhead, ST=UK, C=GB" roles="repoclient" password="null"/>
  <user username="CN=Alfresco Repository, OU=Unknown, O=Alfresco Software Ltd., L=Maidenhead, ST=UK, C=GB" roles="repository" password="null"/>
 
</tomcat-users>


When i try to access page http://alfresco:8444/manager/status?XML=true

I get the following in the log file:


Jul 17, 2013 11:26:34 AM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/core is already defined
Jul 17, 2013 11:26:35 AM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "org.apache.myfaces.webapp.StartupServletContextListener" is already configured for this context. The duplicate definition has been ignored.
Jul 17, 2013 11:26:38 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
2013-07-17 11:26:59,561  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting 'sysAdmin' subsystem, ID: [sysAdmin, default]
2013-07-17 11:26:59,592  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of 'sysAdmin' subsystem, ID: [sysAdmin, default] complete
Jul 17, 2013 11:27:17 AM org.activiti.engine.impl.ProcessEngineImpl <init>
INFO: ProcessEngine default created
2013-07-17 11:27:25,669  INFO  [extensions.webscripts.TemplateProcessorRegistry] [localhost-startStop-1] Registered template processor Repository Template Processor for extension ftl
2013-07-17 11:27:25,674  INFO  [extensions.webscripts.ScriptProcessorRegistry] [localhost-startStop-1] Registered script processor Repository Script Processor for extension js
2013-07-17 11:27:41,831  INFO  [domain.schema.SchemaBootstrap] [localhost-startStop-1] Connecting to database: jdbc:mysql://localhost:3306/alfresco?useUnicode=yes&characterEncoding=UTF-8, UserName=alfresco@localhost, MySQL-AB JDBC Driver
2013-07-17 11:27:41,831  INFO  [domain.schema.SchemaBootstrap] [localhost-startStop-1] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.
2013-07-17 11:27:42,188  INFO  [domain.schema.SchemaBootstrap] [localhost-startStop-1] No changes were made to the schema.
Jul 17, 2013 11:27:42 AM org.activiti.engine.impl.jobexecutor.JobExecutor start
INFO: Starting up the JobExecutor[org.activiti.engine.impl.jobexecutor.DefaultJobExecutor].
Jul 17, 2013 11:27:42 AM org.activiti.engine.impl.jobexecutor.AcquireJobsRunnable run
INFO: JobExecutor[org.activiti.engine.impl.jobexecutor.DefaultJobExecutor] starting to acquire jobs
2013-07-17 11:27:42,978  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting 'Search' subsystem, ID: [Search, managed, lucene]
2013-07-17 11:27:44,494  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of 'Search' subsystem, ID: [Search, managed, lucene] complete
2013-07-17 11:27:47,362  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting 'thirdparty' subsystem, ID: [thirdparty, default]
2013-07-17 11:27:47,446  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of 'thirdparty' subsystem, ID: [thirdparty, default] complete
2013-07-17 11:27:47,446  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting 'OOoDirect' subsystem, ID: [OOoDirect, default]
2013-07-17 11:27:48,622  WARN  [alfresco.util.OpenOfficeConnectionTester] [localhost-startStop-1] Error trying to query Open Office version information. OpenOffice.org's ConfigurationRegistry not implemented in this version of OOo. This should not affect the operation of OOo.
2013-07-17 11:27:48,629  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of 'OOoDirect' subsystem, ID: [OOoDirect, default] complete
2013-07-17 11:27:50,393  WARN  [node.index.FullIndexRecoveryComponent] [localhost-startStop-1] The indexes are not synchronized with the database.
2013-07-17 11:27:50,657  INFO  [repo.admin.ConfigurationChecker] [localhost-startStop-1] The Alfresco root data directory ('dir.root') is: /opt/alfresco-4.2.c/alf_data
2013-07-17 11:27:50,841  INFO  [admin.patch.PatchExecuter] [localhost-startStop-1] Checking for patches to apply …
2013-07-17 11:27:52,325  INFO  [admin.patch.PatchExecuter] [localhost-startStop-1] No patches were required.
2013-07-17 11:27:52,332  INFO  [repo.module.ModuleServiceImpl] [localhost-startStop-1] Found 0 module(s).
2013-07-17 11:27:52,385  WARN  [repo.module.ModuleServiceImpl] [localhost-startStop-1] A previously-installed module 'org.alfresco.extension.alfresco-bulk-filesystem-import' (version 0.11.34) is not present in your distribution.
2013-07-17 11:27:52,387  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting 'fileServers' subsystem, ID: [fileServers, default]
2013-07-17 11:27:53,073  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting 'Authentication' subsystem, ID: [Authentication, managed, passthru1]
2013-07-17 11:27:54,415  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of 'Authentication' subsystem, ID: [Authentication, managed, passthru1] complete
2013-07-17 11:27:54,415  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting 'Authentication' subsystem, ID: [Authentication, managed, ldap1]
2013-07-17 11:27:54,557  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of 'Authentication' subsystem, ID: [Authentication, managed, ldap1] complete
2013-07-17 11:27:59,564  WARN  [org.alfresco.fileserver] [localhost-startStop-1] CIFS, Unable to get local domain/workgroup name, using default of WORKGROUP. This may be due to firewall settings or incorrect <broadcast> setting)
2013-07-17 11:27:59,648  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of 'fileServers' subsystem, ID: [fileServers, default] complete
2013-07-17 11:27:59,648  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting 'imap' subsystem, ID: [imap, default]
2013-07-17 11:27:59,775  ERROR [org.alfresco.fileserver] [CIFS Server] [SMB] Server error : org.alfresco.jlan.server.config.InvalidConfigurationException: Error initializing TCP-IP SMB session handler, Address already in use
2013-07-17 11:27:59,781  ERROR [org.alfresco.fileserver] [CIFS Server] Error from JLAN
org.alfresco.jlan.server.config.InvalidConfigurationException: Error initializing TCP-IP SMB session handler, Address already in use
   at org.alfresco.jlan.smb.server.nio.NIOCifsConnectionsHandler.initializeHandler(NIOCifsConnectionsHandler.java:259)
   at org.alfresco.jlan.smb.server.SMBServer.run(SMBServer.java:479)
   at java.lang.Thread.run(Thread.java:722)
2013-07-17 11:27:59,783  ERROR [org.alfresco.fileserver] [FTP Server] [FTP] FTP Socket error : java.net.BindException: Address already in use
2013-07-17 11:27:59,783  ERROR [org.alfresco.fileserver] [FTP Server] Error from JLAN
java.net.BindException: Address already in use
   at java.net.PlainSocketImpl.socketBind(Native Method)
   at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376)
   at java.net.ServerSocket.bind(ServerSocket.java:376)
   at java.net.ServerSocket.<init>(ServerSocket.java:237)
   at java.net.ServerSocket.<init>(ServerSocket.java:181)
   at org.alfresco.jlan.ftp.FTPServer.run(FTPServer.java:554)
   at java.lang.Thread.run(Thread.java:722)
2013-07-17 11:27:59,854  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of 'imap' subsystem, ID: [imap, default] complete
2013-07-17 11:27:59,854  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting 'email' subsystem, ID: [email, outbound]
2013-07-17 11:27:59,913  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of 'email' subsystem, ID: [email, outbound] complete
2013-07-17 11:27:59,913  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting 'email' subsystem, ID: [email, inbound]
2013-07-17 11:28:00,134  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of 'email' subsystem, ID: [email, inbound] complete
2013-07-17 11:28:00,134  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting 'googledocs' subsystem, ID: [googledocs, default]
2013-07-17 11:28:00,973  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of 'googledocs' subsystem, ID: [googledocs, default] complete
2013-07-17 11:28:00,973  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting 'Subscriptions' subsystem, ID: [Subscriptions, default]
2013-07-17 11:28:00,991  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of 'Subscriptions' subsystem, ID: [Subscriptions, default] complete
2013-07-17 11:28:01,001  INFO  [repo.usage.UserUsageTrackingComponent] [localhost-startStop-1] Disabled - clear non-missing user usages …
2013-07-17 11:28:01,035  INFO  [repo.usage.UserUsageTrackingComponent] [localhost-startStop-1] Found 0 users to clear
2013-07-17 11:28:01,035  INFO  [repo.usage.UserUsageTrackingComponent] [localhost-startStop-1] … cleared non-missing usages for 0 users
2013-07-17 11:28:01,036  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting 'Synchronization' subsystem, ID: [Synchronization, default]
2013-07-17 11:28:01,210  INFO  [security.sync.ChainingUserRegistrySynchronizer] [localhost-startStop-1] Synchronizing users and groups with user registry 'ldap1'
2013-07-17 11:28:01,245  INFO  [security.sync.ChainingUserRegistrySynchronizer] [localhost-startStop-1] Retrieving groups changed since Jul 17, 2013 10:57:32 AM from user registry 'ldap1'
2013-07-17 11:28:01,924  INFO  [security.sync.ChainingUserRegistrySynchronizer] [localhost-startStop-1] ldap1 Group Analysis: Commencing batch of 0 entries
2013-07-17 11:28:01,926  INFO  [security.sync.ChainingUserRegistrySynchronizer] [localhost-startStop-1] ldap1 Group Analysis: Completed batch of 0 entries
2013-07-17 11:28:01,935  INFO  [security.sync.ChainingUserRegistrySynchronizer] [localhost-startStop-1] Retrieving users changed since Jul 17, 2013 9:59:34 AM from user registry 'ldap1'
2013-07-17 11:28:01,973  INFO  [security.sync.ChainingUserRegistrySynchronizer] [localhost-startStop-1] ldap1 User Creation and Association: Commencing batch of 0 entries
2013-07-17 11:28:01,973  INFO  [security.sync.ChainingUserRegistrySynchronizer] [localhost-startStop-1] ldap1 User Creation and Association: Completed batch of 0 entries
2013-07-17 11:28:02,040  INFO  [security.sync.ChainingUserRegistrySynchronizer] [localhost-startStop-1] Finished synchronizing users and groups with user registry 'ldap1'
2013-07-17 11:28:02,040  INFO  [security.sync.ChainingUserRegistrySynchronizer] [localhost-startStop-1] 0 user(s) and 0 group(s) processed
2013-07-17 11:28:02,065  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of 'Synchronization' subsystem, ID: [Synchronization, default] complete
2013-07-17 11:28:02,444  INFO  [service.descriptor.DescriptorService] [localhost-startStop-1] Alfresco JVM - v1.7.0_07-b10; maximum heap size 2969.625MB
2013-07-17 11:28:02,445  INFO  [service.descriptor.DescriptorService] [localhost-startStop-1] Alfresco started (Community). Current version: 4.2.0 (4576) schema 6,022. Originally installed version: 3.4.0 (d 3370) schema 4,113.
2013-07-17 11:28:02,446  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting 'ActivitiesFeed' subsystem, ID: [ActivitiesFeed, default]
2013-07-17 11:28:02,573  WARN  [alfresco.util.AbstractTriggerBean] [localhost-startStop-1] Job feedNotifierTrigger is not enabled
2013-07-17 11:28:02,573  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of 'ActivitiesFeed' subsystem, ID: [ActivitiesFeed, default] complete
2013-07-17 11:28:02,573  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting 'Replication' subsystem, ID: [Replication, default]
2013-07-17 11:28:02,590  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of 'Replication' subsystem, ID: [Replication, default] complete
2013-07-17 11:28:24,541  INFO  [extensions.webscripts.DeclarativeRegistry] [localhost-startStop-1] Registered 477 Web Scripts (+0 failed), 757 URLs
2013-07-17 11:28:24,541  INFO  [extensions.webscripts.DeclarativeRegistry] [localhost-startStop-1] Registered 2 Package Description Documents (+0 failed)
2013-07-17 11:28:24,541  INFO  [extensions.webscripts.DeclarativeRegistry] [localhost-startStop-1] Registered 1 Schema Description Documents (+0 failed)
2013-07-17 11:28:24,545  INFO  [extensions.webscripts.AbstractRuntimeContainer] [localhost-startStop-1] Initialised Repository Web Script Container (in 18214.25ms)
2013-07-17 11:28:24,575  INFO  [extensions.webscripts.TemplateProcessorRegistry] [localhost-startStop-1] Registered template processor freemarker for extension ftl
2013-07-17 11:28:24,578  INFO  [extensions.webscripts.ScriptProcessorRegistry] [localhost-startStop-1] Registered script processor javascript for extension js
Jul 17, 2013 11:28:24 AM com.sun.xml.ws.transport.http.servlet.WSServletContextListener contextInitialized
INFO: WSSERVLET12: JAX-WS context listener initializing
Jul 17, 2013 11:28:34 AM com.sun.xml.ws.transport.http.servlet.WSServletDelegate <init>
INFO: WSSERVLET14: JAX-WS servlet initializing
Jul 17, 2013 11:28:35 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /opt/alfresco-4.2.c/tomcat/webapps/ROOT
Jul 17, 2013 11:28:35 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /opt/alfresco-4.2.c/tomcat/webapps/host-manager
Jul 17, 2013 11:28:36 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-apr-8444"]
Jul 17, 2013 11:28:36 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 465390 ms