Localhost - Logged in Users

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

Moderators: Developers, Moderators

Post Reply
johnk
Posts: 7
Joined: Thu Aug 04, 2005 10:44 am

Localhost - Logged in Users

Post by johnk »

After upgrading to Cacti 0.8.6f yesterday, the graph for "Localhost - Logged in users" has steadily climbed to over 250+ users. The server that cacti is running on is ONLY used for cacti so I'm assuming this value is in error. Has anyone else had an expericnce similar to this?

After rebooting the server, the number of logged on users seems to increment by one every five minutes...

cacti-0.8.6f
mysql-essential-4.1.12a-win32
net-snmp-5.2.1-1.win32
php-5.0.4-win32
Apache 2.0.54
Windows Server 2003
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

I recall seeing another thread with the same issue (the guy was monitoring TS users). Seems the service pack for Win2K3 changed the OID type from guage to counter. Turn on debug and verify what number is being returned for a few cycles. Also check what the DS is set in your rrd file (rrdtool info filename.rrd)
johnk
Posts: 7
Joined: Thu Aug 04, 2005 10:44 am

Post by johnk »

Output of rrdtool:

filename = "localhost_users_16.rrd"
rrd_version = "0003"
step = 300
last_update = 1124912220
ds[users].type = "GAUGE"
ds[users].minimal_heartbeat = 600
ds[users].min = 0.0000000000e+00
ds[users].max = 5.0000000000e+03
ds[users].last_ds = "UNKN"
ds[users].value = 4.6800000000e+03
ds[users].unknown_sec = 0

debug log:

08/24/2005 02:14:36 PM - WEBLOG: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe graph - --imgformat=PNG --start=1124901119 --end=1124904556 --title="Localhost - Logged in Users" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 COMMENT:"From 2005/08/24 11\:31\:59 To 2005/08/24 12\:29\:16\c" COMMENT:" \n" --vertical-label="users" --slope-mode DEF:a="C\:\Apache2\htdocs\cacti/rra/localhost_users_16.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"


The server has been running SP1 since it was built about 45 days ago...
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Here is the thread I was talking about with the OID type changing. As I suggested for that user, you can change the DS type to counter to fix the problem.

Thats the debug for graphing. I'm interested in the data the snmp query returned a few times.
johnk
Posts: 7
Joined: Thu Aug 04, 2005 10:44 am

Post by johnk »

Sorry bout that...i'm a newb to cacti and snmp in general.

Are you referring to changing the 'data source type' to "counter" under the data templates? When I change that to 'counter', it does not seem to have any effect.

if i do an snmpget, I see the value incrementing still....

iso.1.3.6.1.2.1.25.1.5.0 = Guage32: 59
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Sorry I wasn't clear.

Yes, you'll need to change the data source type in cacti to counter AND manually update the rrd file data source type (since cacti does not do this yet).
johnk
Posts: 7
Joined: Thu Aug 04, 2005 10:44 am

Post by johnk »

Thanks for all your help...

If you aren't sick of me yet, I have enclosed a screenshot of the data template config, and the resulting graph. I think I'm missing something obvious...
Attachments
cacti.PNG
cacti.PNG (46.83 KiB) Viewed 3851 times
graph_image.png
graph_image.png (18.24 KiB) Viewed 3855 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

1) Did you update the rrdfile DS type to counter also?
2) You might have to re-create the rrdfile because the past data was based on a guage type.
3) Turn on debug for a few cycles and pay attention to what the Localhost - Logged in users snmp query returns.
johnk
Posts: 7
Joined: Thu Aug 04, 2005 10:44 am

Post by johnk »

BSOD2600 wrote:1) Did you update the rrdfile DS type to counter also?
How do you manually update the DS type?...
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

rrdtool tune is what you're after.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests