I cannot create/update the graph from the poller

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

Moderators: Developers, Moderators

Post Reply
Stefanoj
Posts: 5
Joined: Wed Sep 14, 2005 9:13 am

I cannot create/update the graph from the poller

Post by Stefanoj »

Hi Guys,

i think i'm not the only one with the rrd problems.

I actually installed the cacti on a windows XP machine but the only problem i have is the creation/updating of the graphs.

I enabled the debug on the log and this is the result:

09/14/2005 05:00:22 PM - SYSTEM STATS: Time: 6.2507 s, Method: cactid, Processes: 1, Threads: 1, Hosts: 4, Hosts/Process: 4, Data Sources 12, RRDs Processed 5
09/14/2005 05:00:21 PM - CACTID: Poller[0] Time: 5.3850 s, Threads: 1, Hosts: 4
09/14/2005 05:00:21 PM - CACTID: Poller[0] DEBUG: MYSQL Free & Close Completed
09/14/2005 05:00:21 PM - CACTID: Poller[0] CACTID: Shutting down Net-SNMP API
09/14/2005 05:00:21 PM - CACTID: Poller[0] DEBUG: Allocated Variable Memory Freed
09/14/2005 05:00:21 PM - CACTID: Poller[0] DEBUG: PHP Script Server Pipes Closed
09/14/2005 04:00:21 PM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
09/14/2005 05:00:21 PM - CACTID: Poller[0] DEBUG: PHP Script Server Shutdown Started
09/14/2005 05:00:21 PM - CACTID: Poller[0] DEBUG: Thread Cleanup Complete
09/14/2005 05:00:21 PM - CACTID: Poller[0] DEBUG: SQLCMD: insert into poller_time (poller_id, start_time, end_time) values (0, NOW(), NOW())
09/14/2005 05:00:21 PM - CACTID: Poller[0] DEBUG: SQLCMD: replace into settings (name,value) values ('date',NOW())
09/14/2005 05:00:21 PM - CACTID: Poller[0] DEBUG: The Value of Active Threads is 0
09/14/2005 05:00:21 PM - CACTID: Poller[0] Host[5] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
09/14/2005 05:00:21 PM - CACTID: Poller[0] DEBUG: SQLCMD: update host set status='1',status_event_count='8', status_fail_date='0000-00-00 00:00:00',status_rec_date='0000-00-00 00:00:00',status_last_error='Host did not respond to SNMP',min_time='9.999990',max_time='0.000000',cur_time='0.000000',avg_time='0.000000',total_polls='9',failed_polls='9',availability='0.0000' where id='5'
09/14/2005 05:00:21 PM - CACTID: Poller[0] Host[5] SNMP Result: Host did not respond to SNMP
09/14/2005 05:00:19 PM - CACTID: Poller[0] MYSQL: Connected to MySQL database 'cacti' on '127.0.0.1'...
09/14/2005 05:00:19 PM - CACTID: Poller[0] DEBUG: The Value of Active Threads is 1
09/14/2005 05:00:19 PM - CACTID: Poller[0] MYSQL: Connecting to MySQL database 'cacti' on '127.0.0.1'...
09/14/2005 05:00:19 PM - CACTID: Poller[0] DEBUG: In Poller, About to Start Polling of Host
09/14/2005 05:00:19 PM - CACTID: Poller[0] DEBUG: Valid Thread to be Created
09/14/2005 05:00:19 PM - CACTID: Poller[0] DEBUG: The Value of Active Threads is 0
09/14/2005 05:00:19 PM - CACTID: Poller[0] Host[4] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
09/14/2005 05:00:19 PM - CACTID: Poller[0] DEBUG: SQLCMD: update host set status='1',status_event_count='2', status_fail_date='2005-09-14 16:55:00',status_rec_date='0000-00-00 00:00:00',status_last_error='Host did not respond to SNMP',min_time='9.999990',max_time='999.999990',cur_time='894.999980',avg_time='708.333330',total_polls='9',failed_polls='3',availability='66.6667' where id='4'
09/14/2005 05:00:19 PM - CACTID: Poller[0] Host[4] ERROR: HOST EVENT: Host is DOWN Message: Host did not respond to SNMP
09/14/2005 05:00:19 PM - CACTID: Poller[0] Host[4] SNMP Result: Host did not respond to SNMP
09/14/2005 05:00:18 PM - POLLER: Poller[0] CACTI2RRD: d:/cacti/rrdtool/rrdtool.exe update D:\cacti\rra\winxos_traffic_in_13.rrd --template traffic_in:traffic_out 1126710016:17884134:4886220
09/14/2005 05:00:18 PM - POLLER: Poller[0] CACTI2RRD: d:/cacti/rrdtool/rrdtool.exe update D:\cacti\rra\winxos_hdd_total_9.rrd --template hdd_total:hdd_used 1126710016:7345139712:4508815360
09/14/2005 05:00:18 PM - POLLER: Poller[0] CACTI2RRD: d:/cacti/rrdtool/rrdtool.exe update D:\cacti\rra\winxos_hdd_total_12.rrd --template hdd_total:hdd_used 1126710016:1565065216:0
09/14/2005 05:00:18 PM - POLLER: Poller[0] CACTI2RRD: d:/cacti/rrdtool/rrdtool.exe update D:\cacti\rra\winxos_hdd_total_11.rrd --template hdd_total:hdd_used 1126710016:27401420800:26484408320
09/14/2005 05:00:18 PM - POLLER: Poller[0] CACTI2RRD: d:/cacti/rrdtool/rrdtool.exe update D:\cacti\rra\winxos_hdd_total_10.rrd --template hdd_total:hdd_used 1126710016:5247692800:4792774656
09/14/2005 05:00:17 PM - CACTID: Poller[0] MYSQL: Connected to MySQL database 'cacti' on '127.0.0.1'...
09/14/2005 05:00:17 PM - CACTID: Poller[0] DEBUG: The Value of Active Threads is 1
09/14/2005 05:00:17 PM - CACTID: Poller[0] MYSQL: Connecting to MySQL database 'cacti' on '127.0.0.1'...
09/14/2005 05:00:17 PM - CACTID: Poller[0] DEBUG: In Poller, About to Start Polling of Host
09/14/2005 05:00:17 PM - CACTID: Poller[0] DEBUG: Valid Thread to be Created
09/14/2005 05:00:17 PM - CACTID: Poller[0] DEBUG: The Value of Active Threads is 0
09/14/2005 05:00:17 PM - CACTID: Poller[0] Host[3] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
09/14/2005 05:00:17 PM - CACTID: Poller[0] DEBUG: SQLCMD: insert into poller_output (local_data_id,rrd_name,time,output) values (13,'traffic_out','2005-09-14 17:00:16','4886220')
09/14/2005 05:00:17 PM - CACTID: Poller[0] Host[3] DS[13] SNMP: v1: winxo-s, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.131076, value: 4886220
09/14/2005 05:00:17 PM - CACTID: Poller[0] DEBUG: SQLCMD: insert into poller_output (local_data_id,rrd_name,time,output) values (13,'traffic_in','2005-09-14 17:00:16','17884134')
09/14/2005 05:00:17 PM - CACTID: Poller[0] Host[3] DS[13] SNMP: v1: winxo-s, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.131076, value: 17884134
09/14/2005 05:00:17 PM - CACTID: Poller[0] DEBUG: SQLCMD: insert into poller_output (local_data_id,rrd_name,time,output) values (9,'hdd_used','2005-09-14 17:00:16','4508815360')
09/14/2005 05:00:17 PM - CACTID: Poller[0] Host[3] DS[9] SERVER: D:\cacti\scripts\ss_host_disk.php ss_host_disk winxo-s public 1 3 161 500 get used 1, output: 4508815360
09/14/2005 04:00:17 PM - PHPSVR: Poller[0] SERVER: D:\cacti\scripts\ss_host_disk.php ss_host_disk winxo-s public 1 3 161 500 get used 1 output 4508815360
09/14/2005 04:00:17 PM - PHPSVR: Poller[0] DEBUG: INCLUDE: 'D:\cacti\scripts\ss_host_disk.php' SCRIPT: 'ss_host_disk' CMD: 'winxo-s public 1 3 161 500 get used 1'
09/14/2005 05:00:17 PM - CACTID: Poller[0] DEBUG: SQLCMD: insert into poller_output (local_data_id,rrd_name,time,output) values (9,'hdd_total','2005-09-14 17:00:16','7345139712')
09/14/2005 05:00:17 PM - CACTID: Poller[0] Host[3] DS[9] SERVER: D:\cacti\scripts\ss_host_disk.php ss_host_disk winxo-s public 1 3 161 500 get total 1, output: 7345139712
09/14/2005 04:00:17 PM - PHPSVR: Poller[0] SERVER: D:\cacti\scripts\ss_host_disk.php ss_host_disk winxo-s public 1 3 161 500 get total 1 output 7345139712
09/14/2005 04:00:17 PM - PHPSVR: Poller[0] DEBUG: INCLUDE: 'D:\cacti\scripts\ss_host_disk.php' SCRIPT: 'ss_host_disk' CMD: 'winxo-s public 1 3 161 500 get total 1'
09/14/2005 05:00:17 PM - CACTID: Poller[0] DEBUG: SQLCMD: insert into poller_output (local_data_id,rrd_name,time,output) values (12,'hdd_used','2005-09-14 17:00:16','0')
09/14/2005 05:00:17 PM - CACTID: Poller[0] Host[3] DS[12] SERVER: D:\cacti\scripts\ss_host_disk.php ss_host_disk winxo-s public 1 3 161 500 get used 9, output: 0
09/14/2005 04:00:17 PM - PHPSVR: Poller[0] SERVER: D:\cacti\scripts\ss_host_disk.php ss_host_disk winxo-s public 1 3 161 500 get used 9 output 0
09/14/2005 04:00:17 PM - PHPSVR: Poller[0] DEBUG: INCLUDE: 'D:\cacti\scripts\ss_host_disk.php' SCRIPT: 'ss_host_disk' CMD: 'winxo-s public 1 3 161 500 get used 9'
09/14/2005 05:00:17 PM - CACTID: Poller[0] DEBUG: SQLCMD: insert into poller_output (local_data_id,rrd_name,time,output) values (12,'hdd_total','2005-09-14 17:00:16','1565065216')
09/14/2005 05:00:17 PM - CACTID: Poller[0] Host[3] DS[12] SERVER: D:\cacti\scripts\ss_host_disk.php ss_host_disk winxo-s public 1 3 161 500 get total 9, output: 1565065216
09/14/2005 04:00:17 PM - PHPSVR: Poller[0] SERVER: D:\cacti\scripts\ss_host_disk.php ss_host_disk winxo-s public 1 3 161 500 get total 9 output 1565065216
09/14/2005 04:00:17 PM - PHPSVR: Poller[0] DEBUG: INCLUDE: 'D:\cacti\scripts\ss_host_disk.php' SCRIPT: 'ss_host_disk' CMD: 'winxo-s public 1 3 161 500 get total 9'
09/14/2005 05:00:17 PM - CACTID: Poller[0] DEBUG: SQLCMD: insert into poller_output (local_data_id,rrd_name,time,output) values (11,'hdd_used','2005-09-14 17:00:16','26484408320')
09/14/2005 05:00:17 PM - CACTID: Poller[0] Host[3] DS[11] SERVER: D:\cacti\scripts\ss_host_disk.php ss_host_disk winxo-s public 1 3 161 500 get used 3, output: 26484408320
09/14/2005 04:00:17 PM - PHPSVR: Poller[0] SERVER: D:\cacti\scripts\ss_host_disk.php ss_host_disk winxo-s public 1 3 161 500 get used 3 output 26484408320
09/14/2005 04:00:17 PM - PHPSVR: Poller[0] DEBUG: INCLUDE: 'D:\cacti\scripts\ss_host_disk.php' SCRIPT: 'ss_host_disk' CMD: 'winxo-s public 1 3 161 500 get used 3'
09/14/2005 05:00:17 PM - CACTID: Poller[0] DEBUG: SQLCMD: insert into poller_output (local_data_id,rrd_name,time,output) values (11,'hdd_total','2005-09-14 17:00:16','27401420800')
09/14/2005 05:00:17 PM - CACTID: Poller[0] Host[3] DS[11] SERVER: D:\cacti\scripts\ss_host_disk.php ss_host_disk winxo-s public 1 3 161 500 get total 3, output: 27401420800
09/14/2005 04:00:17 PM - PHPSVR: Poller[0] SERVER: D:\cacti\scripts\ss_host_disk.php ss_host_disk winxo-s public 1 3 161 500 get total 3 output 27401420800
09/14/2005 04:00:17 PM - PHPSVR: Poller[0] DEBUG: INCLUDE: 'D:\cacti\scripts\ss_host_disk.php' SCRIPT: 'ss_host_disk' CMD: 'winxo-s public 1 3 161 500 get total 3'
09/14/2005 05:00:17 PM - CACTID: Poller[0] DEBUG: SQLCMD: insert into poller_output (local_data_id,rrd_name,time,output) values (10,'hdd_used','2005-09-14 17:00:16','4792774656')
09/14/2005 05:00:17 PM - CACTID: Poller[0] Host[3] DS[10] SERVER: D:\cacti\scripts\ss_host_disk.php ss_host_disk winxo-s public 1 3 161 500 get used 2, output: 4792774656
09/14/2005 04:00:17 PM - PHPSVR: Poller[0] SERVER: D:\cacti\scripts\ss_host_disk.php ss_host_disk winxo-s public 1 3 161 500 get used 2 output 4792774656
09/14/2005 04:00:17 PM - PHPSVR: Poller[0] DEBUG: INCLUDE: 'D:\cacti\scripts\ss_host_disk.php' SCRIPT: 'ss_host_disk' CMD: 'winxo-s public 1 3 161 500 get used 2'
09/14/2005 05:00:17 PM - CACTID: Poller[0] DEBUG: SQLCMD: insert into poller_output (local_data_id,rrd_name,time,output) values (10,'hdd_total','2005-09-14 17:00:16','5247692800')
09/14/2005 05:00:17 PM - CACTID: Poller[0] Host[3] DS[10] SERVER: D:\cacti\scripts\ss_host_disk.php ss_host_disk winxo-s public 1 3 161 500 get total 2, output: 5247692800
09/14/2005 04:00:17 PM - PHPSVR: Poller[0] SERVER: D:\cacti\scripts\ss_host_disk.php ss_host_disk winxo-s public 1 3 161 500 get total 2 output 5247692800
09/14/2005 04:00:16 PM - PHPSVR: Poller[0] DEBUG: INCLUDE: 'D:\cacti\scripts\ss_host_disk.php' SCRIPT: 'ss_host_disk' CMD: 'winxo-s public 1 3 161 500 get total 2'
09/14/2005 05:00:16 PM - CACTID: Poller[0] Host[3] RECACHE: Processing 3 items in the auto reindex cache for 'winxo-s'
09/14/2005 05:00:16 PM - CACTID: Poller[0] DEBUG: SQLCMD: update host set status='3',status_event_count='0', status_fail_date='0000-00-00 00:00:00',status_rec_date='0000-00-00 00:00:00',status_last_error='',min_time='1.999860',max_time='62.999960',cur_time='1.999860',avg_time='6.962945',total_polls='20',failed_polls='0',availability='100.0000' where id='3'
09/14/2005 05:00:16 PM - CACTID: Poller[0] Host[3] SNMP Result: Host responded to SNMP
09/14/2005 05:00:16 PM - CACTID: Poller[0] MYSQL: Connected to MySQL database 'cacti' on '127.0.0.1'...
09/14/2005 05:00:16 PM - CACTID: Poller[0] MYSQL: Connecting to MySQL database 'cacti' on '127.0.0.1'...
09/14/2005 05:00:16 PM - CACTID: Poller[0] DEBUG: The Value of Active Threads is 1
09/14/2005 05:00:16 PM - CACTID: Poller[0] DEBUG: In Poller, About to Start Polling of Host
09/14/2005 05:00:16 PM - CACTID: Poller[0] DEBUG: Valid Thread to be Created
09/14/2005 05:00:16 PM - CACTID: Poller[0] DEBUG: The Value of Active Threads is 0
09/14/2005 05:00:16 PM - CACTID: Poller[0] Host[0] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
09/14/2005 05:00:16 PM - CACTID: Poller[0] MYSQL: Connected to MySQL database 'cacti' on '127.0.0.1'...
09/14/2005 05:00:16 PM - CACTID: Poller[0] MYSQL: Connecting to MySQL database 'cacti' on '127.0.0.1'...
09/14/2005 05:00:16 PM - CACTID: Poller[0] DEBUG: The Value of Active Threads is 1
09/14/2005 05:00:16 PM - CACTID: Poller[0] DEBUG: In Poller, About to Start Polling of Host
09/14/2005 05:00:16 PM - CACTID: Poller[0] DEBUG: Valid Thread to be Created
09/14/2005 05:00:16 PM - CACTID: Poller[0] DEBUG: Initial Value of Active Threads is 0
09/14/2005 05:00:16 PM - CACTID: Poller[0] DEBUG: Parent pid=3900, Script Server pid=3856
09/14/2005 05:00:16 PM - CACTID: Poller[0] DEBUG: Confirmed PHP Script Server Running
09/14/2005 04:00:16 PM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is cactid
09/14/2005 04:00:16 PM - PHPSVR: Poller[0] DEBUG: FILENM: d:\cacti\script_server.php
09/14/2005 04:00:16 PM - PHPSVR: Poller[0] DEBUG: DIRNAM: d:/cacti
09/14/2005 04:00:16 PM - PHPSVR: Poller[0] DEBUG: GETCWD: d:/cacti
09/14/2005 04:00:16 PM - PHPSVR: Poller[0] DEBUG: SERVER: cactid
09/14/2005 05:00:16 PM - CACTID: Poller[0] DEBUG: PHP Script Server Child FORK Success
09/14/2005 05:00:16 PM - CACTID: Poller[0] DEBUG: PHP Script Server About to FORK Child Process
09/14/2005 05:00:16 PM - CACTID: Poller[0] DEBUG: PHP Script Server Routine Starting
09/14/2005 05:00:16 PM - CACTID: Poller[0] CACTID: Initializing PHP Script Server
09/14/2005 05:00:16 PM - CACTID: Poller[0] CACTID: Initializing Net-SNMP API
09/14/2005 05:00:16 PM - CACTID: Poller[0] MYSQL: Connected to MySQL database 'cacti' on '127.0.0.1'...
09/14/2005 05:00:16 PM - CACTID: Poller[0] MYSQL: Connecting to MySQL database 'cacti' on '127.0.0.1'...
09/14/2005 05:00:16 PM - CACTID: Poller[0] CACTID: Version 0.8.6e starting
09/14/2005 05:00:16 PM - CACTID: Poller[0] DEBUG: The PHP Script Server is Required
09/14/2005 05:00:16 PM - CACTID: Poller[0] DEBUG: StartHost='0', EndHost='5', TotalPHPScripts='8'
09/14/2005 05:00:16 PM - CACTID: Poller[0] DEBUG: The script timeout is 25
09/14/2005 05:00:16 PM - CACTID: Poller[0] DEBUG: The number of concurrent processes is 1
09/14/2005 05:00:16 PM - CACTID: Poller[0] DEBUG: The polling interval is the system default
09/14/2005 05:00:16 PM - CACTID: Poller[0] DEBUG: The threads variable is 1
09/14/2005 05:00:16 PM - CACTID: Poller[0] DEBUG: The log_pstats variable is 1
09/14/2005 05:00:16 PM - CACTID: Poller[0] DEBUG: The log_pwarn variable is 1
09/14/2005 05:00:16 PM - CACTID: Poller[0] DEBUG: The log_perror variable is 1
09/14/2005 05:00:16 PM - CACTID: Poller[0] DEBUG: The ping_timeout variable is 400
09/14/2005 05:00:16 PM - CACTID: Poller[0] DEBUG: The ping_retries variable is 1
09/14/2005 05:00:16 PM - CACTID: Poller[0] DEBUG: The ping_method variable is 2
09/14/2005 05:00:16 PM - CACTID: Poller[0] DEBUG: The ping_failure_count variable is 2
09/14/2005 05:00:16 PM - CACTID: Poller[0] DEBUG: The ping_recovery_count variable is 3
09/14/2005 05:00:16 PM - CACTID: Poller[0] DEBUG: The availability_method variable is 2
09/14/2005 05:00:16 PM - CACTID: Poller[0] DEBUG: The path_php variable is d:/cacti/php/php-win.exe
09/14/2005 05:00:16 PM - CACTID: Poller[0] DEBUG: The log_destination variable is 1
09/14/2005 05:00:15 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: d:/cacti/cactid.exe, ARGS: 0 5]


It looks like everything is ok but if i go and see the graph files they are not updated. in the meantime if i just run the command on a dos shell than the graph is updated with no problems.

Any suggestion?

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

Post by BSOD2600 »

If when the scheduled task runs and the graphs are not updated, but when you run poller.php they are, then you have a permission problem.

Make sure the user running the user running the scheduled task has modify rights to your rrd folder.
Stefanoj
Posts: 5
Joined: Wed Sep 14, 2005 9:13 am

Post by Stefanoj »

Hi BSOD2600,

i had the same thought but unfortunately the user that is running the poller.php is the same user i'm using when i use the dos shell.

just to be sure i was doing the correct thing ( and please help me on this ) i have set the permission in this way tothe directory

drwxrwxrwx+ 2 stefanoj None 0 Sep 14 19:16 rra

done with the cygwin. ( with WinXP i had some troubles ;) )

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

Post by BSOD2600 »

I wouldn't use cygwin to set your security. Do it the proper way, by getting properties on the rrd folder, click on the security tab, and then add/modify the rights for the user running the scheduled task. Make sure you replace the security on all child objects. To make sure the rrd files have the correct security after you've done this, get properties on one of them and take a look at the security tab. It should have the same rights you just set on the rrd folder.
Stefanoj
Posts: 5
Joined: Wed Sep 14, 2005 9:13 am

Post by Stefanoj »

Actually this is what i knew but with winXp seems to be a little bit different.

I did what you said andin the attachment you canfind the outcome of the windows screenshots.

i knew there was also another way how to change the permission by cli. but i completely forgot.

Thanks
S

[/img]
Attachments
security.JPG
security.JPG (63.78 KiB) Viewed 1971 times
Stefanoj
Posts: 5
Joined: Wed Sep 14, 2005 9:13 am

Post by Stefanoj »

I just changed the attributes of the read only and it looks like now it is working perfectly.

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

Post by BSOD2600 »

In windows explorer, go to Tools -> folder options. Disable simple security. Now you should see the tab.
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests