Package: collective.monitor
ContentsIntroductionProbesHow it worksContributorsChangelog0.2.6.1 (2018-02-01)0.2.6 (2018-01-30)0.2.5 (2016-02-25)0.2.4 (2015-09-03)0.2.3 (2015-08-25)0.2.2 (2015-08-18)0.2.1 (2015-08-13)0.2.0 (2015-08-11)0.1.2 (2015-07-24)0.1.1 (2015-07-22)0.1 (2015-07-17)IntroductionSee the doc ofhttp://pypi.python.org/pypi/five.z2monitorUse zc.monitor and additional plugins to fetch probes via another thread than the one defined in Zope.Once the instance is running zc.monitor thread listen to another port (127.0.0.1:8888 in this buildout). You can query values using simple python script or nc.Example:echo 'uptime' | nc -i 1 localhost 8888Or (when instance is up):bin/instance monitor statsOr:telnet 127.0.0.1 8888

dbsizeProbesCurrently supported probes:cache_size – cache sizes informationscheck_smtp – Check if SMTP is initialize, return number of errors found.check_upgrade_steps – Check if all upgrade steps are ran.conflictcount – number of all conflict errors since startupcount_users – the total amount of users in your plone sitecount_valid_users – Count all users connected since 90 dayscpu_times – ?creation_date_plonesite – Get creation date of plonesite object. Default return unix_time (defaut=True) if you want ISO time call ‘False’ attr.dates – Return all date probesdbactivity – number of load, store and connections on database (default=main) for the last x minutes (default=5)dbinfo – Get database statisticsdbsize – size of the database (default=main) in byteserrorcount – number of error present in error_log (default in the root).health_ok – fast health check for load balancers that simply returns ‘OK’ (see doc/haproxy for usage)health_db_connected  – returns the string ‘OK’ if database (default=main) is connected. (see doc/haproxy for usage)help – Get help about server commandsinteractive – Turn on monitor’s interactive modelast_login_time – Get last login time user. Default return unix_time (defaut=True) if you want ISO time call ‘False’ attr.last_modified_plone_object_time – Get last modified plone object time. Default return unix_time (defaut=True) if you want ISO time call ‘False’ attr.last_modified_zope_object_time – Get last modified zope object time. Default return unix_time (defaut=True) if you want ISO time call ‘False’ attr.logstats – ?memory_percent – ?monitor – Get general process infoobjectcount – number of object in the database (default=main)quit – Quit the monitorrefcount – the total amount of object reference countsrequestqueue_size – number of requests waiting in the queue to be handled by zope threadsstats – Stats of all information Products.ZNagios knowthreads – Dump current threads execution stackunresolved_conflictcount – number of all unresolved conflict errors since startupuptime – uptime of the zope instance in secondszeocache – Get ZEO client cache statisticszeostatus – Get ZEO client status informationHow it worksThis package use differents packagefive.z2monitorProducts.ZNagiosmunin.zopezc.z3monitorzc.monitorcachezc.monitorlogstatsAdd lines on your buildout:[instance]
...
zope-conf-additional =
  <product-config five.z2monitor>
    bind 127.0.0.1:8888
  </product-config>ContributorsNote:  place names and roles of the people who contribute to this packagein this file, one to a line, like so:Benoît Suttor <bsuttor@imio.be>, Original AuthorHarald Friessnegger (Webmeisterei GmbH)Changelog0.2.6.1 (2018-02-01)Close database connection after health check and improve haproxy documentation
[fRiSi]0.2.6 (2018-01-30)Add probes for load balancer health-checks (see doc/haproxy.rst for an example)
[fRiSi]0.2.5 (2016-02-25)Remove old threadframe dependency package.
[bsuttor]0.2.4 (2015-09-03)Add eggs probe.
[bsuttor]0.2.3 (2015-08-25)Return unix_time by default, you can still get ISO time with call parameters False.
[bsuttor]0.2.2 (2015-08-18)Fix error if last_login is empty.
[bsuttor]0.2.1 (2015-08-13)Return date in ISO format
[bsuttor]0.2.0 (2015-08-11)Add a probe (dates) which return all probes date.
[bsuttor]Add last_login_time porbe.
[bsuttor]Add last_modified_plone_object_time probe.
[bsuttor]Add last_modified_zope_object_time probe.
[bsuttor]0.1.2 (2015-07-24)Date probe are not more in stats probe (from Products.ZNagios).
[bsuttor]Add creation_date_plonesite probe
[bsuttor]0.1.1 (2015-07-22)Return number of smtp errors found.
[bsuttor]0.1 (2015-07-17)Add count_users probe
[bsuttor]Initial package
[bsuttor]