Graph WMI Volume

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
luffy
Posts: 3
Joined: Mon Jul 26, 2010 11:16 am

Graph WMI Volume

Post by luffy »

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
animalmother
Posts: 18
Joined: Tue Jan 25, 2011 7:04 pm

Re: Graph WMI Volume

Post by animalmother »

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
Where does "wmi.php" come from? Is that a template or something? Would be interested in using WMI with Cacti on my windows machines.

Thanks!

Craig
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests