Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Windows Memory
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
BSOD2600
Cacti Moderator


Joined: 08 May 2004
Posts: 6662
Location: WA, USA

PostPosted: Wed Nov 08, 2006 12:21 pm    Post subject: Reply with quote

Most likely a permission issue. Read my faq http://bsod2600.home.comcast.net/install_windows.html#FAQ
Back to top
mikedu44



Joined: 23 Apr 2007
Posts: 8
Location: France

PostPosted: Tue Apr 24, 2007 12:35 pm    Post subject: Reply with quote

Hello everybody

I having a problem to run this script, 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.

the result of perl command in attachement

Please, anybody can help me ?

Mike



script cacti.JPG
 Description:
 Filesize:  83.91 KB
 Viewed:  2236 Time(s)

script cacti.JPG


Back to top
mcutting
Cacti Pro User


Joined: 16 Oct 2006
Posts: 954

PostPosted: Wed Apr 25, 2007 1:47 am    Post subject: Reply with quote

You need to enable socket support in PHP to resolve the socket error in the log file. Also, does the account your poller runs under have access to WMI on the remote host ?

If you are using Apache on Windows, then the service accounts may need to modified to use an account that has access to WMI. As BSOD2600 suggests above your post, this is more likely a permissions issue.
Back to top
looc
Cacti User


Joined: 13 Aug 2007
Posts: 110

PostPosted: Mon Aug 13, 2007 3:57 am    Post subject: Reply with quote

this template must run cacti for windows?!
i'm use cactiEZ,imported these templates,but in the Data Input Methods,script display "c:/perl/bin/perl.exe <path_cacti>/resource/script_queries/Lit_W32_OS.pl <hostname> get MaxProcessMemorySize,TotalVirtualMemorySize"
why?
Back to top
pheezy
Cacti User


Joined: 26 Oct 2006
Posts: 51

PostPosted: Tue Sep 25, 2007 1:48 pm    Post subject: Running on Linux Reply with quote

I've gotten this to run on Linux.

I've attached the XML and the script you'll need to run this.

You will need the check_nt binary and NC_Net running on the windows machine. The latest one is available from http://sourceforge.net/projects/nc-net, the one from the shatterit site will probably not work.



w32_memory_stats.pl
 Description:

Download
 Filename:  w32_memory_stats.pl
 Filesize:  1.82 KB
 Downloaded:  263 Time(s)


cacti_graph_template_lit_w32_os_on_linux.xml
 Description:

Download
 Filename:  cacti_graph_template_lit_w32_os_on_linux.xml
 Filesize:  30.27 KB
 Downloaded:  242 Time(s)

Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Goto page Previous  1, 2, 3
Page 3 of 3

 



Powered by phpBB © 2001, 2005 phpBB Group