Hello Fernando, you don't want to mess around with command-plugins.conf, as your changes might get overwritten in a future icinga2 update. Also, you need to keep in mind that disk_ignore_ereg_path expects a regular expression, so i'd try to set disk_ignore_ereg_path = ".*gvfs", which matches all strings ending in "gvfs".
I just played around a little with check_disk, and it appears that there might be a little bug with the position of the disk_all parameter. When you set vars.disk_all = true, icinga2 adds -A as the first parameter: [2015-06-09 19:49:53 +0200] notice/Process: Running command '/usr/lib/nagios/plugins/check_disk' '-A' '-X' 'none' '-X' 'tmpfs' '-X' 'sysfs' '-X' 'proc' '-X' 'devtmpfs' '-X' 'devfs' '-X' 'mtmfs' '-c' '10%' '-m' '-w' '20%' '-i' '.*gvfs': PID 29363 This call results in an unknown state: DISK UNKNOWN: Must set a threshold value before using -r/-R (The error message is somewhat ambiguous, since we're not specifying -r or -R) When i set the order of the -A argument to 1, everything is fine, check_disk is called like this: [2015-06-09 19:56:39 +0200] notice/Process: Running command '/usr/lib/nagios/plugins/check_disk' '-X' 'none' '-X' 'tmpfs' '-X' 'sysfs' '-X' 'proc' '-X' 'devtmpfs' '-X' 'devfs' '-X' 'mtmfs' '-c' '10%' '-m' '-w' '20%' '-A' '-i' '.*gvfs': PID 31338 Regards, Markus -----Original message----- From: Fernando Andrade <cor...@fjandrade.com> Sent: Tuesday 9th June 2015 18:46 To: Icinga User's Corner <icinga-users@lists.icinga.org> Subject: Re: [icinga-users] .gvfs problem 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 <markus.joos...@plumbe.de <mailto:markus.joos...@plumbe.de> > 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 <cor...@fjandrade.com <mailto:cor...@fjandrade.com> > 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 <http://www.fjandrade.com> 0983032550 twitter: _fjandrade_ @Quito,Ecuador --------------------------------------- _______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org <mailto:icinga-users@lists.icinga.org> https://lists.icinga.org/mailman/listinfo/icinga-users _______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org <mailto:icinga-users@lists.icinga.org> https://lists.icinga.org/mailman/listinfo/icinga-users -- --------------------------------------- Fernando Jose Andrade http://www.fjandrade.com <http://www.fjandrade.com> 0983032550 twitter: _fjandrade_ @Quito,Ecuador --------------------------------------- _______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users
_______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users