i'm wondering if it's possible to use the
Code: Select all
<method>walk</method>
Currently my Scripts are called for each Output field and each Index separatly.
Moderators: Developers, Moderators
Code: Select all
<method>walk</method>
Code: Select all
<interface>
<name>Get Nmon AIX CPU System Data</name>
<script_path>|path_cacti|/scripts/nmonaixcpu.sh</script_path>
<arg_prepend>|host_hostname|</arg_prepend>
<arg_index>index</arg_index>
<arg_query>query</arg_query>
<arg_get>get</arg_get>
<output_delimeter>:</output_delimeter>
<index_order>cpuIndex</index_order>
<index_order_type>numeric</index_order_type>
<index_title_format>|chosen_order_field|</index_title_format>
<fields>
<cpuIndex>
<name>cpuIndex</name>
<direction>input</direction>
<query_name>index</query_name>
</cpuIndex>
<cpuDescription>
<name>Description</name>
<direction>input</direction>
<query_name>cpudescription</query_name>
</cpuDescription>
<cpuUser>
<name>User</name>
<direction>output</direction>
<query_name>cpuuser</query_name>
</cpuUser>
<cpuSys>
<name>System</name>
<direction>output</direction>
<query_name>cpusys</query_name>
</cpuSys>
<cpuWait>
<name>Wait</name>
<direction>output</direction>
<query_name>cpuwait</query_name>
</cpuWait>
<cpuIdle>
<name>Idle</name>
<direction>output</direction>
<query_name>cpuidle</query_name>
</cpuIdle>
</fields>
</interface>
Code: Select all
/opt/pware/htdocs/cacti/scripts/nmonaixcpu.sh host1 get cpusys CPU01
/opt/pware/htdocs/cacti/scripts/nmonaixcpu.sh host1 get cpuwait CPU01
/opt/pware/htdocs/cacti/scripts/nmonaixcpu.sh host1 get cpuidle CPU01
/opt/pware/htdocs/cacti/scripts/nmonaixcpu.sh host1 get cpuuser CPU01
Code: Select all
/opt/pware/htdocs/cacti/scripts/nmonaixcpu.sh host1 walk CPU01
cpuuser:50 cpusys:2.2 cpuwait:0 cpuidle:47.8
Users browsing this forum: No registered users and 2 guests