
Re: Howto setup / use CactiEZ WMI Queries
Ok, what you will need to do is first get your normal WMI query (using scriptomatic if you like.
In this example, your query may look something like this
Code:
Select Name, MessagesDelivered, MessagesSent from Win32_PerfRawData_MSExchangeIS_MSExchangeISMailbox
Now we will goto the WMI Plugin in Cacti, and click on the Query tab, and click the Add button at the bottom. You will now have 5 fields to fill in
DescriptionThis is just a display name, put anything here (ex: Exchange Messages
Query NameThis is important, it will be the query name used to pull this query. It can be anything as long as it has no spaces or special characters in the name, and is unique from all other queries you have added. (ex: exchangemessages)
IndexIn most WMI queries, this will always be "Name".
KeysThis will be a comma separated list of fields you want. Do not include the index field from above as it always pulls the index field. (ex:MessagesDelivered,MessagesSent)
ClassThis is the class you want to query (ex:Win32_PerfRawData_MSExchangeIS_MSExchangeISMailbox)
Now that your query is setup, stop over at the authenication tab and enter a username / password that can access the server (I generally setup a separate account for this on the server for security sakes). You will then want to goto the Device you will be querying, and select account in the list (when editting a device, you should see a "WMI Authenication Account" option).
From there, if you import the XML file that comes with the plugin (its the one I used in this example) then you will see exactly how you need to make the Data Query (and resource XML file) to use this query.
I am trying to work on the plugin to make it create all these for you, but that will take some work.