Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sun Jul 21, 2019 3:11 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: RRDs for Windows servers are not updating
PostPosted: Wed Sep 25, 2013 3:59 pm 
Offline

Joined: Wed Sep 25, 2013 3:41 pm
Posts: 1
Hello,
For some reason reason running wmi.php doesn't update rrd files. All I get in cacti log is:
Quote:
SCRIPT: /usr/bin/php -q /var/www/html/cacti/scripts/wmi.php -h \'10.32.0.215\' -u \'/etc/cacti/cactiwmi.pw\' -w \'Win32_ComputerSystem\' -n \'\' -k \'\' -v \'\' -c \'TotalPhysicalMemory\', output: U
CACTI2RRD: /usr/bin/rrdtool update /var/www/html/cacti/rra/maextsv08_totalphysicalmemory_23.rrd --template TotalPhysicalMemory 1380142501:U


My environment is:
Centos 6.4
Cacti 0.8.8b (freshly installed)
wmi.php v. 0.6
wmic - compiled from http://dev.zenoss.org/svn/tags/wmi-1.3.9/

If I run as root:
Code:
/usr/bin/php -q /var/www/html/cacti/scripts/wmi.php -h '10.32.0.215' -u '/etc/cacti/cactiwmi.pw' -w 'Win32_ComputerSystem' -n '' -k '' -v '' -c 'TotalPhysicalMemory'

it works.

However, if I run as apache:
Code:
su -s /bin/sh apache -c "/usr/bin/php -q /var/www/html/cacti/scripts/wmi.php -h '10.32.0.215' -u '/etc/cacti/cactiwmi.pw' -w 'Win32_ComputerSystem' -n '' -k '' -v '' -c 'TotalPhysicalMemory'"

I get this prompt:
Quote:
Password for [WORKGROUP\apache]:


It also works if I run as cacti:
Code:
[[email protected] ~]# su - cacti
[[email protected] ~]$ /usr/bin/php -q /var/www/html/cacti/scripts/wmi.php -h '10.32.0.215' -u '/etc/cacti/cactiwmi.pw' -w 'Win32_ComputerSystem' -n '' -k '' -v '' -c 'TotalPhysicalMemory'
Name:MAEXTSV08 TotalPhysicalMemory:17169604608


Permissions:
Quote:
-rwxrwxrwx 1 cacti apache 51 Sep 25 15:15 cactiwmi.pw
-rwxr-xr-x 1 apache cacti 7172177 Sep 25 13:58 wmic
-rw-r--r-- 1 cacti cacti 47992 Sep 25 16:55 maextsv08_totalphysicalmemory_23.rrd


Any suggestions what to try next?

Thank you!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: Bing [Bot] and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group