NCPA: Custom Plugin Error [SOLVED]
Posted: Tue Jan 12, 2021 5:14 pm
I have a custom plugin that checks to see if Puppet is working on our servers. It fails with the error below. All other builtin NCPA plugins are working. I tried creating a /home/nagios directory with nagios permissions but then the script errors with other errors (/usr/local/ncpa/plugins/check_puppet_agent: line 259: + : syntax error: operand expected (error token is "+ ").
Error
Ubuntu Focal, using Eoan repositories for now until Focal release is available
Builtin NCPA Plugins work and are reporting correctly
Plugin script works as a normal user CLI on the client node and using NRPE
Is this a compatibility issue with Focal or do I have a configuration issue on my hands? Any thoughts on this?
Error
Code: Select all
[[email protected] ~]$ /usr/local/nagios/libexec/check_ncpa.py -H phpipam.mydomain.com -t 'my_token' -P 5693 -M 'plugins/check_puppet_agent'
[1;31mError: Could not initialize global default settings: Permission denied @ dir_s_mkdir - /home/nagios?[0m
UNKNOWN: Internal error: Puppet version unknown from ?[1;31mError: Could not initialize global default settings: Permission denied @ dir_s_mkdir - /home/nagios?[0mBuiltin NCPA Plugins work and are reporting correctly
Plugin script works as a normal user CLI on the client node and using NRPE
Is this a compatibility issue with Focal or do I have a configuration issue on my hands? Any thoughts on this?