Hi Michael,
executing manually it works:

sudo -u icinga /usr/lib64/nagios/plugins/check_fping hostname
FPING OK - hostname (loss=0%, rta=0.520000 ms)|loss=0%;;;0;100 
rta=0.000520s;;;0.000000

while on the web interface (classic igui) I get

execvpe(/usr/lib64/nagios/plugins/check_fping) failed.: Permission denied

And in the command definition I added the following

object CheckCommand "ipmi_ping" {
  import "plugin-check-command"
  command = [ PluginDir + "/check_fping", "$host.name$-mgmt", "-w $arg1$", "-c 
$arg2$", "-n 5", "-i 500" ]
}

Thank you,

Diana


On 18 Jun 2014, at 15:50, Michael Friedrich <michael.friedr...@netways.de> 
wrote:

> On 18.06.2014 15:47, Diana Scannicchio wrote:
>> Hi all,
>> with Icinga2 I am getting permission denied when executing the command
>> 
>> /usr/lib64/nagios/plugins/check_fping
>> 
>> The command is installed via the rpm 
>> nagios-plugins-fping-1.4.16-10.el6.x86_64
>> and as usual has the following permissions:
>> 
>> -rwsr-x--- 1 root nagios 54840 Oct 17  2013 
>> /usr/lib64/nagios/plugins/check_fping
>> 
>> The user icinga has been added to the nagios group:
>> 
>> id icinga
>> uid=498(icinga) gid=499(icinga) groups=498(icingacmd),497(nagios),499(icinga)
>> 
>> I did not changed the configuration in "/etc/sysconfig/icinga2” so Icinga2 
>> runs with the icinga group.
>> ICINGA2_USER=icinga
>> ICINGA2_GROUP=icinga
>> ICINGA2_COMMAND_USER=icinga
>> ICINGA2_COMMAND_GROUP=icingacmd
>> 
>> This was quite unexpected aa with Icinga the user Icinga, once added to the 
>> nagios group,  was able to execute the command
>> /usr/lib64/nagios/plugins/check_fping
>> 
>> So I am wondering what changed in Icinga2 with respect to Icinga.
>> Could you please let me know if this is expected or if there is an issue?
>> Thank you in advance for any help or suggestion you could provide.
> 
> Manually executing the check as icinga user says what?
> 
> # sudo -u icinga ....
> 
> 
>> Best regards,
>> 
>> Diana
>> 
>> P.S. I installed the last version Version: r2.0.0-3 via rpm.
>> 
>> 
>> -
>> Diana Scannicchio
>> University of California, Irvine
>> ATLAS TDAQ SysAdmin group
>> Office: +41 22 76 75240
>> OnCall: 164851
>> 
>> 
>> 
>> 
>> 
>> 
>> _______________________________________________
>> icinga-users mailing list
>> icinga-users@lists.icinga.org
>> https://lists.icinga.org/mailman/listinfo/icinga-users
> 
> 
> -- 
> Michael Friedrich, DI (FH)
> Application Developer
> 
> NETWAYS GmbH | Deutschherrnstr. 15-19 | D-90429 Nuernberg
> Tel: +49 911 92885-0 | Fax: +49 911 92885-77
> GF: Julian Hein, Bernd Erk | AG Nuernberg HRB18461
> http://www.netways.de | michael.friedr...@netways.de
> 
> ** Open Source Backup Conference 2014 - September - osbconf.org **
> ** Puppet Camp Duesseldorf 2014 - Oktober - netways.de/puppetcamp **
> ** OSMC 2014 - November - netways.de/osmc **
> ** OpenNebula Conf 2014 - Dezember - opennebulaconf.com **
> _______________________________________________
> icinga-users mailing list
> icinga-users@lists.icinga.org
> https://lists.icinga.org/mailman/listinfo/icinga-users



-
Diana Scannicchio
University of California, Irvine
ATLAS TDAQ SysAdmin group
Office: +41 22 76 75240
OnCall: 164851






_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to