check_cups_queue plugin 'not executable by nagios user'
Posted: Thu Mar 02, 2017 7:57 am
I have a CUPS server and I want to use nrpe to check the printer queue and be notified when it stalls. I have NRPE working for other items for this server (just the sample tasks) , but I can't get the check_cups_queue to work. Here are the error message I receive when I execute the plugin on the CUPS server and from the Nagios server (same error).
This is what I tried to run on the CUPS server and here are the results:
./check_cups_queue -H x.x.x.x -T s -w 50 -c 100
lpstat not found or is not executable by the nagios user
the nagios user has been added to the following groups: lpadmin, sudo, lp
I can execute the lpstat command without an error.
Thanks for any suggestions!
This is what I tried to run on the CUPS server and here are the results:
./check_cups_queue -H x.x.x.x -T s -w 50 -c 100
lpstat not found or is not executable by the nagios user
the nagios user has been added to the following groups: lpadmin, sudo, lp
I can execute the lpstat command without an error.
Thanks for any suggestions!