Q: Issue with Script Server on WinServ2012

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

Q: Issue with Script Server on WinServ2012

Post by nemesisj »

Hi,

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

On all mapped Script-Server Itmes (e.g ss_fping.php or ss_host_disk.php) fails.

Code: Select all

07/02/2013 10:35:17 PM - CMDPHP: Poller[0] Host[12] DS[842] WARNING: Result from SERVER not valid. Partial Result: U  
07/02/2013 10:35:17 PM - CMDPHP: Poller[0] Host[12] DS[842] SERVER: C:\inetpub\wwwroot\cacti\scripts\ss_host_disk.php ss_host_disk 192.168.1.94 12 2:161:500:1:100:*******:::::: get used 6, output: U  
07/02/2013 10:35:17 PM - CMDPHP: Poller[0] Host[12] DS[842] WARNING: Result from SERVER not valid. Partial Result: U  
07/02/2013 10:35:16 PM - CMDPHP: Poller[0] Host[10] DS[275] SERVER: C:/inetpub/wwwroot/cacti/scripts/ss_fping.php ss_fping 192.168.1.2 20 ICMP , output: U  
When i run the scripts manually with php in elevated cmd i recieve output:

Code: Select all

C:\Program Files (x86)\PHP\v5.4>php C:\inetpub\wwwroot\cacti\scripts\ss_host_dis
k.php ss_host_disk 192.168.1.94 12 2:161:500:1:100:*******:::::: get used 3

C:\Program Files (x86)\PHP\v5.4>php C:/inetpub/wwwroot/cacti/scripts/ss_fping.ph
p ss_fping 192.168.1.2 20 ICMP
min:9999.9900 avg:0.0000 max:0.0000 dev:0.0000 loss:100.4330
C:\Program Files (x86)\PHP\v5.4>
When i walk snmp for ss_host_disk MIB i recieve output:

Code: Select all

C:\net-snmp\bin>snmpwalk -v 2c -c ******** 192.168.1.94  .1.3.6.1.2.1.25.2.3.1

HOST-RESOURCES-MIB::hrStorageIndex.1 = INTEGER: 1
HOST-RESOURCES-MIB::hrStorageIndex.2 = INTEGER: 2
HOST-RESOURCES-MIB::hrStorageIndex.3 = INTEGER: 3
HOST-RESOURCES-MIB::hrStorageIndex.4 = INTEGER: 4
HOST-RESOURCES-MIB::hrStorageIndex.5 = INTEGER: 5
HOST-RESOURCES-MIB::hrStorageIndex.6 = INTEGER: 6
HOST-RESOURCES-MIB::hrStorageType.1 = OID: HOST-RESOURCES-MIB::hrStorageTypes.5
HOST-RESOURCES-MIB::hrStorageType.2 = OID: HOST-RESOURCES-MIB::hrStorageTypes.4
HOST-RESOURCES-MIB::hrStorageType.3 = OID: HOST-RESOURCES-MIB::hrStorageTypes.4
HOST-RESOURCES-MIB::hrStorageType.4 = OID: HOST-RESOURCES-MIB::hrStorageTypes.7
HOST-RESOURCES-MIB::hrStorageType.5 = OID: HOST-RESOURCES-MIB::hrStorageTypes.3
HOST-RESOURCES-MIB::hrStorageType.6 = OID: HOST-RESOURCES-MIB::hrStorageTypes.2
HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: A:\
HOST-RESOURCES-MIB::hrStorageDescr.2 = STRING: C:\ Label:System  Serial Number 4
ad47386
HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: D:\ Label:Data1  Serial Number 62
0989f4
HOST-RESOURCES-MIB::hrStorageDescr.4 = STRING: G:\
HOST-RESOURCES-MIB::hrStorageDescr.5 = STRING: Virtual Memory
HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING: Physical Memory
HOST-RESOURCES-MIB::hrStorageAllocationUnits.1 = INTEGER: 0 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.2 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.3 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.4 = INTEGER: 0 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.5 = INTEGER: 65536 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.6 = INTEGER: 65536 Bytes
HOST-RESOURCES-MIB::hrStorageSize.1 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageSize.2 = INTEGER: 13017087
HOST-RESOURCES-MIB::hrStorageSize.3 = INTEGER: 5242111
HOST-RESOURCES-MIB::hrStorageSize.4 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageSize.5 = INTEGER: 90968
HOST-RESOURCES-MIB::hrStorageSize.6 = INTEGER: 25432
HOST-RESOURCES-MIB::hrStorageUsed.1 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageUsed.2 = INTEGER: 5375076
HOST-RESOURCES-MIB::hrStorageUsed.3 = INTEGER: 455609
HOST-RESOURCES-MIB::hrStorageUsed.4 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageUsed.5 = INTEGER: 22034
HOST-RESOURCES-MIB::hrStorageUsed.6 = INTEGER: 19044
HOST-RESOURCES-MIB::hrStorageAllocationFailures.1 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.2 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.3 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.4 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.5 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.6 = Counter32: 0
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 17 
Graphs 578 
Data Sources SNMP: 30
SNMP Query: 541
Script - Script Server (PHP): 3
Script Query - Script Server: 4
Total: 578 
Poller Information 
Interval 300 
Type cmd.php 
Action[0]: 2868
Action[2]: 11
Total: 2879
Concurrent Processes 4 
Max Threads 8 
PHP Servers 1 
Script Timeout 25 
Max OID 100 
Time:7.8344 Method:cmd.php Processes:4 Threads:N/A Hosts:18 HostsPerProcess:5 DataSources:2879 RRDsProcessed:578 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 
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Q: Issue with Script Server on WinServ2012

Post by BSOD2600 »

Try increasing the snmp timeout to 3-5 seconds. This appears to STILL be a problem with the MS snmp agent and disks.
nemesisj
Posts: 11
Joined: Mon Apr 09, 2012 12:15 pm

Re: Q: Issue with Script Server on WinServ2012

Post by nemesisj »

Hi BSOD2600,

i tried to increase the snmp timeout but w/o success.

First i thought for a struggling snmp agent of one server but all servers are affected. I reinstalled, etc... but unsuccessfully.
And the second issue i was wonder is, that the Advanced Ping is not working, too. Although the manually call of php C:/inetpub/wwwroot/cacti/scripts/ss_fping.php ss_fping 192.168.1.2 20 ICMP result in successful output i receive in the log a SERVER: C:/inetpub/wwwroot/cacti/scripts/ss_fping.php ss_fping 192.168.1.2 20 ICMP , output: U (see my first post). Maybe there is an issue in the script server part because all script servers did not work. Is there a possible way for troubleshoot?

Thanks & br
nemesisj
Posts: 11
Joined: Mon Apr 09, 2012 12:15 pm

Re: Q: Issue with Script Server on WinServ2012

Post by nemesisj »

Hi together,

i increased the time up up to 10sec w/o success. Otherwise I changed the os down to 2008 R2. My next step would be a manual install (not wpi). Advanced Ping, Host Disk and Host CPU scripts are not working. I thought about the UTF-8 Encoding and changed it - but w/o success, too.

Did you have an advice for me that i can troubleshoot the "Partial Result: U"'s?

Thx
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Q: Issue with Script Server on WinServ2012

Post by BSOD2600 »

Since the script worked with an elevated cmd prompt, it sounds like an UAC issue. Does the cacti scheduled task run with admin rights and highest privileges? could try that or disabling UAC.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest