Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Check OpCache Status
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
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
Reviews (0)
Be the first to review this listing!