19:39:02 #startmeeting 19:39:02 Meeting started Tue Aug 19 19:39:02 2014 UTC. The chair is TheSnide. Information about MeetBot at http://wiki.debian.org/MeetBot. 19:39:02 Useful Commands: #action #agreed #help #info #idea #link #topic. 19:39:14 dipohl: was a little late, sorry 19:39:41 Nothing much new, only galleries 19:39:51 #topic Plugin gallery 19:40:25 dipohl started to work on that part, and so far her work looks promising :) 19:40:37 I would like to use the opportunity to harmonize and care for consistency in the distri plugins 19:41:23 changing working core plugins is generally a bad idea, but changing categories can be ok, depending on the case 19:41:57 so investigate and define our programming rules 19:42:29 do we have a code style guide within Munin Guide? 19:42:31 Multiple words category names are allowed. 19:42:44 but mixed cases don't work 19:42:53 I just tested on my server 19:43:10 category names are case insensitive. or should be. 19:43:14 it'll will all be lower case (which is good for our gallery ;) 19:43:23 As the html code should uppercase the first letter. 19:43:48 and all lowercase for anything path related 19:43:51 no in munin overview the categories are all written in lower case 19:44:01 oh. 19:44:27 well... i guess i missed that bug. But since noone complained let's declare it a feature :) 19:44:41 I really like it 19:44:51 i don't mind. 19:45:06 ok, now it's a feature :) 19:45:20 #agreed in munin overview the categories are all written in lower case 19:45:25 yep 19:45:56 * TheSnide didn't have time to do anything munin-related these days. 19:46:16 #topic Coding Guide 19:46:22 do we have such a thing? 19:46:25 #topic Coding Guide 19:46:56 We don't. Well, not in _written_ format that can be pinpointed at 19:47:19 I think we should have one for the plugin authors 19:47:25 * TheSnide recalls that he was commited to write something down about that some years ago 19:47:27 there are already instructions in the wiki 19:48:02 yep. we also have the procotol rules 19:48:13 http://munin-monitoring.org/wiki/plugin-bcp 19:48:55 e.g. the API for multigraph plugins 19:49:13 I found a lot of different formats for the config part 19:49:46 http://munin-monitoring.org/wiki/PluginGallery#Currentstateoftheproject 19:50:37 actually, the official API is the "exec" of the plugin. 19:50:49 We don't enforce any rules on the plugin source 19:51:25 how comes that these config sections are similiar? 19:51:27 ... yet we can provide some guiidelines that ease the work of plugin authors & your script :) 19:51:37 ACK! :) 19:51:51 don't ever underestimate the power of copy/paste 19:52:19 I did not write a multigraph plugin since now 19:52:46 --> that's why examples are very important. and _have_ to be quite careful on our own code 19:52:49 had a short look into and didn's find the "config" call option 19:53:25 for multigraph ? 19:53:28 there is 19:55:06 concerning "changing working core plugins" I would like to set fix category in plugin https://github.com/munin-monitoring/munin/blob/devel/plugins/node.d.linux/proc.in 19:55:32 The author set per default "Process Info" which is bad as we have "processes" already 19:56:21 I don't want a inflation of categories in the distributed plugins 20:00:41 TheSnide? 20:01:08 I looked once again in the multigraph plugin and found what I called API before 20:01:23 yep, inflation of categories in the core plugin is bad 20:01:40 my $plugin = Munin::Plugin::Framework->new; 20:01:46 "Process Info" --> "processes" is a good move 20:02:11 yeap, he factorized the code in a Munin::Plugin::Framework class 20:02:24 Can we delete the option to set category in plugin-conf.d also btw.? 20:02:39 in proc.in 20:02:42 ? 20:02:43 why ? 20:02:56 because that is a seldom used feature 20:03:00 and as said before 20:03:15 I think it is better to do that in masters conf 20:03:45 well, i don't like to mess with overriding master's config 20:03:53 (as a munin user) 20:03:59 so, YMMV 20:04:02 why? 20:04:22 delegation of administration. 20:04:43 munin's master has only munin admins. they only add new nodes. 20:04:54 but I don't like users that infuse categories in the central overview ;) 20:05:05 Then what's monitored on the said nodes is completely delegated to node admins 20:05:06 as a munin master administrator ;-P 20:05:34 I understand, but as I said. YMMV :) 20:05:41 YMMV? 20:06:19 http://en.wiktionary.org/wiki/your_mileage_may_vary 20:07:10 for my script it is simple to find the fix reference graph_category in the plugins code 20:07:29 this author /hides/ graph_category in $category 20:07:38 (meaning: each user/install has its own eccentricities 20:08:02 and as not many plugin authors offer the opportunity to set env.category 20:08:17 I vote for KISS 20:08:37 but what's plain wrong is that the env var is env.category and not env.graph_category 20:12:05 so how to solve the issue? 20:14:39 you do parse "graph_category (.*)" ? 20:15:25 just add a comment that you'll parse instead, if the category contains a "$" 20:16:00 fyi: I just grepped for these sort of parameters 20:16:02 node.d.java/jmx_.in: env.category jvm 20:16:03 node.d.linux/proc.in:# You can set the env-var "category" to override the default category. 20:16:03 node.d.linux/proc.in:my $category = exists $ENV{'category'} ? $ENV{'category'} : "Process info"; 20:16:15 ^and found only these 3 plugins 20:16:54 ah, 2 plugins :) 20:17:18 grep -Ri ENV node.d.* | grep -i category 20:17:42 That's why I think it would be ok to delete the option 20:18:08 it is irrelevant, because some hundred plugins don't offer this option 20:21:45 and only 2 do so 20:24:39 well. ok :) 20:24:55 as proc.in is a new plugin that isn't in stable-2.0 :p 20:25:01 puh, that was hard work ;) 20:25:39 :) 20:26:03 for main code, a coding guide would also be welcome 20:26:49 me is the wrong person for that, as I am a PERL stranger :) 20:27:43 concerning the contrib instance of munin gallery 20:28:13 I would not try to fetch graph_category, but use the directories 20:29:00 for the future, we should invent some sort of tagging as you already said 20:29:22 πyup 20:29:26 yup 20:29:42 * TheSnide has to go 20:29:46 me too 20:29:58 ok, ending 20:30:03 #endmeeting