Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sun Mar 24, 2019 7:28 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: No Values in Graphs for Windows Devices
PostPosted: Sun Dec 09, 2018 10:28 pm 
Offline

Joined: Sun Dec 09, 2018 10:14 pm
Posts: 6
hello all

I have a strange question for monitoring Windows Device when using cacti.

I have added and created graphs for windows device with no problem, but when I checked the graphs I found all value shows NaN. There is a screenshot below. I found no problem in the log file.

Is there anyone know what causes this problem?


Attachments:
6.PNG
6.PNG [ 55.28 KiB | Viewed 140 times ]
Top
 Profile  
 
 Post subject: Re: No Values in Graphs for Windows Devices
PostPosted: Sun Dec 09, 2018 11:07 pm 
Offline

Joined: Sun Dec 09, 2018 10:14 pm
Posts: 6
this is rrdtool info log.
filename = "/var/www/html/rra/ad_dc_primary_cpu_1110.rrd"
rrd_version = "0003"
step = 300
last_update = 1544413801
header_size = 3704
ds[cpu].index = 0
ds[cpu].type = "GAUGE"
ds[cpu].minimal_heartbeat = 600
ds[cpu].min = 0.0000000000e+00
ds[cpu].max = 1.0000000000e+02
ds[cpu].last_ds = "U"
ds[cpu].value = NaN
ds[cpu].unknown_sec = 1
rra[0].cf = "AVERAGE"
rra[0].rows = 600
rra[0].cur_row = 465
rra[0].pdp_per_row = 1
rra[0].xff = 5.0000000000e-01
rra[0].cdp_prep[0].value = NaN
rra[0].cdp_prep[0].unknown_datapoints = 0
rra[1].cf = "AVERAGE"
rra[1].rows = 700
rra[1].cur_row = 275
rra[1].pdp_per_row = 6
rra[1].xff = 5.0000000000e-01
rra[1].cdp_prep[0].value = 0.0000000000e+00
rra[1].cdp_prep[0].unknown_datapoints = 4
rra[2].cf = "AVERAGE"
rra[2].rows = 775
rra[2].cur_row = 608
rra[2].pdp_per_row = 24
rra[2].xff = 5.0000000000e-01
rra[2].cdp_prep[0].value = NaN
rra[2].cdp_prep[0].unknown_datapoints = 22
rra[3].cf = "AVERAGE"
rra[3].rows = 797
rra[3].cur_row = 524
rra[3].pdp_per_row = 288
rra[3].xff = 5.0000000000e-01
rra[3].cdp_prep[0].value = NaN
rra[3].cdp_prep[0].unknown_datapoints = 46
rra[4].cf = "MIN"
rra[4].rows = 600
rra[4].cur_row = 81
rra[4].pdp_per_row = 1
rra[4].xff = 5.0000000000e-01
rra[4].cdp_prep[0].value = NaN
rra[4].cdp_prep[0].unknown_datapoints = 0
rra[5].cf = "MIN"
rra[5].rows = 700
rra[5].cur_row = 317
rra[5].pdp_per_row = 6
rra[5].xff = 5.0000000000e-01
rra[5].cdp_prep[0].value = inf
rra[5].cdp_prep[0].unknown_datapoints = 4
rra[6].cf = "MIN"
rra[6].rows = 775
rra[6].cur_row = 708
rra[6].pdp_per_row = 24
rra[6].xff = 5.0000000000e-01
rra[6].cdp_prep[0].value = NaN
rra[6].cdp_prep[0].unknown_datapoints = 22
rra[7].cf = "MIN"
rra[7].rows = 797
rra[7].cur_row = 144
rra[7].pdp_per_row = 288
rra[7].xff = 5.0000000000e-01
rra[7].cdp_prep[0].value = NaN
rra[7].cdp_prep[0].unknown_datapoints = 46
rra[8].cf = "MAX"
rra[8].rows = 600
rra[8].cur_row = 21
rra[8].pdp_per_row = 1
rra[8].xff = 5.0000000000e-01
rra[8].cdp_prep[0].value = NaN
rra[8].cdp_prep[0].unknown_datapoints = 0
rra[9].cf = "MAX"
rra[9].rows = 700
rra[9].cur_row = 308
rra[9].pdp_per_row = 6
rra[9].xff = 5.0000000000e-01
rra[9].cdp_prep[0].value = -inf
rra[9].cdp_prep[0].unknown_datapoints = 4
rra[10].cf = "MAX"
rra[10].rows = 775
rra[10].cur_row = 730
rra[10].pdp_per_row = 24
rra[10].xff = 5.0000000000e-01
rra[10].cdp_prep[0].value = NaN
rra[10].cdp_prep[0].unknown_datapoints = 22
rra[11].cf = "MAX"
rra[11].rows = 797
rra[11].cur_row = 625
rra[11].pdp_per_row = 288
rra[11].xff = 5.0000000000e-01
rra[11].cdp_prep[0].value = NaN
rra[11].cdp_prep[0].unknown_datapoints = 46
rra[12].cf = "LAST"
rra[12].rows = 600
rra[12].cur_row = 488
rra[12].pdp_per_row = 1
rra[12].xff = 5.0000000000e-01
rra[12].cdp_prep[0].value = NaN
rra[12].cdp_prep[0].unknown_datapoints = 0
rra[13].cf = "LAST"
rra[13].rows = 700
rra[13].cur_row = 38
rra[13].pdp_per_row = 6
rra[13].xff = 5.0000000000e-01
rra[13].cdp_prep[0].value = NaN
rra[13].cdp_prep[0].unknown_datapoints = 4
rra[14].cf = "LAST"
rra[14].rows = 775
rra[14].cur_row = 202
rra[14].pdp_per_row = 24
rra[14].xff = 5.0000000000e-01
rra[14].cdp_prep[0].value = NaN
rra[14].cdp_prep[0].unknown_datapoints = 22
rra[15].cf = "LAST"
rra[15].rows = 797
rra[15].cur_row = 53
rra[15].pdp_per_row = 288
rra[15].xff = 5.0000000000e-01
rra[15].cdp_prep[0].value = NaN
rra[15].cdp_prep[0].unknown_datapoints = 46


Top
 Profile  
 
 Post subject: Re: No Values in Graphs for Windows Devices
PostPosted: Mon Dec 10, 2018 6:58 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2296
Check that your file permissions are correct and that the user running poller.php via task scheduler has write access to the RRD files.

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: No Values in Graphs for Windows Devices
PostPosted: Mon Dec 10, 2018 8:53 pm 
Offline

Joined: Sun Dec 09, 2018 10:14 pm
Posts: 6
thanks for your help.
I have checked file permission and CRONTABLE. seems everything works fine.

-rw-r--r--. 1 cacti cacti 95608 Dec 11 09:40 /var/www/html/rra/ad_dc_primary_cpu_1110.rrd.rrd

*/5 * * * * cacti php /var/www/html/poller.php > /dev/null 2>&1

I have also checked CACTIUSER
cacti:x:1000:1000::/usr/share/cacti:/sbin/nologin

SELINUX has been set to permissive. I even tried to CHMOD 777 to that file but still not work.


Top
 Profile  
 
 Post subject: Re: No Values in Graphs for Windows Devices
PostPosted: Wed Dec 12, 2018 3:43 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2296
The cron entry that you listed, was that in crontab or /etc/cron.d/cacti? If the former, then the username is causing you the problem as no user is expected in crontab as it runs as the user specified on when editing via crontab (current user if none is specified).

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: No Values in Graphs for Windows Devices
PostPosted: Wed Dec 12, 2018 9:32 pm 
Offline

Joined: Sun Dec 09, 2018 10:14 pm
Posts: 6
Hi netniV
thanks so much for your help.
I'm not sure if I clearly understand your explanation. I have specified user cacti on crontab */5 * * * * cacti php /var/www/html/poller.php > /dev/null 2>&1, so command "php /var/www/html/poller.php" will be run as cacti from my understand.


Top
 Profile  
 
 Post subject: Re: No Values in Graphs for Windows Devices
PostPosted: Wed Dec 12, 2018 9:58 pm 
Offline

Joined: Sun Dec 09, 2018 10:14 pm
Posts: 6
it's so frustrated me because of the only windows device encountered that problem. Cisco and Linux devices work without any problems.


Top
 Profile  
 
 Post subject: Re: No Values in Graphs for Windows Devices
PostPosted: Fri Dec 14, 2018 8:05 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2296
The problem is that you say you are using CRONTAB which uses either the current user or the specified user on the command line when running CRONTAB... the entry you have above if being used under CRONTAB should NOT have the user CACTI specified.

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: No Values in Graphs for Windows Devices
PostPosted: Sun Dec 16, 2018 10:26 pm 
Offline

Joined: Sun Dec 09, 2018 10:14 pm
Posts: 6
Hi netniV

Again, thanks for your help. I found a strange situation last week. Monitoring for Windows devices started to work without any configuration changed and stop working after a period.
I have also checked the cacti.log, no error comes out. Maybe there are other things cause this problem.


Attachments:
8.PNG
8.PNG [ 77.54 KiB | Viewed 96 times ]
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group