poller.php

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

Moderators: Developers, Moderators

lisa_parma
Posts: 18
Joined: Wed Jan 18, 2006 2:55 am
Location: indonesia
Contact:

poller.php

Post by lisa_parma »

hi,
im beginner in using cacti
i'm run on windows XP

i used:
XAMPP for Windows Version 1.4.12
cacti-0.8.6.g
cactid
net-snmp-5.2.2-1.win32
rrdtool-1.2.10-win32-perl58

after i run the poller
c:\xampp\php\php-win.exe c:\xampp\htdocs\cacti\poller.php

then i look for the cacti log,appear massage like this:

01/19/2006 11:52:02 AM - CMDPHP: Poller[0] Host[1] DS[3] WARNING: Result from CMD not valid. Partial Result:
01/19/2006 11:52:02 AM - CMDPHP: Poller[0] Host[1] DS[4] WARNING: Result from CMD not valid. Partial Result:
01/19/2006 11:52:02 AM - CMDPHP: Poller[0] Host[1] DS[5] WARNING: Result from CMD not valid. Partial Result: 1min: 5min: 10
01/19/2006 11:52:02 AM - CMDPHP: Poller[0] Host[1] DS[6] WARNING: Result from CMD not valid. Partial Result:
01/19/2006 11:52:02 AM - CMDPHP: Poller[0] Host[1] DS[7] WARNING: Result from CMD not valid. Partial Result:
01/19/2006 11:52:03 AM - SYSTEM STATS: Time:2.1677 Method:cmd.php Processes:1 Threads:N/A Hosts:4 HostsPerProcess:4 DataSources:5 RRDsProcessed:5i don't understand where i made mistaked

and the rra file not gebnerated

please help me..
thx

regrad
lisa
Last edited by lisa_parma on Wed Jan 18, 2006 11:53 pm, edited 1 time in total.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

1) read the guide in my signature
2) you must use rrdtool cygwin build. Win32 will NOT work.
3) Use cacti 0.8.6h + patches (patching instructions in my guide too)
4) what version of php and mysql are you using?
lisa_parma
Posts: 18
Joined: Wed Jan 18, 2006 2:55 am
Location: indonesia
Contact:

Post by lisa_parma »

i used :
php5
mysql 4.1.7
apache2

and now i used rrdtool-cygwin-1.2.12
i haved unzip that rrdtool and i copy all unziped file to c:\rrdtool
but i think it's doesn't work yet

now my cacti log given massage like this:

DS[3] WARNING: Result from CMD not valid. Partial Result:
01/19/2006 01:48:04 PM - CMDPHP: Poller[0] Host[1] DS[4] WARNING: Result from CMD not valid. Partial Result:
01/19/2006 01:48:04 PM - CMDPHP: Poller[0] Host[1] DS[5] WARNING: Result from CMD not valid. Partial Result: 1min: 5min: 10
01/19/2006 01:48:04 PM - CMDPHP: Poller[0] Host[1] DS[6] WARNING: Result from CMD not valid. Partial Result:
01/19/2006 01:48:04 PM - CMDPHP: Poller[0] Host[1] DS[7] WARNING: Result from CMD not valid. Partial Result:
01/19/2006 01:48:05 PM - CMDPHP: Poller[0] Host[2] DS[8] WARNING: Result from SNMP not valid. Partial Result:
01/19/2006 01:48:05 PM - CMDPHP: Poller[0] Host[2] DS[9] WARNING: Result from SNMP not valid. Partial Result:
01/19/2006 01:48:05 PM - CMDPHP: Poller[0] Host[2] DS[10] WARNING: Result from SNMP not valid. Partial Result:
01/19/2006 01:48:05 PM - CMDPHP: Poller[0] Host[2] DS[11] WARNING: Result from SNMP not valid. Partial Result:
01/19/2006 01:48:05 PM - CMDPHP: Poller[0] Host[2] DS[12] WARNING: Result from SNMP not valid. Partial Result:
01/19/2006 01:48:05 PM - CMDPHP: Poller[0] Host[2] DS[13] WARNING: Result from SNMP not valid. Partial Result:
01/19/2006 01:48:05 PM - CMDPHP: Poller[0] Host[2] DS[14] WARNING: Result from SNMP not valid. Partial Result:
01/19/2006 01:48:05 PM - CMDPHP: Poller[0] Host[2] DS[15] WARNING: Result from SNMP not valid. Partial Result:
01/19/2006 01:48:05 PM - CMDPHP: Poller[0] Host[2] DS[16] WARNING: Result from SNMP not valid. Partial Result:
01/19/2006 01:48:05 PM - SYSTEM STATS: Time:2.1262 Method:cmd.php Processes:1 Threads:N/A Hosts:6 HostsPerProcess:6 DataSources:14 RRDsProcessed:14

help me please...
i need my job work before this week end
thx
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Once again, I suggest you read the guide in my signature on how to troubleshoot your Cacti installation.


Turn the polling level in cacti to debug (Settings | Polling level) for one cycle and paste the output of the actual log file (./cacti/log/cacti.log). If it contains WEBLOG entries, then don't bother posting since they just clutter up the log. Turn off WEBEVENTS logging and try again.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

It looks as though you are polling devices with incorrect information. Possibly polling a Windows box with *nix Graph Templates/Data Queries. Also, I am concerned about the following response:
1min: 5min: 10
There are two things wrong with it: 1) No value for "1min:" 2) A space between "5min:" and "10".

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
baynaa
Posts: 5
Joined: Thu Jan 19, 2006 11:28 pm

Post by baynaa »

> Once again, I suggest you read the guide in my signature on how to troubleshoot your Cacti installation.

Can you let me know where can i fine your "the guide in my signature on how to troubleshoot your Cacti installation"
lisa_parma
Posts: 18
Joined: Wed Jan 18, 2006 2:55 am
Location: indonesia
Contact:

Post by lisa_parma »

i haved follow instruction on install cacti under windows in BSOD2600 signature
i haved used :
cacti-0.8.6h
net-snmp5
rrdtool-cygwin-1.2.12
xampp<php5,mysql4,Apache2>
rrdtool-cygwin-1.2.12

and when i try to do this
Click on Devices. Delete Localhost, since it's set up to use the Linux host template. In the upper right corner, click on Add. Fill in the following information and then click Add.

Description: localhost
Hostname: localhost
Host Template: Windows 2000/XP

then appaer error like this:
Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\htdocs\cacti\lib\functions.php on line 1163

and when i click device
the localhost have appear whit SNMP error

and when i try to run
c:\xampp\php\php-win.exe c:\xampp\htdocs\cacti\poller.php

there is no ressult and when i look in cacti log still empty
and no rrd file generated
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

baynaa:http://bsod2600.home.comcast.net/install_windows.html

lisa_parma:
1) In your php.ini file, change the max execution time and timeout larger... like 120 or 240.
2) Either use GetIF or net-snmp snmpwalk and verify SNMP is properly working from the cacti sever against whatever host you're trying to add.
3) verify IUSR_XXX and IIS_WPG users have Modify rights to your /cacti/log and /cacti/rra folders.
lisa_parma
Posts: 18
Joined: Wed Jan 18, 2006 2:55 am
Location: indonesia
Contact:

Post by lisa_parma »

before i continued my question..
i want to say thax alot :D

but i still having problems :(

when i create device for local host the SNMP still error
but when i create device to NetGuardian<for monitoring network> the snmp is work

when i try use manual snmpwalk for localhost in command propm it doesn't work

example:
c:>snmpwalk -v 1 -c public localhost .1.3.6.1.2.1.25.4.2.1.1
result:
TimeOut: No respone from localhost
but when i used snmpwalk for netguardian,it's working well

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

Post by BSOD2600 »

Since SNMP isnt working on the localhost, either you havent properly configured the SNMP service or your firewall is blocking SNMP locally.
lisa_parma
Posts: 18
Joined: Wed Jan 18, 2006 2:55 am
Location: indonesia
Contact:

Post by lisa_parma »

how to configure the snmp service for my localhost :roll: <i'm beginner in using net snmp>??
thx b4 :wink:
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

If you want to use the net-snmp agent, then follow it's install instructions. Otherwise if you want to use the microsoft one, then simply install the service.
LeArN
Posts: 8
Joined: Wed Jan 25, 2006 4:45 am

Post by LeArN »

i had do instruction on BSOD2600 signature

i had used:

cacti-0.8.6h
net-snmp5
rrdtool-cygwin-1.2.12
xampp<php5,mysql4,Apache2>
rrdtool-cygwin-1.2.12

but my cacti.log return value like this;
02/01/2006 11:32:49 AM - CMDPHP: Poller[0] Host[2] DS[35] WARNING: Result from CMD not valid. Partial Result:
02/01/2006 11:32:49 AM - CMDPHP: Poller[0] Host[2] DS[88] WARNING: Result from SNMP not valid. Partial Result: ........ 20.1325
02/01/2006 11:32:50 AM - CMDPHP: Poller[0] Host[2] DS[26] WARNING: Result from SNMP not valid. Partial Result:
02/01/2006 11:32:50 AM - CMDPHP: Poller[0] Host[2] DS[27] WARNING: Result from SNMP not valid. Partial Result:
02/01/2006 11:32:50 AM - CMDPHP: Poller[0] Host[2] DS[28] WARNING: Result from SNMP not valid. Partial Result:
02/01/2006 11:32:50 AM - CMDPHP: Poller[0] Host[2] DS[29] WARNING: Result from SNMP not valid. Partial Result:
02/01/2006 11:32:50 AM - CMDPHP: Poller[0] Host[2] DS[90] WARNING: Result from SNMP not valid. Partial Result:
02/01/2006 11:32:51 AM - CMDPHP: Poller[0] Host[5] DS[89] WARNING: Result from SNMP not valid. Partial Result:02/01/2006 11:32:51 AM - CMDPHP: Poller[0] Host[5] DS[67] WARNING: Result from SNMP not valid. Partial Result:
02/01/2006 11:32:51 AM - CMDPHP: Poller[0] Host[5] DS[71] WARNING: Result from SNMP not valid. Partial Result:02/01/2006 11:32:53 AM - CMDPHP: Poller[0] Time: 4.5744 s, Theads: N/A, Hosts: 5

i don't understand it
where is the mistake ? :(
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

The OIDs you're using are not valid. Correct them.


Turn the polling level in cacti to debug (Settings | Polling level) for one cycle and paste the output of the actual log file (./cacti/log/cacti.log). If it contains WEBLOG entries, then don't bother posting since they just clutter up the log. Turn off WEBEVENTS logging and try again.
LeArN
Posts: 8
Joined: Wed Jan 25, 2006 4:45 am

Post by LeArN »

BSOD2600 wrote: Turn the polling level in cacti to debug (Settings | Polling level) for one cycle and paste the output of the actual log file (./cacti/log/cacti.log). If it contains WEBLOG entries, then don't bother posting since they just clutter up the log. Turn off WEBEVENTS logging and try again.
I have go to cacti--> setting, but i'm sorry,i don't understands what your means???
can you give me more clearly instruction...

once question again for applying cacti patch:
Apply Patches

1. There are two methods of applying patches to Cacti:

a. If you have Cygwin installed, then the patch instructions which use wget and patch, will work.
b. The other method requires you to visit http://www.cacti.net/downloads/patches/ and manually download and replace the patched files.
2.You might need to reapply file/folder security on the files patched. Double check they are correct.


i have install cygwin,but instruction wget and patch is doesn't work...
i haved try run this instruction in command promt and .\cygwin\cygwin.bat
where should i run this command???
Attachments
untitled.JPG
untitled.JPG (128.24 KiB) Viewed 8388 times
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests