Skip to content

dreamwerx/prtg-opcache-status

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

prtg-opcache-status

A small php script which is called from PRTG to collect the status / performance of the php OpCache / APCu for web applications. It returns multiple channels of data:

  • Memory Limit
  • Memory Free
  • Memory Used
  • Cache Entry Count
  • Average Request Rate /s
  • Average Hit Rate /s
  • Average Miss Rate /s
  • Average Insert Rate /s
  • Current Request Rate /s
  • Current Hit Rate /s
  • Current Miss Rate /s
  • Current Insert Rate /s

Requirements

  • PRTG
  • APC - APC must be installed an activated

Installation

Just copy up the script to a publically accessable web location.
I've committed into the application repository so it goes up automatically with code depoloyments and lands on the entire fleet of servers.

In PRTG - when you have more than 1 application(php) server, you should be monitoring each individually. I have this sensor activated for each php server in each fleet.

Create a new HTTP Data Advanced sensor in PRTG and point it at the URL where it can reach the script.

License

The Unlicense

About

A PHP script to feed opcache / apcu data into PRTG

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages