Download - Monitoring Alfresco with Nagios/Icinga
![Page 1: Monitoring Alfresco with Nagios/Icinga](https://reader030.vdocuments.net/reader030/viewer/2022020715/5469c636af7959ff128b4d34/html5/thumbnails/1.jpg)
Monitoring Alfresco with Nagios/Icinga
Toni de la FuenteAlfresco Senior Solutions EngineerBlog: blyx.com Twitter: @ToniBlyx
![Page 2: Monitoring Alfresco with Nagios/Icinga](https://reader030.vdocuments.net/reader030/viewer/2022020715/5469c636af7959ff128b4d34/html5/thumbnails/2.jpg)
Monitoring Alfresco with Nagios/Icinga
Toni de la FuenteAlfresco Senior Solutions EngineerBlog: blyx.com Twitter: @ToniBlyx
![Page 3: Monitoring Alfresco with Nagios/Icinga](https://reader030.vdocuments.net/reader030/viewer/2022020715/5469c636af7959ff128b4d34/html5/thumbnails/3.jpg)
Agenda
• Monitoring Alfresco• What is Nagios and Icinga?• How it works?• Alfresco Plugin • Installation and configuration• Screenshots• Resources
![Page 4: Monitoring Alfresco with Nagios/Icinga](https://reader030.vdocuments.net/reader030/viewer/2022020715/5469c636af7959ff128b4d34/html5/thumbnails/4.jpg)
Monitoring Alfresco
• Several ways:• JMX• Logging• TCP/UDP• ICMP• Profiling
• Why monitoring?• Control• Metrics• Provisioning• Bottlenecks• Problems• Performance• Scalation• Alerts• Threshold• Historic
![Page 5: Monitoring Alfresco with Nagios/Icinga](https://reader030.vdocuments.net/reader030/viewer/2022020715/5469c636af7959ff128b4d34/html5/thumbnails/5.jpg)
How Can I Get Full Monitoring of Alfresco?
![Page 6: Monitoring Alfresco with Nagios/Icinga](https://reader030.vdocuments.net/reader030/viewer/2022020715/5469c636af7959ff128b4d34/html5/thumbnails/6.jpg)
How Can I Get Full Monitoring of Alfresco?
• Nagios or Icinga + nagios4alfresco plugin
![Page 7: Monitoring Alfresco with Nagios/Icinga](https://reader030.vdocuments.net/reader030/viewer/2022020715/5469c636af7959ff128b4d34/html5/thumbnails/7.jpg)
What is Nagios and Icinga?
Nagios• Open Source
monitoring software
• 1999 – NetSaint
• Thousands of downloads and live installations
• Very flexible
• Various notification options, alerts and scalations
• Plugins and modules
Icinga
• Nagios fork 2009
• Supports DB backend
• Icinga-web PHP
• Icinga Reports based on Jasper Reports (optional)
![Page 8: Monitoring Alfresco with Nagios/Icinga](https://reader030.vdocuments.net/reader030/viewer/2022020715/5469c636af7959ff128b4d34/html5/thumbnails/8.jpg)
How it works?
Check plugins• “check_smth”
• Standard (TCP and UDP) plugins
• Service specific (MySQL, IMAP, SMTP, etc.)
• Custom plugins (check_jmx)
• Derivates check_jmx check_alfresco
![Page 9: Monitoring Alfresco with Nagios/Icinga](https://reader030.vdocuments.net/reader030/viewer/2022020715/5469c636af7959ff128b4d34/html5/thumbnails/9.jpg)
How to monitoring Alfresco?
• TCP and JMX• Nagios plugin for Alfresco 1.1
• http://addons.alfresco.com/addons/alfresco-nagios-icinga-plugin/• For Alfresco Enterprise 3.2 and above• Easy and quick install
• README file• Copy check_alfresco and check_alfresco.jar files to plugins/libexec
directory • Copy and edit alfresco-server.cfg• Copy and edit alfresco-commands.cfg • Reload Nagios config
• Install pnp4nagios• Performance data supported on plugin• Enable performance data on Nagios
![Page 10: Monitoring Alfresco with Nagios/Icinga](https://reader030.vdocuments.net/reader030/viewer/2022020715/5469c636af7959ff128b4d34/html5/thumbnails/10.jpg)
How to monitoring Alfresco?
• TCP and JMX• Nagios plugin for Alfresco 1.1
• http://addons.alfresco.com/addons/alfresco-nagios-icinga-plugin/• For Alfresco Enterprise 3.2 and above• Easy and quick install
• README file• Copy check_alfresco and check_alfresco.jar files to plugins/libexec
directory • Copy and edit alfresco-server.cfg• Copy and edit alfresco-commands.cfg • Reload Nagios config
• Install pnp4nagios• Performance data supported on plugin• Enable performance data on Nagios
![Page 11: Monitoring Alfresco with Nagios/Icinga](https://reader030.vdocuments.net/reader030/viewer/2022020715/5469c636af7959ff128b4d34/html5/thumbnails/11.jpg)
alfresco-commands.cfg• Config file with all Alfresco specific check commands definitions• Sample command definition:
alfresco-server.cfg• Sample config file for an Alfresco server (template, name, IP address, icon, etc.)• Sample check:
![Page 12: Monitoring Alfresco with Nagios/Icinga](https://reader030.vdocuments.net/reader030/viewer/2022020715/5469c636af7959ff128b4d34/html5/thumbnails/12.jpg)
Default Monitoring Checks• 28 Alfresco JMX specific checks
•
Heap Memory Usage
•
System Load Average
•
Thread Count
•
Number of Total Users
•
Number of Total Groups
•
Connection Pool
•
ContentStore Size Free
•
ContentStore Deleted Size Free
•
Audit Store Size
•
Hibernate Connect Count
•
Lucene Indexes SpacesStore Used Size
•
Lucene Indexes SpacesStore Num Docs
•
Repo Sessions
•
Repo Users Connected
•
Total Memory Used
•
Free Memory
•
Max Memory
•
Cache Size
•
Max Doc Alfresco Core
•
Number of Docs Alfresco Core
•
Max Doc Archive Core
•
Number of Docs Archive Core
•
Number of Activiti Task Instances
•
Number of Activiti Workflow Instances
•
Number of Activiti Workflow Definitions Deployed
•
Number of JBPM Task Instances
•
Number of JBPM Workflow Instances
•
Number of JBPM Workflow Definitions Deployed
• 11 OS and network related checks
• Ping
• TCP ports availability and response time
• App Server (8080)
• SSH (22)
• Web Server (80)
• Jetty (SPP – 7070)
• FTP (21)
• CIFS (139 and 445)
• RMI (50500)
• SMTP (inbound – 25)
![Page 13: Monitoring Alfresco with Nagios/Icinga](https://reader030.vdocuments.net/reader030/viewer/2022020715/5469c636af7959ff128b4d34/html5/thumbnails/13.jpg)
New plugin version 1.2
• New version of nagios4alfresco plugin• Tested with Alfresco Enterprise 4.1.1
• Added SOLR + Workflow info• Commented Lucene, Hibernate, Audit storage checks• Changed default CIFS ports to 1445 and 1139
• Released Nov 13th
• Next releases and roadmap• Add more SOLR information• Add more OS related and protocol specific checks
![Page 14: Monitoring Alfresco with Nagios/Icinga](https://reader030.vdocuments.net/reader030/viewer/2022020715/5469c636af7959ff128b4d34/html5/thumbnails/14.jpg)
Monitoring Community with JMXNot Alfresco EE - JMX layer specific, but Tomcat, for example:
• check_alfresco connections to Tomcat variables (File Descriptors, Load Average, Heap Memory Used, Number of Threads or Share Caches)• check_http 80 and 8080 ports for apache web proxy and tomcat• check_snmp for several general parameter (disks, memory, cpu, load, swap)• check_tcp conections to CIFS, FTP, RMI ports of Alfresco ECM• check_tomcat for servlet container monitorization via server status• check_mysqld for nice mysql graph stats and db net traffic
![Page 15: Monitoring Alfresco with Nagios/Icinga](https://reader030.vdocuments.net/reader030/viewer/2022020715/5469c636af7959ff128b4d34/html5/thumbnails/15.jpg)
Access
• http://<yourserver>/nagios - classic web interface for Nagios• http://<yourserver>/icinga - classic web interface for Icinga• http://<yourserver>/icinga-web - new web interface• http://<yourserver>/pnp4nagios - graphs (and mobile access)
![Page 16: Monitoring Alfresco with Nagios/Icinga](https://reader030.vdocuments.net/reader030/viewer/2022020715/5469c636af7959ff128b4d34/html5/thumbnails/16.jpg)
Icinga classic web interface (Nagios)• Always monitoring! • Nagios4Alfresco Plugin
+33 checks
![Page 17: Monitoring Alfresco with Nagios/Icinga](https://reader030.vdocuments.net/reader030/viewer/2022020715/5469c636af7959ff128b4d34/html5/thumbnails/17.jpg)
How Icinga Looks Like?
![Page 18: Monitoring Alfresco with Nagios/Icinga](https://reader030.vdocuments.net/reader030/viewer/2022020715/5469c636af7959ff128b4d34/html5/thumbnails/18.jpg)
pnp4nagios: Graphs Everywhere
• Rrd tool + nagios pefdata
![Page 19: Monitoring Alfresco with Nagios/Icinga](https://reader030.vdocuments.net/reader030/viewer/2022020715/5469c636af7959ff128b4d34/html5/thumbnails/19.jpg)
Mobile Monitoring
• pnp4nagios has its own mobile interface
![Page 20: Monitoring Alfresco with Nagios/Icinga](https://reader030.vdocuments.net/reader030/viewer/2022020715/5469c636af7959ff128b4d34/html5/thumbnails/20.jpg)
Troubleshooting• Ports and firewall (open only to your monitoring server!):
### RMI service ports ###alfresco.rmi.services.port=50500avm.rmi.service.port=50501avmsync.rmi.service.port=50502attribute.rmi.service.port=50503authentication.rmi.service.port=50504repo.rmi.service.port=50505action.rmi.service.port=50506deployment.rmi.service.port=50507
• Credentials•Change alfresco-jmxrmi.access and alfresco-jmxrmi.password (out of class path)•Read only for checks!!•Test with jconsole
![Page 21: Monitoring Alfresco with Nagios/Icinga](https://reader030.vdocuments.net/reader030/viewer/2022020715/5469c636af7959ff128b4d34/html5/thumbnails/21.jpg)
Resources• Nagios
• http://www.nagios.org
• Icinga• http://www.icinga.org
• pnp4nagios• http://www.pnp4nagios.org
• Nagios4alfresco plugin • http://
addons.alfresco.com/addons/alfresco-nagios-icinga-plugin
• JavaMelody • http://code.google.com/p/
javamelody/
• Hyperic• http://www.hyperic.com
• NewRelic• http://www.newrelic.com
• AppDynamics• http://
www.appdynamics.com
• blyx.com• http://blyx.com
![Page 22: Monitoring Alfresco with Nagios/Icinga](https://reader030.vdocuments.net/reader030/viewer/2022020715/5469c636af7959ff128b4d34/html5/thumbnails/22.jpg)
I would like to share my monitor server for testing purposes
• Not for production just test, gathering stats and add commands to the plugin
• No alerts mails or sms.
• Drop me an email: [email protected] • IP address• JMX port• JMX read only user and password
• I will give you web access to see your server stats• Remember, personal project! Not SLA to apply :P• Up to 20 servers total
![Page 23: Monitoring Alfresco with Nagios/Icinga](https://reader030.vdocuments.net/reader030/viewer/2022020715/5469c636af7959ff128b4d34/html5/thumbnails/23.jpg)
# while you=applause; do
echo THANKS!;done
Toni de la FuenteAlfresco Senior Solutions EngineerBlog: blyx.com Twitter: @ToniBlyx
![Page 24: Monitoring Alfresco with Nagios/Icinga](https://reader030.vdocuments.net/reader030/viewer/2022020715/5469c636af7959ff128b4d34/html5/thumbnails/24.jpg)
# while you=applause; do
echo THANKS!;done
Toni de la FuenteAlfresco Senior Solutions EngineerBlog: blyx.com Twitter: @ToniBlyx