Home Directory Plugins Software Check OpCache Status

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Check OpCache Status

Rating
0 votes
Favoured:
0
Current Version
0.13
Last Release Date
2016-10-03
Compatible With
  • Nagios 3.x
  • Nagios 4.x
License
GPL
Hits
7807
Files:
FileDescription
check_opcache.tgzcheck_opcache.tgz
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Check PHP OpCache Status and display some performance data.
1. Put check_opcache.php to web directory of monitored server (www.example.com)

2. Put check_opcache_curl.php to /usr/lib/nagios/plugins or /usr/lib64/nagios/plugins

3. Add to /etc/nagios/objects/commands.cfg

define command{
command_name check_opcache
command_line /usr/bin/php $USER1$/check_opcode_curl.php -u $ARG1$
}


4. Add to nagios services

define service{
use local-service,srv-pnp
host_name www
service_description Check OpCache Status
check_command check_opcache!http://www.example.com/check_opcache.php
}

5. If you are using PNP4NAGIOS move and rename check_opcache-pnp4nagios-template.php to /usr/share/nagios/html/pnp4nagios/templates/check_opcache.php