[solved] Windows Server disk und cpu Partial Result: U

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
fallala
Posts: 7
Joined: Mon Sep 17, 2012 7:52 am

[solved] Windows Server disk und cpu Partial Result: U

Post by fallala »

Operating System: Ubuntu 10.04
Webserver : apache2 2.2.14-5ubuntu8.10
Cacti: 0.8.8a
MySQL : 5.1.66-0ubuntu0.10.04.3
PHP: 5.3.2-1ubuntu4.18
RRDTool: 1.3.8-1ubuntu1
Net-SNMP: 5.4.2.1

Hi,

At some Windows Servers I'm getting for the graphs HOST MIB - CPU Utilization and HOST MIB - Availible Disk Space only nan.

I increased the SNMP Timout to 5000 and decreased Maximum OID's Per Get Request to 5, but this didn't help.

In the logfile I can see this:

01/09/2013 01:01:12 PM - CMDPHP: Poller[0] Host[267] DS[10741] WARNING: Result from SERVER not valid. Partial Result: U
01/09/2013 01:01:12 PM - CMDPHP: Poller[0] Host[267] DS[10741] SERVER: /var/www/cactinew/scripts/ss_host_cpu.php ss_host_cpu 212.223.100.58 267 2:161:10000:1:1:mrtgread:::::: get usage 2, output: U

So it seems the problem is that the output is U.

I tried to do this troubleshooting: http://docs.cacti.net/manual:087:4_help.2_debugging

But I don't know how to get OID for snmpget and snmpwalk.

Can someone help?

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

Re: Windows Server disk und cpu Partial Result: U

Post by BSOD2600 »

The OIDs used are in ss_host_disk.php. Try a snmpwalk of .1.3.6.1.2.1.25.2.3.1 and see what's showing up for index 2.
fallala
Posts: 7
Joined: Mon Sep 17, 2012 7:52 am

Re: Windows Server disk und cpu Partial Result: U

Post by fallala »

With the Command:

snmpwalk -t 30 -c secret -v 2c XXX.XXX.XXX.XXX .1.3.6.1.2.1.25.2.3.1

I'm getting an timeout, Firewall is opened, and the serivce snmp is started.

nmap -sU -p161 XXX.XXX.XXX.XXX
gives:
PORT STATE SERVICE
161/udp open|filtered snmp

In the Service snmp in the tab agent I checked all services.

Is the Command wrong, or what else can it be?
fallala
Posts: 7
Joined: Mon Sep 17, 2012 7:52 am

Re: Windows Server disk und cpu Partial Result: U

Post by fallala »

Ok, my secret was wrong (dump me),

for index 2 I'm getting:

HOST-RESOURCES-MIB::hrStorageIndex.2 = INTEGER: 2
HOST-RESOURCES-MIB::hrStorageType.2 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageDescr.2 = STRING: C:\ Label:system Serial Number XXXXX
HOST-RESOURCES-MIB::hrStorageAllocationUnits.2 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageSize.2 = INTEGER: 14079999
HOST-RESOURCES-MIB::hrStorageAllocationFailures.2 = Counter32: 0

So this works it looks like, what else can be wrong?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Windows Server disk und cpu Partial Result: U

Post by gandalf »

Please see general help at 1st link of my sig
R.
fallala
Posts: 7
Joined: Mon Sep 17, 2012 7:52 am

Re: Windows Server disk und cpu Partial Result: U

Post by fallala »

How exactly should that help?

Nothing of that http://docs.cacti.net/manual:087:4_help.1_faq#general is the case here.

If you're not meaning this link, and just the whole manual, some better hint would be appreciated.
Thanks
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Windows Server disk und cpu Partial Result: U

Post by BSOD2600 »

The correct snmp get name in the poller cache for that device?
If you take the script server command found in the poller cache and manually run it (after starting the script server), do you get valid output?
fallala
Posts: 7
Joined: Mon Sep 17, 2012 7:52 am

Re: Windows Server disk und cpu Partial Result: U

Post by fallala »

If I'm executing the command found in the log manually I'm getting this:

php /var/www/cactinew/scripts/ss_host_cpu.php ss_host_cpu XXX.XXX.XXX.XXX 267 2:161:10000:1:1:mrtgread::::::
PHP Notice: Undefined offset: 1 in /var/www/cactinew/scripts/ss_host_cpu.php on line 29
PHP Notice: Undefined offset: 2 in /var/www/cactinew/scripts/ss_host_cpu.php on line 30
PHP Notice: Undefined offset: 3 in /var/www/cactinew/scripts/ss_host_cpu.php on line 31
PHP Notice: Undefined offset: 4 in /var/www/cactinew/scripts/ss_host_cpu.php on line 32
PHP Notice: Undefined offset: 5 in /var/www/cactinew/scripts/ss_host_cpu.php on line 50

The IP is correct.

I'm not sure if this is what you wanted from me.

How do I look into the poller cache, in the manual it's only mentioned how to rebuild, I tried that already with the option in the webinterface.

Ok I found the corresponding manual entry:

http://docs.cacti.net/manual:087:4_help ... i_s_poller

If I'm doing:

php -q cmd.php 267 10734

I'm getting this in the logs:

01/11/2013 11:30:06 AM - CMDPHP: Poller[0] Host[267] DS[10734] SERVER: /var/www/cactinew/scripts/ss_host_disk.php ss_host_disk IP 267 2:161:5000:1:5:mrtgread:::::: get total 2, output: 57671675904
01/11/2013 11:30:06 AM - CMDPHP: Poller[0] Host[267] DS[10734] SERVER: /var/www/cactinew/scripts/ss_host_disk.php ss_host_disk IP 2:161:5000:1:5:mrtgread:::::: get used 2, output: 51628261376
01/11/2013 11:30:06 AM - CMDPHP: Poller[0] Host[267] DS[10735] SERVER: /var/www/cactinew/scripts/ss_host_disk.php ss_host_disk IP 267 2:161:5000:1:5:mrtgread:::::: get total 3, output: 441397014528
01/11/2013 11:30:06 AM - CMDPHP: Poller[0] Host[267] DS[10735] SERVER: /var/www/cactinew/scripts/ss_host_disk.php ss_host_disk IP 267 2:161:5000:1:5:mrtgread:::::: get used 3, output: 286892822528
01/11/2013 11:30:06 AM - CMDPHP: Poller[0] Host[267] DS[10736] SERVER: /var/www/cactinew/scripts/ss_host_disk.php ss_host_disk IP 267 2:161:5000:1:5:mrtgread:::::: get total 4, output: 0
01/11/2013 11:30:06 AM - CMDPHP: Poller[0] Host[267] DS[10736] SERVER: /var/www/cactinew/scripts/ss_host_disk.php ss_host_disk IP 267 2:161:5000:1:5:mrtgread:::::: get used 4, output: 0
01/11/2013 11:30:06 AM - CMDPHP: Poller[0] Host[267] DS[10737] SERVER: /var/www/cactinew/scripts/ss_host_disk.php ss_host_disk IP 267 2:161:5000:1:5:mrtgread:::::: get total 6, output: 17363632128
01/11/2013 11:30:06 AM - CMDPHP: Poller[0] Host[267] DS[10737] SERVER: /var/www/cactinew/scripts/ss_host_disk.php ss_host_disk IP 267 2:161:5000:1:5:mrtgread:::::: get used 6, output: 7090864128
01/11/2013 11:30:06 AM - CMDPHP: Poller[0] Host[267] DS[10738] SERVER: /var/www/cactinew/scripts/ss_host_disk.php ss_host_disk IP 267 2:161:5000:1:5:mrtgread:::::: get total 7, output: 8586919936
01/11/2013 11:30:06 AM - CMDPHP: Poller[0] Host[267] DS[10738] SERVER: /var/www/cactinew/scripts/ss_host_disk.php ss_host_disk IP 267 2:161:5000:1:5:mrtgread:::::: get used 7, output: 6404505600

So this seems to be an correct output and not U.

But why this is not working when getting executet by cron?
fallala
Posts: 7
Joined: Mon Sep 17, 2012 7:52 am

Re: Windows Server disk und cpu Partial Result: U

Post by fallala »

I could solve the problem, the problem was that the poller.php scripts was running longer than 5 mins and aborting because of that.

I pumped Maximum Poller Processes now all hosts are working.

Thanks !
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests