Code: Select all
#/bin/sh
snmpwalk -v 2c -c public 192.168.0.117:5550 .1.3.6.1.4.1.1.4185.527 | awk '{print $4}'
$ ./queryscrip.sh
Code: Select all
91
0
56
7
3
3111
Code: Select all
<interface>
<name>Tomae Data de Script CallCenter</name>
<script_path>sh |path_cacti|/scripts/consulta.sh</script_path>
<fields>
<request>
<name>ActivePeers</name>
<direction>input</direction>
<query_name>ois</query_name>
</request>
</fields>
</interface>
Code: Select all
Notice: Undefined index: arg_index in /usr/share/cacti/site/lib/data_query.php on line 98
Notice: Undefined index: arg_query in /usr/share/cacti/site/lib/data_query.php on line 109
Warning: Cannot modify header information - headers already sent by (output started at /usr/share/cacti/site/lib/data_query.php:98) in /usr/share/cacti/site/host.php on line 129
Thx in advance and sorry for my poor english.