The snmp graphics are not generate

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

Moderators: Developers, Moderators

Post Reply
mikedu44
Posts: 8
Joined: Mon Apr 23, 2007 9:01 am
Location: France

The snmp graphics are not generate

Post by mikedu44 »

Hello everybody

I having a problem to run the Cacti system, the log says:

04/23/2007 03:35:06 PM - SYSTEM STATS: Time:5.4537 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:1 RRDsProcessed:1
04/23/2007 03:35:06 PM - CMDPHP: Poller[0] Time: 4.5429 s, Theads: N/A, Hosts: 1
04/23/2007 03:35:06 PM - CMDPHP: Poller[0] Host[12] DS[146] CMD: c:/perl/bin/perl.exe c:/easyphp1-8/www/cacti-0.8.6j/resource/script_queries/Lit_W32_OS.pl srv-nantes2 get MaxProcessMemorySize,TotalVirtualMemorySize,FreeVirtualMemory,TotalVisibleMemorySize,FreePhysicalMemory,SizeStoredInPagingFiles,FreeSpaceInPagingFiles, output: U
04/23/2007 03:35:06 PM - CMDPHP: Poller[0] Host[12] DS[146] WARNING: Result from CMD not valid. Partial Result:
04/23/2007 03:35:02 PM - CMDPHP: Poller[0] WARNING: sockets support not enabled in PHP, falling back to SNMP ping




and the snmp graphics are not generate.

Please, anybody can help me ?

Mike
jay
Cacti User
Posts: 390
Joined: Wed Aug 31, 2005 8:55 am
Location: Bristol, England

Post by jay »

What happens when you run the script from the command line?? Do you get any results?? Looking at the output from your logs there its showing a U as the output.

Jay
Cacti Version 0.8.7e, Spine 0.8.7e, Apache 2.2.15, Mysql 5.0.88, PHP 5.2.13, RRDTool 1.2.30, NET-SNMP 5.5
Quad Core AMD Opteron Processor 2384, 2.70Ghz, 2GB RAM , 1 CPU used
Windows Server 2003 (X64), VMWARE ESX
Plugins: Aggregate 0.75

SYSTEM STATS: Time:12.5140 Method:spine Processes:2 Threads:15 Hosts:400 HostsPerProcess:200 DataSources:2909 RRDsProcessed:1384
mikedu44
Posts: 8
Joined: Mon Apr 23, 2007 9:01 am
Location: France

Post by mikedu44 »

jay wrote:What happens when you run the script from the command line?? Do you get any results?? Looking at the output from your logs there its showing a U as the output.

Jay
the result of this command :
Attachments
script cacti.JPG
script cacti.JPG (83.91 KiB) Viewed 3043 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Well there you go, the script doesn't properly work on your system. Correct that and once its spitting out numbers, you should be set.
mikedu44
Posts: 8
Joined: Mon Apr 23, 2007 9:01 am
Location: France

Post by mikedu44 »

BSOD2600 wrote:Well there you go, the script doesn't properly work on your system. Correct that and once its spitting out numbers, you should be set.
Sorry, I don't understand your explanation !

Please, can you reformulate this answer ?

Best Regard

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

Post by BSOD2600 »

The script is broken. Fix it.
mikedu44
Posts: 8
Joined: Mon Apr 23, 2007 9:01 am
Location: France

Post by mikedu44 »

BSOD2600 wrote:The script is broken. Fix it.
At home, there is many script which bug, in attachement this an example

Please, can you help me ?
Attachments
lit_w32_os.pl
(5.6 KiB) Downloaded 120 times
jay
Cacti User
Posts: 390
Joined: Wed Aug 31, 2005 8:55 am
Location: Bristol, England

Post by jay »

Hi

I'm no perl expert but you can try to debug the script using:-

perl -c Lit_W32_OS.pl

and or

perl -d Lit_W32_OS.pl

where Lit_W32_OS.pl is the name of your perl script

I see that you are using the use strict; command after the path in your script. This is good as it will force each variable to be declared before use.

Jay
Cacti Version 0.8.7e, Spine 0.8.7e, Apache 2.2.15, Mysql 5.0.88, PHP 5.2.13, RRDTool 1.2.30, NET-SNMP 5.5
Quad Core AMD Opteron Processor 2384, 2.70Ghz, 2GB RAM , 1 CPU used
Windows Server 2003 (X64), VMWARE ESX
Plugins: Aggregate 0.75

SYSTEM STATS: Time:12.5140 Method:spine Processes:2 Threads:15 Hosts:400 HostsPerProcess:200 DataSources:2909 RRDsProcessed:1384
mikedu44
Posts: 8
Joined: Mon Apr 23, 2007 9:01 am
Location: France

Post by mikedu44 »

My problem is solve ! Thank's everybody

See you later , Good Bye
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest