Hello,
I need to graph a Disk Volume with WMI. I have used the template but I have modified it because a need to use WMI class "Win32_volume".
Script :
Input String => /usr/local/admin/php-5.2.9/bin/php -q <path_cacti>/scripts/wmi.php -h '<host>' -u '<credential>' -w '<class>' -n '<namespace>' -k '<filter>' -v '<filterval>' -c '<columns>'
Request :
/usr/local/admin/php-5.2.9/bin/php -q /home/sites_web/DNS_server/scripts/wmi.php -h '10.152.45.145'-u '/etc/cacti/admin.pw' -w 'Win32_volume' -n 'root\CIMV2' -k 'Label' -v 'Volume_Name' -c 'FreeSpace,Capacity'
When I created the graph, I saw only FreeSpace and not Capacity. I noticed that DevideId is all the time in the result of the request.
I integreted it in the Data Input Method without option "Update RRA" but it's the same.
Do you have an idea?
Thanks for your help
regards,
Greg
Graph WMI Volume
Moderators: Developers, Moderators
-
- Posts: 18
- Joined: Tue Jan 25, 2011 7:04 pm
Re: Graph WMI Volume
Where does "wmi.php" come from? Is that a template or something? Would be interested in using WMI with Cacti on my windows machines.luffy wrote:Hello,
I need to graph a Disk Volume with WMI. I have used the template but I have modified it because a need to use WMI class "Win32_volume".
Script :
Input String => /usr/local/admin/php-5.2.9/bin/php -q <path_cacti>/scripts/wmi.php -h '<host>' -u '<credential>' -w '<class>' -n '<namespace>' -k '<filter>' -v '<filterval>' -c '<columns>'
Request :
/usr/local/admin/php-5.2.9/bin/php -q /home/sites_web/DNS_server/scripts/wmi.php -h '10.152.45.145'-u '/etc/cacti/admin.pw' -w 'Win32_volume' -n 'root\CIMV2' -k 'Label' -v 'Volume_Name' -c 'FreeSpace,Capacity'
When I created the graph, I saw only FreeSpace and not Capacity. I noticed that DevideId is all the time in the result of the request.
I integreted it in the Data Input Method without option "Update RRA" but it's the same.
Do you have an idea?
Thanks for your help
regards,
Greg
Thanks!
Craig
Who is online
Users browsing this forum: No registered users and 0 guests