Hide Forgot
Add a trait and a respective plugin config property. Gathering the trait data would issue a "select 1 from dual" or equivalent that was given in the above plugin-config-property. [09:08:10] <kmaslowski> can I monitor oracle database availability (datasources in JBoss) from RHQ? [09:13:52] <lkrejci> kmaslowski: i think datasources have "Test Connection" operation that you could use [09:14:13] <kmaslowski> something like "select 1 from dual" to check if database is available [09:14:27] <kmaslowski> but can I create situation to it? [09:15:12] <kmaslowski> i don't want to click test database on all my datasources on every minute :-) [09:15:34] <lkrejci> kmaslowski: you can create a CLI script for that [09:16:09] <kmaslowski> separate script for every datasource? [09:16:36] <lkrejci> kmaslowski: no, 1 script that would look for all your datasources, execute the operation on each and write some report out [09:16:48] <lkrejci> you could schedule a cron job for that [09:17:12] <kmaslowski> heh so I can't do that from rhq [09:18:17] <lkrejci> kmaslowski: or I think you can create a group of all your datasources in RHQ UI and then run an operation on them [09:18:52] <kmaslowski> I will try to do this [09:39:20] <pilhuhn> Yeah, we could create a trait, that executes the respective "select 1 from dual" as metric taking [09:42:51] <kmaslowski> yes:-) it would be great:-)