check_snmp permission denied
Posted: Mon Apr 22, 2019 2:50 am
Hello all,
i have eloborated a script on A Xmachine, this script access many folder to list files insides it and get their création dates with a "ls" command.
then i put this script in snmpd.conf and generated an OID.
From centreon side ( on B machine ), i added the OID and configure the interface for alerting.
The problem is when i try the command below from centreon machine to test if the script is working remotly and can get result, i have permission denied error :
[XXXXX@central-Centreon-vm ~]$ /usr/lib/nagios/plugins/check_snmp -H xxx.xxx.xxx.xx -C All -P 2c -o .OID -w 1 -c 2
but when i try the script directly on the host machine ( managed device), the script does not show any permission issues.
Could you help me please.
Thank you in advance
i have eloborated a script on A Xmachine, this script access many folder to list files insides it and get their création dates with a "ls" command.
then i put this script in snmpd.conf and generated an OID.
From centreon side ( on B machine ), i added the OID and configure the interface for alerting.
The problem is when i try the command below from centreon machine to test if the script is working remotly and can get result, i have permission denied error :
[XXXXX@central-Centreon-vm ~]$ /usr/lib/nagios/plugins/check_snmp -H xxx.xxx.xxx.xx -C All -P 2c -o .OID -w 1 -c 2
but when i try the script directly on the host machine ( managed device), the script does not show any permission issues.
Could you help me please.
Thank you in advance