tag:blogger.com,1999:blog-1563502382858123691.post3006959090830873877..comments2023-10-10T06:58:44.487-04:00Comments on John Sanda's blog: Auto Import Resources into InventoryAnonymoushttp://www.blogger.com/profile/08772590483013404123noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-1563502382858123691.post-30933449834852167512011-06-03T11:20:50.683-04:002011-06-03T11:20:50.683-04:00I found that MeasurementScheduleManagerRemote inte...I found that MeasurementScheduleManagerRemote interface has some methods to deal with MeasurementTemplates. I'll try it soon.<br /><br />About alert templates the AlertDefinitionManagerRemote does not deal with templates yet. There is a BZ (https://bugzilla.redhat.com/show_bug.cgi?id=535829) requesting this functionality for AlertDefinitionManager.<br /><br />Thanks.rafaelcbahttps://www.blogger.com/profile/05153544972661724691noreply@blogger.comtag:blogger.com,1999:blog-1563502382858123691.post-22717724534557077482011-06-02T00:08:39.776-04:002011-06-02T00:08:39.776-04:00I think the only APIs we may expose are for queryi...I think the only APIs we may expose are for querying. You might want to take a look at AlertDefinitionManagerRemote and MeasurementDefinitionManagerRemote. If there is functionality you would like to see please feel free to file a feature request at https://bugzilla.redhat.com. I'd be particularly interested to hear user feedback on ways to make the CLI an easier, more productive interface to RHQ.Anonymoushttps://www.blogger.com/profile/08772590483013404123noreply@blogger.comtag:blogger.com,1999:blog-1563502382858123691.post-31240452092001476542011-06-01T14:34:28.428-04:002011-06-01T14:34:28.428-04:00Hum... cool! I'll try it.
BTW, Is there some ...Hum... cool! I'll try it.<br /><br />BTW, Is there some interface on rhq remote API to deal with Alert/Metrics Templates?<br /><br />Thanks!rafaelcbahttps://www.blogger.com/profile/05153544972661724691noreply@blogger.comtag:blogger.com,1999:blog-1563502382858123691.post-7145221155618748312011-05-31T22:11:31.859-04:002011-05-31T22:11:31.859-04:00You need to use DiscoveryBoss.manuallyAddResource....You need to use DiscoveryBoss.manuallyAddResource. Take a look at http://docs.redhat.com/docs/en-US/JBoss_Operations_Network/2.4/html/API_Guides/remote-api/org/rhq/enterprise/server/discovery/DiscoveryBossRemote.html.Anonymoushttps://www.blogger.com/profile/08772590483013404123noreply@blogger.comtag:blogger.com,1999:blog-1563502382858123691.post-68385739716359803082011-05-31T21:51:36.045-04:002011-05-31T21:51:36.045-04:00Hi.
You know if is possible to add resources that...Hi.<br /><br />You know if is possible to add resources that isn't auto-discovered by agent scan process?<br /><br />For example: I need to add a bunch of JVM using the generic JMX plugin. On UI I would do this via Platform > Inventory > Add Manually > JDK 5 etc.<br /><br />I thought in get the JMX addr from all JVM process (may be using a bsh script), put in a list and then import them via rhq-cli script.<br /><br />Regards.rafaelcbahttps://www.blogger.com/profile/05153544972661724691noreply@blogger.comtag:blogger.com,1999:blog-1563502382858123691.post-63383108571640689132010-08-19T09:19:06.445-04:002010-08-19T09:19:06.445-04:00Hi John,
I've created a similar post a few mo...Hi John,<br /><br />I've created a similar post a few months back with advanced filtering (import only Apache HTTPD and JBoss AS) <a href="http://cloudpress.org/2010/01/29/rhq-cli-configuring-and-importing-resources/" rel="nofollow">on my blog</a>. You can see <a href="http://github.com/stormgrind/cirras-rpm/blob/master/src/import-servers.js" rel="nofollow">full script here</a>.<br /><br />Maybe it'll help someone!<br /><br />--Marekgoldmannhttps://www.blogger.com/profile/02957834507000102722noreply@blogger.com