[solved] Cacti on Windows Srv. 2012

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
nemesisj
Posts: 11
Joined: Mon Apr 09, 2012 12:15 pm

[solved] Cacti on Windows Srv. 2012

Post by nemesisj »

Hi,

i have installed cacti 0.8.8a on a Windows Server 2012 with IIS8 - so far so good.

The GUI works, cacti is online, rrd and netsnmp is discovered and the poller runs. The Integration of devices works and the Interfaces becomes discovered.

But all my graphs are still empty and show "-1. #J" in the legend. I testes several types (CPU, Inteface, Ping ...). Overall the same - still empty.

First I thought to an permission issue - so i granted everyone full control to the cacti-folder an the folder with the executable.

Here an extract of the log – still looks good. The poller runs his job in an elevated mode an the service account of the for the scheduled task in the poller has admin-rights:

Code: Select all

06/24/2013 06:35:16 PM - POLLER: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe update C:\inetpub\wwwroot\cacti\rra\da-vinci_traffic_in_191.rrd --template traffic_in:traffic_out 1372091715:0:0  
06/24/2013 06:35:16 PM - POLLER: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe update C:\inetpub\wwwroot\cacti\rra\da-vinci_traffic_in_190.rrd --template traffic_out:traffic_in 1372091715:0:0  
06/24/2013 06:35:16 PM - CMDPHP: Poller[0] Host[9] DS[259] SNMP: v2: 10.41.254.254, dsname: traffic_out, oid: .1.3.6.1.2.1.31.1.1.1.10.7, output: 0  
06/24/2013 06:35:16 PM - CMDPHP: Poller[0] Host[8] DS[221] SNMP: v2: 10.41.254.250, dsname: traffic_in, oid: .1.3.6.1.2.1.31.1.1.1.6.10019, output: 0  
06/24/2013 06:35:16 PM - POLLER: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe update C:\inetpub\wwwroot\cacti\rra\da-vinci_traffic_in_188.rrd --template traffic_out:traffic_in 1372091715:2425:6740  
06/24/2013 06:35:16 PM - POLLER: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe update C:\inetpub\wwwroot\cacti\rra\da-vinci_traffic_in_189.rrd --template traffic_in:traffic_out 1372091715:34724931:538171489  
When in run the command manually via cmd i receive the following. So i think that the Job updates the rrds successfully.

Code: Select all

C:\Users\user>c:/rrdtool/rrdtool.exe update C:\inetpub\wwwroot\cacti\rra\da
-vinci_traffic_in_190.rrd --template traffic_out:traffic_in 1372091715:0:0
ERROR: C:\inetpub\wwwroot\cacti\rra\da-vinci_traffic_in_190.rrd: illegal attempt
 to update using time 1372091715 when last update time is 1372092315 (minimum on
e second step)
Did you have an advice for me?

Thanks & br

Code: Select all

General Information 
Date Mon, 24 Jun 2013 18:40:43 +0300 
Cacti Version 0.8.8a 
Cacti OS win32 
SNMP Version NET-SNMP version: 5.4  
RRDTool Version RRDTool 1.2.x  
Hosts 4 
Graphs 132 
Data Sources SNMP: 4
SNMP Query: 125
Script - Script Server (PHP): 3
Total: 132 
Poller Information 
Interval 300 
Type cmd.php 
Items Action[0]: 254
Action[2]: 3
Total: 257 
Concurrent Processes 4 
Max Threads 8 
PHP Servers 1 
Script Timeout 25 
Max OID 100 
Last Run Statistics Time:2.8071 Method:cmd.php Processes:4 Threads:N/A Hosts:5 HostsPerProcess:2 DataSources:257 RRDsProcessed:132 
PHP Information 
PHP Version 5.4.14 
PHP OS WINNT 
PHP uname Windows NT S-MON01 6.2 build 9200 (Unknown Windows version Datacenter Edition) i586 
PHP SNMP Installed 
max_execution_time 300 
memory_limit 1024M 
Attachments
result of an rrd graph
result of an rrd graph
untitled.png (12.77 KiB) Viewed 2532 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Q: Cacti on Windows Srv. 2012

Post by BSOD2600 »

Are the *.rrd files actually getting updated every 5 minutes? Check the timestamp and/or http://docs.cacti.net/manual:088:4_help ... le_numbers
nemesisj
Posts: 11
Joined: Mon Apr 09, 2012 12:15 pm

Re: Q: Cacti on Windows Srv. 2012

Post by nemesisj »

I checked the rrds after the ticks and all rrds becomes updated after every tick.

Code: Select all

C:\rrdtool>rrdtool.exe info C:\inetpub\wwwroot\cacti\rra\da-vinci_traffic_in_183
.rrd
filename = "C:\inetpub\wwwroot\cacti\rra\da-vinci_traffic_in_183.rrd"
rrd_version = "0003"
step = 300
last_update = 1372103415
and after the next tick...

Code: Select all

C:\rrdtool>rrdtool.exe info C:\inetpub\wwwroot\cacti\rra\da-vinci_traffic_in_183
.rrd
filename = "C:\inetpub\wwwroot\cacti\rra\da-vinci_traffic_in_183.rrd"
rrd_version = "0003"
step = 300
last_update = 1372103715
or from another one

Code: Select all

C:\rrdtool>rrdtool.exe info C:\inetpub\wwwroot\cacti\rra\s-mon01_cpupercent
interrupt_326.rrd
filename = "C:\inetpub\wwwroot\cacti\rra\s-mon01_cpupercentinterrupt_326.rr
d"
rrd_version = "0003"
step = 300
last_update = 1372103716

But... I regocnized now that the graphs I added one hour ago now shows input. Maybe a time issue?!
nemesisj
Posts: 11
Joined: Mon Apr 09, 2012 12:15 pm

Re: Q: Cacti on Windows Srv. 2012

Post by nemesisj »

Hi,

I checked my php.ini again and found an entry down below after my date.timezone= Europe/Berlin:

[WebPIChanges]
date.timezone=Asia/Kuwait

I set up the IIS8 today morning via the new WPI and did not checked twice the date time in the php.ini. It was my fault.
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests