[SOLVED] Weird polling

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

Moderators: Developers, Moderators

Post Reply
creposukre
Posts: 15
Joined: Sat May 12, 2007 5:51 am
Location: Niort, FRANCE

[SOLVED] Weird polling

Post by creposukre »

Hi everybody :D
-> I deployed Cacti on a server today 8), here is my configuration :

- Windows Server 2003 SBS
- Cacti 0.8.7b
- RRDTool 1.2.15
- Net-SNMP 5.4.1
- Vertrigo 2.20 :
* Apache 2.0.63
* PHP 5.2.5
* Mysql 5.0.51
* Smarty 2.6.18
* SQLite 3.5.6
* PhpMyAdmin 2.11.4
* SQLiteManager 1.2.0
* ZendOptimizer 3.3.0

-> I installed vertrigo this morning and set up Cacti, following my intuition :wink:

-> I configured cacti with those paths (and there's no problem with that) :

- snmpwalk Binary Path : c:/net-snmp/bin/snmpwalk.exe
- snmpget Binary Path : c:/net-snmp/bin/snmpget.exe
- snmpbulkwalk Binary Path : c:/net-snmp/bin/snmpbulkwalk.exe
- snmpgetnext Binary Path : c:/net-snmp/bin/snmpgetnext.exe
- RRDTool Binary Path : c:/rrdtool/rrdtool.exe
- RRDTool Default Font Path : c:/windows/fonts/arial.ttf
- PHP Binary Path : C:/VertrigoServ/Php/php.exe
- Cacti Log File Path : C:/VertrigoServ/www/cacti/log/cacti.log

-> I created a scheduled task running every 5mn during 24 hrs every day executing a batch file i created with this commande inside : "C:\VertrigoServ\Php\php.exe" "C:\VertrigoServ\www\cacti\poller.php"

-> I didn't set any rights about creating or editing log files and rra files since i don't think it's necessary in my case.

-> I set those environment variables :
- PHP -> C:\VertrigoServ\Php\
- PHPRC -> C:\VertrigoServ\Php\

-> About upload_tmp_dir, session.save_path, and MIBDIRS i didn't do anything (this install is just for testing).

-> My Apache/PHP/MySQL/Zend config :
Image
Image

I added the cacti box as device and I decided to graph :

- CPU
- HDD's and RAM
- Logged in users
- Processes
- Network Traffic

After a few hours, it graphs and everything seems to work fine. But i got some "Waiting on 1/1 pollers" in my CMD windows everytime the scheduled task executes. :-?

My log says :
04/24/2008 04:05:08 PM - SYSTEM STATS: Time:7.7779 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:17 RRDsProcessed:10
04/24/2008 04:05:07 PM - CMDPHP: Poller[0] Time: 6.6410 s, Theads: N/A, Hosts: 1
04/24/2008 04:05:07 PM - CMDPHP: Poller[0] Host[2] DS[17] SERVER: C:\VertrigoServ\www\cacti\scripts\ss_host_cpu.php ss_host_cpu 192.168.0.1 2 2:161:500:rimba:::MD5::DES: get usage 0, output: 3
04/24/2008 04:05:07 PM - CMDPHP: Poller[0] Host[2] DS[16] SNMP: v2: 192.168.0.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.65540, output: 272394684
04/24/2008 04:05:06 PM - CMDPHP: Poller[0] Host[2] DS[16] SNMP: v2: 192.168.0.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.65540, output: 196999792
04/24/2008 04:05:06 PM - CMDPHP: Poller[0] Host[2] DS[15] SERVER: C:\VertrigoServ\www\cacti\scripts\ss_host_disk.php ss_host_disk 192.168.0.1 2 2:161:500:rimba:::MD5::DES: get total 6, output: 2146566144
04/24/2008 04:05:05 PM - CMDPHP: Poller[0] Host[2] DS[15] SERVER: C:\VertrigoServ\www\cacti\scripts\ss_host_disk.php ss_host_disk 192.168.0.1 2 2:161:500:rimba:::MD5::DES: get used 6, output: 902692864
04/24/2008 04:05:05 PM - CMDPHP: Poller[0] Host[2] DS[14] SERVER: C:\VertrigoServ\www\cacti\scripts\ss_host_disk.php ss_host_disk 192.168.0.1 2 2:161:500:rimba:::MD5::DES: get total 5, output: 3604545536
04/24/2008 04:05:05 PM - CMDPHP: Poller[0] Host[2] DS[14] SERVER: C:\VertrigoServ\www\cacti\scripts\ss_host_disk.php ss_host_disk 192.168.0.1 2 2:161:500:rimba:::MD5::DES: get used 5, output: 1369964544
04/24/2008 04:05:05 PM - CMDPHP: Poller[0] Host[2] DS[13] SERVER: C:\VertrigoServ\www\cacti\scripts\ss_host_disk.php ss_host_disk 192.168.0.1 2 2:161:500:rimba:::MD5::DES: get total 4, output: 82343243776
04/24/2008 04:05:04 PM - CMDPHP: Poller[0] Host[2] DS[13] SERVER: C:\VertrigoServ\www\cacti\scripts\ss_host_disk.php ss_host_disk 192.168.0.1 2 2:161:500:rimba:::MD5::DES: get used 4, output: 12649119744
04/24/2008 04:05:04 PM - CMDPHP: Poller[0] Host[2] DS[12] SERVER: C:\VertrigoServ\www\cacti\scripts\ss_host_disk.php ss_host_disk 192.168.0.1 2 2:161:500:rimba:::MD5::DES: get total 3, output: 500105216000
04/24/2008 04:05:04 PM - CMDPHP: Poller[0] Host[2] DS[12] SERVER: C:\VertrigoServ\www\cacti\scripts\ss_host_disk.php ss_host_disk 192.168.0.1 2 2:161:500:rimba:::MD5::DES: get used 3, output: 496470724608
04/24/2008 04:05:03 PM - CMDPHP: Poller[0] Host[2] DS[11] SERVER: C:\VertrigoServ\www\cacti\scripts\ss_host_disk.php ss_host_disk 192.168.0.1 2 2:161:500:rimba:::MD5::DES: get used 2, output: 255536537600
04/24/2008 04:05:03 PM - CMDPHP: Poller[0] Host[2] DS[11] SERVER: C:\VertrigoServ\www\cacti\scripts\ss_host_disk.php ss_host_disk 192.168.0.1 2 2:161:500:rimba:::MD5::DES: get total 2, output: 300082855936
04/24/2008 04:05:03 PM - CMDPHP: Poller[0] Host[2] DS[10] SERVER: C:\VertrigoServ\www\cacti\scripts\ss_host_disk.php ss_host_disk 192.168.0.1 2 2:161:500:rimba:::MD5::DES: get used 1, output: 10780078080
04/24/2008 04:05:03 PM - CMDPHP: Poller[0] Host[2] DS[10] SERVER: C:\VertrigoServ\www\cacti\scripts\ss_host_disk.php ss_host_disk 192.168.0.1 2 2:161:500:rimba:::MD5::DES: get total 1, output: 82343243776
04/24/2008 04:05:02 PM - CMDPHP: Poller[0] Host[2] DS[9] SNMP: v2: 192.168.0.1, dsname: proc, oid: .1.3.6.1.2.1.25.1.6.0, output: 80
04/24/2008 04:05:02 PM - CMDPHP: Poller[0] Host[2] DS[8] SNMP: v2: 192.168.0.1, dsname: users, oid: .1.3.6.1.2.1.25.1.5.0, output: 4
04/24/2008 04:05:01 PM - CMDPHP: Poller[0] Host[2] SNMP: Host responded to SNMP
04/24/2008 04:05:01 PM - CMDPHP: Poller[0] WARNING: sockets support not enabled in PHP, falling back to SNMP ping
04/24/2008 04:05:01 PM - CMDPHP: Poller[0] PHP Script Server Started Properly
04/24/2008 04:05:01 PM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is cmd
04/24/2008 04:05:00 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Scheduled Task Int: '300', Time Since Last: '300', Max Runtime '298', Poller Runs: '1'
04/24/2008 04:00:13 PM - SYSTEM STATS: Time:12.7897 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:17 RRDsProcessed:10
I tried to figure out what's wrong but... nothing, i search google and this forum but i didn't find any solution.

Can you help me ?

Regards,
Matthieu.

PS: Forget about the possible mistakes in my post, i'm french :wink:
Last edited by creposukre on Thu Apr 24, 2008 12:01 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 »

I see you didn't follow the installation guide. You should read it and tweak your setup as needed.

I notice you didn't enable the sockets or snmp extensions in php.
creposukre
Posts: 15
Joined: Sat May 12, 2007 5:51 am
Location: Niort, FRANCE

Post by creposukre »

PER-FE-CTO !
I forgot php snmp and php sockets.... what a scatterbrain

Sorry for the disturbance...

Matthieu.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests