Nan values in CPU and Memory graph

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

Moderators: Developers, Moderators

magzz69
Posts: 20
Joined: Thu Jul 24, 2008 3:22 am

Nan values in CPU and Memory graph

Post by magzz69 »

Hello

I have install cacti and I can do a lot of graphs, but! The graph CPU Usage and memory usage doesn't work there are the famous NAN values.


When I put the debug mode RRDTOOL says OK!

SO I don't see where is the problem!!

Please help me, cacti is on a windows 2000.


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

Post by BSOD2600 »

1) ** README BEFORE POSTING ** Sticky

2) post verbose queries of each broken script.
magzz69
Posts: 20
Joined: Thu Jul 24, 2008 3:22 am

Post by magzz69 »

Yes, I already see this page thanks!

But I use Windows so in the command prompt I can't do this for exemple :
chown cactiuser:cactiuser *.rrd

It told me that chown is not reconize.

I'm interested by the point 6 because my rrd files are automatically created but for some graph there is NAN values...
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

chown is a UNIX/Linux command. My guess is that you can't read English very well as BSOD2600 does Windows and not UNIX/Linux. Sorry, I just needed to jab something this morning. Don't take any offense to it.

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?
magzz69
Posts: 20
Joined: Thu Jul 24, 2008 3:22 am

Post by magzz69 »

sorry but i'm french so read a big part of text in french and you will see if it's easy or not!!

by cons if you want to help me about my problem it will be better

thanks,

Magzz
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Set logging to Medium. Review your Log. Make sure that the user the performs the polling has permissions to update the RRDfiles, not just read them. If the log provides good values and the RRD's are not being updated, then it's a permissions problem. Giving "Everyone" RW access to the RRDfiles, may du that for you.

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?
magzz69
Posts: 20
Joined: Thu Jul 24, 2008 3:22 am

Post by magzz69 »

How can I see if my log are good? in the cacti.log file?

I've already put files and folder to everyone read and write :)
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Set log level to MEDIUM and review Cacti Log output after a poller run. If you get good output, then your problem is a permissions problem.

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?
magzz69
Posts: 20
Joined: Thu Jul 24, 2008 3:22 am

Post by magzz69 »

In cacti log I have that after a poller run :


07/28/2008 03:29:56 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Scheduled Task Int: '300', Time Since Last: '176', Max Runtime '298', Poller Runs: '1'
07/28/2008 03:29:56 PM - POLLER: Poller[0] NOTE: Scheduled Task is configured to run too often! The Poller Interval is '300' seconds, with a minimum Scheduled Task period of '300' seconds, but only 176 seconds have passed since the poller last ran.
07/28/2008 03:30:00 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Scheduled Task Int: '300', Time Since Last: '180', Max Runtime '298', Poller Runs: '1'
07/28/2008 03:30:00 PM - POLLER: Poller[0] NOTE: Scheduled Task is configured to run too often! The Poller Interval is '300' seconds, with a minimum Scheduled Task period of '300' seconds, but only 180 seconds have passed since the poller last ran.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

How often are you polling? If not every 5 minutes, it may never run. Can you instead run "php -q poller.php --force" it may be "-f", or "-force" though...

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?
magzz69
Posts: 20
Joined: Thu Jul 24, 2008 3:22 am

Post by magzz69 »

Hi!

So when I put the command php -q poller.php --force its told me "could not input file : poller.php"

But I have the everyone's rights of total control activate on the file poller.php .

I running poller.php every 4 minutes thanks to a planned task in windows.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Every 4 minutes is not a good poller interval. Make 5 minutes. Also, please verify the location of the poller.php file. Then, here are your testing criteria:
  • 1) login as scheduled task user
    2) cd to <path_cacti>
    3) run "php -q poller.php -force"
    4) look for many oks
    5) cd rra
    6) verify RRDfiles have good date
TheWitness[/list]
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?
magzz69
Posts: 20
Joined: Thu Jul 24, 2008 3:22 am

Post by magzz69 »

When I put Data query processor in mode debug I have that :


+ Running data query [9].
+ Found type = '6 '[script query].
+ Found data query XML file at 'C:/Inetpub/wwwroot/cacti/resource/script_server/host_cpu.xml'
+ XML file parsed ok.
+ Executing script for list of indexes 'c:\php\php.exe -q C:\Inetpub\wwwroot\cacti\scripts\ss_host_cpu.php GX150-B213 7 1:161:500:public:::MD5::DES: index'
+ Executing script query 'c:\php\php.exe -q C:\Inetpub\wwwroot\cacti\scripts\ss_host_cpu.php GX150-B213 7 1:161:500:public:::MD5::DES: query index'
+ Found item [hrProcessorFrwID='0'] index: 0
+ Found data query XML file at 'C:/Inetpub/wwwroot/cacti/resource/script_server/host_cpu.xml'
+ Found data query XML file at 'C:/Inetpub/wwwroot/cacti/resource/script_server/host_cpu.xml'
+ Found data query XML file at 'C:/Inetpub/wwwroot/cacti/resource/script_server/host_cpu.xml'



My rrd files have good date
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Alright so it found one cpu, is that correct for your system?

Did you click on the 'create graphs' in the top right corner, select the cpu and then create? Waited 10 min before trying to look at the graphs?
magzz69
Posts: 20
Joined: Thu Jul 24, 2008 3:22 am

Post by magzz69 »

Hi!

Yes I wait for graph building, but the others graph are good but cpu usage graph and memory usage don't.

I give you a screen of debug mode of my graph... If it can help
Attachments
CPU usage GRAPH
CPU usage GRAPH
screen.jpg (102.02 KiB) Viewed 6787 times
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests