Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add curl options to allow running check_opcache by Nagios agents #13

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gfernandez598
Copy link

Hi,
Trying to perform opcache checks using Nagios agents running on the same server as PHP/Moodle, we come across a situation where the site/Moodle runs behind a proxy which is the only place where the domain certificates are located, so we must be able to ignore or trust the local server certificates. Also, the certificates may not match the domain name/local site where the Nagios agent wants to perform the check.

This PR attempts to solve the described situations adding optional parameters to the cli/check_opcache.php
An example to test it.
sudo -u www-data /usr/bin/php admin/tool/cli/check_opcache.php ". "--url=\"https://127.0.0.1/admin/tool/opcache/cli/check_opcache_web.php\" --domain=example.com --warning=75 --critical=85 --insecure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant