Bug 833863 - Minor error in Exporting All Metrics Definitions for a Linux Server example
Summary: Minor error in Exporting All Metrics Definitions for a Linux Server example
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Operations Network
Classification: JBoss
Component: Documentation
Version: JON 3.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Deon Ballard
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-06-20 13:42 UTC by Filip Brychta
Modified: 2014-10-23 12:29 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-07-20 16:51:48 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Filip Brychta 2012-06-20 13:42:46 UTC
Description of problem:
Minor error in Exporting All Metrics Definitions for a Linux Server example from http://docs.redhat.com/docs/en-US/JBoss_Operations_Network/3.1/html/Dev_Writing_JON_Command-Line_Scripts/monitoring.html


var resources = ResourceManager.findResourcesByCriteria(criteria); << criteria is undefined >>

is called before 

// search for the resource
criteria = new ResourceCriteria();
criteria.addFilterResourceTypeName('Linux')


Fix: 

// search for the resource
criteria = new ResourceCriteria();
criteria.addFilterResourceTypeName('Linux') 

var resources = ResourceManager.findResourcesByCriteria(criteria);


Note You need to log in before you can comment on or make changes to this bug.