Reference: http://forums.cacti.net/viewtopic.php?f=12&t=47979
Get Dataquery and import it into Cacti: http://files.hypervisor.fr/scripts/cacti_data_query_zfs_-_zpool_usage.xml
Get SNMP query: http://files.hypervisor.fr/scripts/zpool_usage.xml , and copy it to /usr/share/cacti/resource/snmp_queries
Extend SNMP on Solaris
append below entries to /etc/net-snmp/snmp/snmpd.conf
extend .1.3.6.1.4.1.2021.88 zpool_name /bin/bash -c "zpool list -H -o name"
extend .1.3.6.1.4.1.2021.88 zpool_snap /bin/bash -c "zpool list -Ho name|for zpool in `xargs`;do zfs get -rHp -o value usedbysnapshots $zpool|awk -F: '{sum+=$1} END{print sum}';done"
extend .1.3.6.1.4.1.2021.88 zpool_used /bin/bash -c "zpool list -Ho name|xargs zfs get -Hp -o value used"
extend .1.3.6.1.4.1.2021.88 zpool_data_used /bin/bash -c "zpool list -Ho name|for zpool in `xargs`;do snap=`zfs get -rHp -o value usedbysnapshots $zpool|awk -F: '{sum+=$1} END{print sum}'`;pool=`zfs get -Hp -o value used $zpool`; echo $pool $snap|awk '{print ($1-$2);}';done"
extend .1.3.6.1.4.1.2021.88 zpool_available /bin/bash -c "zpool list -Ho name|xargs zfs get -Hp -o value available"
extend .1.3.6.1.4.1.2021.88 zpool_capacity /bin/bash -c "zpool list -H -o capacity"
Restart SNMP,
# svcadm disable svc:/application/management/net-snmp:default
# svcadm enable svc:/application/management/net-snmp:default
Showing posts with label Cacti. Show all posts
Showing posts with label Cacti. Show all posts
Monday, April 7, 2014
Monday, March 17, 2014
Cacti and Windows 2k8
snmpwalk -v2c -cgroupv3 37.15.10.89
As far as I know, SNMPv3 is not supported on either Windows Server 2008 or Windows Server 2008 R2.
Supported Versions
http://msdn.microsoft.com/en-us/library/aa379141(VS.85).aspx
For Windows Server 2012, there is no official document announcement that the SNMPv3 is supported. Given this situation, you may try some third-party tools to simulate the environment to run SNMPv3.
As far as I know, SNMPv3 is not supported on either Windows Server 2008 or Windows Server 2008 R2.
Supported Versions
http://msdn.microsoft.com/en-us/library/aa379141(VS.85).aspx
For Windows Server 2012, there is no official document announcement that the SNMPv3 is supported. Given this situation, you may try some third-party tools to simulate the environment to run SNMPv3.
Subscribe to:
Posts (Atom)