Host variable!

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
dlaperle
Posts: 21
Joined: Thu Jan 06, 2005 7:45 am
Location: Longueuil, Québec
Contact:

Host variable!

Post by dlaperle »

Hi guys,

i want to know ALL the host variable i can put in the host description field!

All these like: |host_description| etc...

We want the ifAlias...like it's wrote in the "Create graph for this host" window!

Can you help us?

Thanks again!
Oh look!...
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Host variable!

Post by gandalf »

dlaperle wrote:Hi guys,

i want to know ALL the host variable i can put in the host description field!
Sorry for my poor understanding, but I hope I can help a little bit further.
Some of the variables are listed in the docs. And for graphs, that are based on data queries, there's another option. To understand, you must have a look at the data query xml file in question. Here's an example, taken from <path_cacti>/resource/snmp_queries/host_disk.xml:

Code: Select all

<fields>
		 		...
		 		 <hrStorageDescr>
		 		 		 ...
		 		 		 <direction>input</direction>
		 		 		 ...
		 		 </hrStorageDescr>
		 		 <hrStorageAllocationUnits>
		 		 		 ...
		 		 		 <direction>input</direction>
		 		 		 ...
		 		 </hrStorageAllocationUnits>
...
For clarity, some information is deleted. Those

Code: Select all

<variable_name>
...
</VariableName>
sections define some variables for later use. <direction>input</direction> defines, that this variable is not an output variable. You may use those input variables in graphs as |query_VariableName|, e.g. |query_hrStorageDescr| or |query_StorageAllocationUnits|

hth :wink:
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests