Thanks @Markus
The problem with your solution is that .gvfs can be present with any user that can have a gnome session. So the idea was to exclude any string that contains .gvfs using disk_eregi_path, or disk_regi_path but it seems that the pluggin needs you have instantiate before de PATH or ALL_PATHS. The command I find every single time I do a search about this subject is to add -A -i .gvfs to the check_disk command, and as I see for your answer is the only thing I have left (tweak command-plugins.conf). @Michael I just don't see how to express in parameters -A -i in order that I can exclude all that strings. I guess the best solution is to solve this in the client side not in icinga2 side. FJA On Mon, Jun 8, 2015 at 4:27 PM, Markus Joosten <[email protected]> wrote: > I'd try to add ".gvfs" to the disk_partitions_excluded var by using += > > In my config i create a service for each mount point by specifying > disk_partitions, so i can better manage thresholds per mount point. > > For more documentation check the ITL. > The icinga2 itl defines the CheckCommand check_disk: > https://github.com/Icinga/icinga2/blob/master/itl/command-plugins.conf > Depending on your linux flavor, you might find this file at > /usr/share/icinga2/include > > Regards, > Markus > > Sent from my iPhone > > On 08 Jun 2015, at 22:36, Fernando Andrade <[email protected]> wrote: > > Hi I having the same problem with gvfs, as I saw in a previous thread. > (DISK CRITICAL - /XXXX/.gvfs is not accessible: Permission denied) > I can get on this thread since I'm new on the list, sorry. > > In all the sites I found about this problem ( most of them about nagios ), > the solution points to filter it in the check_disk command launcher adding > a -A -i .gvfs. > I don't see this as an elegant solution but I haven't found a way to add > this filter using host commands/directives. > > .gvfs is present in Linux if you use gnome, so is a normal find in a non > headless environment ( Ex Oracle Database ). > > Any solution will be appreciated. > > FJA > > -- > > --------------------------------------- > Fernando Jose Andrade > http://www.fjandrade.com > 0983032550 > twitter: _fjandrade_ > @Quito,Ecuador > --------------------------------------- > > _______________________________________________ > > icinga-users mailing list > [email protected] > https://lists.icinga.org/mailman/listinfo/icinga-users > > > _______________________________________________ > icinga-users mailing list > [email protected] > https://lists.icinga.org/mailman/listinfo/icinga-users > > -- --------------------------------------- Fernando Jose Andrade http://www.fjandrade.com 0983032550 twitter: _fjandrade_ @Quito,Ecuador ---------------------------------------
_______________________________________________ icinga-users mailing list [email protected] https://lists.icinga.org/mailman/listinfo/icinga-users
