tag:blogger.com,1999:blog-6944050187568241059.post2062730605046364310..comments2024-03-13T22:24:49.135-07:00Comments on Thoughts From A Management Platform Developer: Managing Resources That Have A CLIJohn Mazzhttp://www.blogger.com/profile/11415685873835789040noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-6944050187568241059.post-77385262851639036292010-09-23T12:39:20.713-07:002010-09-23T12:39:20.713-07:00and once again, fedorahosted changed the syntax of...and once again, fedorahosted changed the syntax of the git links. here's the newest link:<br /><br />http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=tree;f=modules/plugins/script/src/main;hb=masterJohn Mazzhttps://www.blogger.com/profile/11415685873835789040noreply@blogger.comtag:blogger.com,1999:blog-6944050187568241059.post-6845841257348376162009-12-03T12:38:05.329-08:002009-12-03T12:38:05.329-08:00the links in the previous comments are now broken ...the links in the previous comments are now broken - but everything has moved to this location:<br /><br /><a href="http://git.fedorahosted.org/git/rhq/rhq.git?p=rhq/rhq.git;a=tree;f=modules/plugins/script/src/main;hb=master" rel="nofollow">http://git.fedorahosted.org/git/rhq/rhq.git?p=rhq/rhq.git;a=tree;f=modules/plugins/script/src/main;hb=master</a>John Mazzhttps://www.blogger.com/profile/11415685873835789040noreply@blogger.comtag:blogger.com,1999:blog-6944050187568241059.post-18515221887049497712009-07-21T10:47:04.544-07:002009-07-21T10:47:04.544-07:00The "CLI" plugin has been renamed to &qu...The "CLI" plugin has been renamed to "Script" plugin to avoid confusion with the new client/CLI (they are not related).<br /><br />The previous links to the plugin descriptor and source are now this:<br /><br /><a href="http://svn.rhq-project.org/repos/rhq/trunk/modules/plugins/script/src/main/resources/META-INF/rhq-plugin.xml" rel="nofollow">http://svn.rhq-project.org/repos/rhq/trunk/modules/plugins/script/src/main/resources/META-INF/rhq-plugin.xml</a><br /><br /><a href="http://svn.rhq-project.org/repos/rhq/trunk/modules/plugins/script/src/main/java/org/rhq/plugins/script/ScriptServerComponent.java" rel="nofollow">ScriptServerComponent.getValues()</a><br /><br />I'll edit my blog post with a new link to the new demo after I finish it. I'll probably also demo an extension plugin that shows a metric.John Mazzhttps://www.blogger.com/profile/11415685873835789040noreply@blogger.comtag:blogger.com,1999:blog-6944050187568241059.post-64773879892926290572009-05-13T12:41:00.000-07:002009-05-13T12:41:00.000-07:00This could very well help me with the Red Hat Clus...This could very well help me with the Red Hat Cluster Status tool. By executing a Clustat with the XML option, I can get a list of all the cluster name of the node, the member nodes in the cluster, as well as which services are running on which servers.<br /><br />This is very useful information particularly for historical purposes as services can dynamically fail over to other nodes.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6944050187568241059.post-71901269537800803272009-05-03T21:59:00.000-07:002009-05-03T21:59:00.000-07:00Look at the metric comment in the CLI plugin descr...Look at the metric comment in the CLI plugin descriptor:<br /><br /><A HREF="http://svn.rhq-project.org/repos/rhq/trunk/modules/plugins/cli/src/main/resources/META-INF/rhq-plugin.xml" REL="nofollow">http://svn.rhq-project.org/repos/rhq/trunk/modules/plugins/cli/src/main/resources/META-INF/rhq-plugin.xml</A>The generic CLI plugin does not define any metrics. What you would do it write your own custom plugin that extended this CLI plugin (which could mean just a simple plugin .jar with a single .xml descriptor in it). Your custom descriptor would define the metrics your CLI can support - in the metric definition, you define the CLI arguments and any regular expression needed to extract the metric data from the CLI output.<br /><br />See the javadoc in the <A HREF="http://svn.rhq-project.org/repos/rhq/trunk/modules/plugins/cli/src/main/java/org/rhq/plugins/cli/CliServerComponent.java" REL="nofollow">CliServerComponent.getValues()</A> method for some examples.John Mazzhttps://www.blogger.com/profile/11415685873835789040noreply@blogger.comtag:blogger.com,1999:blog-6944050187568241059.post-53554025026821906882009-05-02T05:41:00.000-07:002009-05-02T05:41:00.000-07:00How are you defining the metrics as metadata?How are you defining the metrics as metadata?Heikohttps://www.blogger.com/profile/04989356067273734299noreply@blogger.com