[Check_mk (english)] piggyback permission denied issues

Hi guys,

It seem that whenever I want to do inventory on ESX host, it always shown me an UNKNOWN error just like below image.

Normally this is related to piggyback folder of the VM in the particular ESX host.

So far the solution that works is I enable the ruleset for Hostname translation for piggyback host and need to give a Nagios permission on that particular folder /var/lib/check_mk/tmp/piggyback/ and I will refresh the inventory checking in WATO.

So I must say that this a frustrating work to do each time I want to add an ESX host to be monitor.

Is there a solution for this?

Thanks

Hi,

this is only a problem inside the standalone installation of check_mk.

It is very easy why this happens. The inventory process from WATO is started with the user and group the apache is running.

Then it calls the cmk with inventory switch on the shell as root. The first time the piggyback folder will be created with root rights.

Later the cmk is running as nagios user and has no right to write inside the before created folder.

I wrote a entry to crontab what is changing the user and group on the piggyback folder every 2-5 min. This way the error will happen

only one or two times and is gone after the time span you defined inside crontab.

If you use OMD you will have no problem as all processes are running with the same site user. :slight_smile:

br

Andreas

···

2014-09-17 5:55 GMT+02:00 Amir Basha prominen@gmail.com:

Hi guys,

It seem that whenever I want to do inventory on ESX host, it always shown me an UNKNOWN error just like below image.

Normally this is related to piggyback folder of the VM in the particular ESX host.

So far the solution that works is I enable the ruleset for Hostname translation for piggyback host and need to give a Nagios permission on that particular folder /var/lib/check_mk/tmp/piggyback/ and I will refresh the inventory checking in WATO.

So I must say that this a frustrating work to do each time I want to add an ESX host to be monitor.

Is there a solution for this?

Thanks


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en