Page 1 of 1

check_snmp permission denied

Posted: Mon Apr 22, 2019 2:50 am
by ANabil
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

Re: check_snmp permission denied

Posted: Mon Apr 22, 2019 3:38 pm
by scottwilkerson
ANabil wrote:From centreon side ( on B machine ), i added the OID and configure the interface for alerting.
Sorry, this is a Nagios forum, we cannot provide support for centreon

Locking thread

Re: check_snmp permission denied

Posted: Mon Apr 22, 2019 3:40 pm
by cdienger
The error didn't make it through - can you send it again as well as a copy of your snmpd.conf ?