How do I install my plugin?
Posted: Fri Apr 30, 2021 5:14 am
RPi 4B 2GB
NEMS Linux 1.5.2
I'm working on a check_ script in PHP to get health info from my UniFi controller. It uses the PHP class documented at
https://github.com/Art-of-WiFi/UniFi-API-client
to talk to the UniFi web API. It's written with reference to J. Hoerter's work on a generic use of this,
https://www.jhoerter.com/download/check_unifi-php.html
my usage is very specific, though. I have it working to my satisfaction invoked from the command line in my account on the NEMS server.
My problem now is how to install it as a plugin. These are the files involved:
check_unifi_health.php - my script
requires check_settings.php - my settings
requires check_unifi.php - the API client class installed vi PHP Composer in a Vendor subdir
I've figured out that /usr/local/nagios/libexec is the location of the built-in nagios scripts but putting my files here does not lead to their appearance in the drop-down list of check_ commands in the NEMS configurator. So, something else needs to be done - but what?
Can you help, please?
NEMS Linux 1.5.2
I'm working on a check_ script in PHP to get health info from my UniFi controller. It uses the PHP class documented at
https://github.com/Art-of-WiFi/UniFi-API-client
to talk to the UniFi web API. It's written with reference to J. Hoerter's work on a generic use of this,
https://www.jhoerter.com/download/check_unifi-php.html
my usage is very specific, though. I have it working to my satisfaction invoked from the command line in my account on the NEMS server.
My problem now is how to install it as a plugin. These are the files involved:
check_unifi_health.php - my script
requires check_settings.php - my settings
requires check_unifi.php - the API client class installed vi PHP Composer in a Vendor subdir
I've figured out that /usr/local/nagios/libexec is the location of the built-in nagios scripts but putting my files here does not lead to their appearance in the drop-down list of check_ commands in the NEMS configurator. So, something else needs to be done - but what?
Can you help, please?