winxp cacti

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

Moderators: Developers, Moderators

research
Cacti User
Posts: 72
Joined: Tue Sep 20, 2005 9:27 am

Post by research »

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

Post by BSOD2600 »

I believe many of those linux scripts you're trying to use only work locally.

Turn the polling level in cacti to debug (Settings | Polling level) for one cycle and paste the output of the actual log file (./cacti/log/cacti.log). If it contains WEBLOG entries, then don't bother posting since they just clutter up the log. Turn off WEBEVENTS logging and try again.
research
Cacti User
Posts: 72
Joined: Tue Sep 20, 2005 9:27 am

Post by research »

Here you go :) .. Anyway, Cant I monitor linux,unix hosts from a winxp cacti ?

Code: Select all

09/27/2005 06:00:00 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: C:/apache2triad/php/bin/php.exe, ARGS: -q c:/apache2triad/htdocs/cacti/cmd.php 0 2]
09/27/2005 06:00:01 PM - PHPSVR: Poller[0] DEBUG: SERVER: cmd
09/27/2005 06:00:01 PM - PHPSVR: Poller[0] DEBUG: GETCWD: c:/apache2triad/htdocs/cacti
09/27/2005 06:00:01 PM - PHPSVR: Poller[0] DEBUG: DIRNAM: c:/apache2triad/htdocs/cacti
09/27/2005 06:00:01 PM - PHPSVR: Poller[0] DEBUG: FILENM: c:\apache2triad\htdocs\cacti\script_server.php
09/27/2005 06:00:01 PM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is cmd
09/27/2005 06:00:01 PM - CMDPHP: Poller[0] PHP Script Server Started Properly
09/27/2005 06:00:01 PM - CMDPHP: Poller[0] Host[1] SNMP: Host responded to SNMP
09/27/2005 06:00:01 PM - CMDPHP: Poller[0] Host[1] DS[4] WARNING: Result from CMD not valid.  Partial Result: 
09/27/2005 06:00:01 PM - CMDPHP: Poller[0] Host[1] DS[4] CMD: perl C:/apache2triad/htdocs/cacti/scripts/linux_memory.pl SwapFree:, output: U
09/27/2005 06:00:01 PM - CMDPHP: Poller[0] Host[1] DS[5] WARNING: Result from CMD not valid.  Partial Result: 1min: 5min: 10
09/27/2005 06:00:01 PM - CMDPHP: Poller[0] Host[1] DS[5] CMD: perl C:/apache2triad/htdocs/cacti/scripts/loadavg_multi.pl, output: U
09/27/2005 06:00:01 PM - CMDPHP: Poller[0] Host[1] DS[6] WARNING: Result from CMD not valid.  Partial Result: 
09/27/2005 06:00:01 PM - CMDPHP: Poller[0] Host[1] DS[6] CMD: perl C:/apache2triad/htdocs/cacti/scripts/unix_users.pl, output: U
09/27/2005 06:00:01 PM - CMDPHP: Poller[0] Host[1] DS[7] WARNING: Result from CMD not valid.  Partial Result: 
09/27/2005 06:00:01 PM - CMDPHP: Poller[0] Host[1] DS[7] CMD: perl C:/apache2triad/htdocs/cacti/scripts/unix_processes.pl, output: U
09/27/2005 06:00:01 PM - CMDPHP: Poller[0] Host[1] DS[3] WARNING: Result from CMD not valid.  Partial Result: 
09/27/2005 06:00:01 PM - CMDPHP: Poller[0] Host[1] DS[3] CMD: perl C:/apache2triad/htdocs/cacti/scripts/linux_memory.pl MemFree:, output: U
09/27/2005 06:00:01 PM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
09/27/2005 06:00:01 PM - CMDPHP: Poller[0] Time: 0.6098 s, Theads: N/A, Hosts: 2
09/27/2005 06:00:01 PM - POLLER: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe update C:\apache2triad\htdocs\cacti\rra\localhost_mem_swap_4.rrd --template mem_swap 1127833200:U
09/27/2005 06:00:01 PM - POLLER: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe update C:\apache2triad\htdocs\cacti\rra\localhost_load_1min_5.rrd --template  1127833200:U
09/27/2005 06:00:01 PM - POLLER: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe update C:\apache2triad\htdocs\cacti\rra\localhost_users_6.rrd --template users 1127833200:U
09/27/2005 06:00:01 PM - POLLER: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe update C:\apache2triad\htdocs\cacti\rra\localhost_proc_7.rrd --template proc 1127833200:U
09/27/2005 06:00:01 PM - POLLER: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe update rra\localhost_mem_buffers_3.rrd --template mem_buffers 1127833200:U
09/27/2005 06:00:01 PM - SYSTEM STATS: Time:1.1398 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:5 RRDsProcessed:5
09/27/2005 06:00:01 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: C:/apache2triad/php/bin/php.exe, ARGS: -q C:/apache2triad/htdocs/cacti/poller_commands.php]
09/27/2005 06:00:01 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: C:/apache2triad/php/bin/php.exe, ARGS: -q C:/apache2triad/htdocs/cacti/poller_export.php]
09/27/2005 06:01:26 PM - WEBLOG: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe graph -  --imgformat=PNG  --start=1127746885  --end=1127833285  --title="Localhost - Memory Usage"  --rigid  --base=1000  --height=120  --width=500  --alt-autoscale-max  --lower-limit=0  COMMENT:"From 2005/09/26 18\:01\:25 To 2005/09/27 18\:01\:25\c"  COMMENT:"  \n"  --vertical-label="kilobytes"  --slope-mode  DEF:a="rra/localhost_mem_buffers_3.rrd":mem_buffers:AVERAGE  DEF:b="C\:/apache2triad/htdocs/cacti/rra/localhost_mem_swap_4.rrd":mem_swap:AVERAGE  AREA:a#FF4105:"Free"   GPRINT:a:LAST:"Current\:%8.2lf %s"   GPRINT:a:AVERAGE:"Average\:%8.2lf %s"   GPRINT:a:MAX:"Maximum\:%8.2lf %s\n"   AREA:b#FFC73B:"Swap":STACK  GPRINT:b:LAST:"Current\:%8.2lf %s"   GPRINT:b:AVERAGE:"Average\:%8.2lf %s"   GPRINT:b:MAX:"Maximum\:%8.2lf %s" 
09/27/2005 06:01:26 PM - WEBLOG: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe graph -  --imgformat=PNG  --start=1127746885  --end=1127833285  --title="Localhost - Load Average"  --rigid  --base=1000  --height=120  --width=500  --alt-autoscale-max  --lower-limit=0  --units-exponent=0  COMMENT:"From 2005/09/26 18\:01\:25 To 2005/09/27 18\:01\:25\c"  COMMENT:"  \n"  --vertical-label="processes in the run queue"  --slope-mode  DEF:a="C\:/apache2triad/htdocs/cacti/rra/localhost_load_1min_5.rrd":load_1min:AVERAGE  DEF:b="C\:/apache2triad/htdocs/cacti/rra/localhost_load_1min_5.rrd":load_5min:AVERAGE  DEF:c="C\:/apache2triad/htdocs/cacti/rra/localhost_load_1min_5.rrd":load_15min:AVERAGE  CDEF:cdefg=TIME,1127832986,GT,a,a,UN,0,a,IF,IF,TIME,1127832986,GT,b,b,UN,0,b,IF,IF,TIME,1127832986,GT,c,c,UN,0,c,IF,IF,+,+  AREA:a#EACC00:"1 Minute Average"   GPRINT:a:LAST:" Current\:%8.2lf\n"   AREA:b#EA8F00:"5 Minute Average":STACK  GPRINT:b:LAST:" Current\:%8.2lf\n"   AREA:c#FF0000:"15 Minute Average":STACK  GPRINT:c:LAST:"Current\:%8.2lf\n"   LINE1:cdefg#000000:"" 
09/27/2005 06:01:27 PM - WEBLOG: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe graph -  --imgformat=PNG  --start=1127746885  --end=1127833285  --title="Localhost - Logged in Users"  --rigid  --base=1000  --height=120  --width=500  --alt-autoscale-max  --lower-limit=0  COMMENT:"From 2005/09/26 18\:01\:25 To 2005/09/27 18\:01\:25\c"  COMMENT:"  \n"  --vertical-label="users"  --slope-mode  DEF:a="C\:/apache2triad/htdocs/cacti/rra/localhost_users_6.rrd":users:AVERAGE  AREA:a#4668E4:"Users"   GPRINT:a:LAST:"Current\:%8.0lf"   GPRINT:a:AVERAGE:"Average\:%8.0lf"   GPRINT:a:MAX:"Maximum\:%8.0lf" 
09/27/2005 06:01:28 PM - WEBLOG: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe graph -  --imgformat=PNG  --start=1127746885  --end=1127833285  --title="Localhost - Processes"  --base=1000  --height=120  --width=500  --alt-autoscale-max  --lower-limit=0  COMMENT:"From 2005/09/26 18\:01\:25 To 2005/09/27 18\:01\:25\c"  COMMENT:"  \n"  --vertical-label="processes"  --slope-mode  DEF:a="C\:/apache2triad/htdocs/cacti/rra/localhost_proc_7.rrd":proc:AVERAGE  AREA:a#F51D30:"Running Processes"   GPRINT:a:LAST:"Current\:%8.0lf"   GPRINT:a:AVERAGE:"Average\:%8.0lf"   GPRINT:a:MAX:"Maximum\:%8.0lf" 
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

research wrote:Here you go :) .. Anyway, Cant I monitor linux,unix hosts from a winxp cacti ?
You did not read what I said.
BSOD2600 wrote:many of those linux scripts you're trying to use only work locally.
Open up each script and look what it does. Then you'll understand if it works on remote machines.

Installing net-snmp on the linux machines is your best bet for data collection.
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Get patches from the official site.

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?
research
Cacti User
Posts: 72
Joined: Tue Sep 20, 2005 9:27 am

Post by research »

net-snmp is installed on the linux machine and its working but cant create the graphs..

Which patches that I need to install ?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

http://www.cacti.net/download_patches.php

Using Getif or snmpwalk against the linux machine, do you get valid results?
Does cacti think the host is up?
research
Cacti User
Posts: 72
Joined: Tue Sep 20, 2005 9:27 am

Post by research »

yes it sees up.
Attachments
up.JPG
up.JPG (29.44 KiB) Viewed 2255 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

What about manually doing snmp queries?
research
Cacti User
Posts: 72
Joined: Tue Sep 20, 2005 9:27 am

Post by research »

okay,

what commands I have to try ?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

!!!!!

As I stated before, use either GetIF (Google it) or net-snmp snmpwalk against the linux machine and see if snmp is working.
Post Reply

Who is online

Users browsing this forum: No registered users and 26 guests