|
From: Reinhard S. <Rei...@te...> - 2006-05-24 15:53:33
|
Josh Tolley wrote: > I'm creating a script to query weblogic via SNMP and get a bunch of > application-related info. I would be using an SNMP query instead of a > script query, but WebLogic 8.1's SNMP agent apparently doesn't support > the snmpbulk* commands cacti tries to use on it. Anyway, the problem is > that I can't get query_<field> variables to work in the graphs, so I end > up with 70+ graphs all named "|query_parent| - Sessions open on > |query_name|". Some details: > > The script query is defined in weblogic_sessions2.xml, which includes > fields like this: > > <fields> > <index> > <name>Application Index</name> > <direction>input</direction> > <query_name>index</query_name> > </index> > <parent> > <name>Parent Server</name> > <direction>output</direction> > <query_name>parent</query_name> > </parent> > <name> > <name>App Name</name> > <direction>output</direction> > <query_name>name</query_name> > </name> > <cursess> > <name>Current Sessions</name> > <direction>output</direction> > <query_name>cursess</query_name> > </cursess> > </fields> > > > The data template has a data source item defined, called cursess, which > should correspond to what's in the xml file. The graph template refers > to the right data source (cursess), and the title there is > "|query_parent| |query_name| WebApp Open Sessions". In the data query, > I've associated the graph template to this query, and added " > |query_parent| |query_name| Open Sessions" as the suggested graph title. > When add the data query to my weblogic host and create graphs, all the > graphs are called "|query_parent| |query_name| WebApp Open Sessions", > and the variables aren't replaced. What am I doing wrong? > > -Josh > > > cacti-user mailing list > cac...@li... > https://lists.sourceforge.net/lists/listinfo/cacti-user > "name" and "parent" must be <direction>input</direction>. Please refer to http://forums.cacti.net as there is much more traffic. Find me there as "lvm" and find a thorough description of SNMP Data Queries as the last link of my signature Reinhard |