Skip to content

whmcs-status: 403 error recieved #861

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

Open
5 of 8 tasks
scarecr0w12 opened this issue Apr 6, 2025 · 1 comment
Open
5 of 8 tasks

whmcs-status: 403 error recieved #861

scarecr0w12 opened this issue Apr 6, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@scarecr0w12
Copy link

This issue respects the following points:

Which variant of the Monitoring Plugins do you use?

  • .rpm/.deb package from repo.linuxfabrik.ch
  • Compiled for Linux from download.linuxfabrik.ch
  • Compiled for Windows from download.linuxfabrik.ch
  • Source Code from GitHub

Bug description

When trying to run the WHMCS-Status check, a 403 is returned to icinga2, however running the check manually via CLI returns expected responses.

Steps to reproduce - Plugin call

'/usr/lib64/nagios/plugins/whmcs-status' '--identifier' '' '--insecure' '--password' '' '--secret' '' '--timeout' '10' '--url' 'https://clientarea.thecorehosting.net/' '--username' ''

Steps to reproduce - Data

HTTP error "403 Forbidden" while fetching https://clientarea.thecorehosting.net//includes/api.php
Is returned when attempting to run the check via the Icinga2 Web

root@vin-mon-master:~/monitoring-plugins# '/usr/lib64/nagios/plugins/whmcs-status' '--identifier' '<api-Identifier>' '--insecure' '--password' '<user-password>' '--secret' '<api-secret>' '--timeout' '10' '--url' 'https://clientarea.thecorehosting.net/' '--username' '<username>'
There are 6 messages, ordered by severity.

* PHP: Your system is set to display errors. While this is useful for some debugging situations, it can interfere with some operations and is a security risk. For more information please refer to our documentation. (error) [WARNING]
* WHMCS: Your configuration file is writable. This can be a security risk. We recommend setting the permissions to read only.You can learn more about this in our documentation. (error) [WARNING]
* PHP: Your environment appears to be running a different PHP version (*8.1.32*) for the System Cron than the currently loaded PHP version (*8.2.28*). This may cause issues running your System Cron. Learn More (warning) [WARNING]
* WHMCS: Customising the default directory paths for some parts of WHMCS makes it more difficult for malicious users to find them. Your installation is currently using the following default paths: *templates_c*.  *crons*. Please refer to our Further Security Steps for information on how to change these. (warning) [WARNING]
* WHMCS: Module debugging is currently enabled. We recommend that you disable this when you finish debugging. Continuous use may degrade performance. For more information, see our documentation. (warning) [WARNING]
* PHP: Your PHP version *8.2.28* is supported by WHMCS. Your PHP version does not receive regular updates but is the latest supported by WHMCS. (info)

Environment

Linux vin-mon-master 6.8.0-53-generic #55-Ubuntu SMP PREEMPT_DYNAMIC Fri Jan 17 15:37:52 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux

Plugin Version

whmcs-status: v2025021501 by Linuxfabrik GmbH, Zurich/Switzerland

Python version

No response

List of Python modules

No response

Additional Information

No response

@scarecr0w12 scarecr0w12 added the bug Something isn't working label Apr 6, 2025
@markuslf
Copy link
Member

markuslf commented Apr 7, 2025

I suspect this is not plugin related - the check tries to access WHCMS, but it is not allowed. What if you run the same command as user "icinga" with sudo -u icinga '/usr/lib64/nagios/plugins/whmcs-status' '--identifier' ...? Where does whmcs-status run on in IcingaWeb2?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants