Two datasources, many hosts > one graph

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

Moderators: Developers, Moderators

Post Reply
sheol
Posts: 16
Joined: Sun May 29, 2005 4:05 am

Two datasources, many hosts > one graph

Post by sheol »

Morning all,
I've been asked to poll two student labs for two statistics, machine powered on and is a user logged in. The graphed results need to be summated, ie they don't want individual graphs for each machine, they want one graph for each lab with total powered on and total logged in users on the same graph. The machines are identical in the labs, one lab has 130 devices, the other 80.

Is Cacti the appropriate tool for the job or should I look at using MRTG, Zabbix or something else?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

You can do so. And there are several ways of doing so. Perhaps the easiest one would be to create a script (or two) that gets the data you're interested in. Print out the data and let cacti call the script every 5 min.
Find more help on setting up those scripts at the first link of my signature.
Reinhard
sheol
Posts: 16
Joined: Sun May 29, 2005 4:05 am

Post by sheol »

Thanks for your response Reinhard, I'll get on it right away :)
sheol
Posts: 16
Joined: Sun May 29, 2005 4:05 am

Post by sheol »

So I've started on my little project and have hit the first hurdle. Naturally I've searched the forums with little success so I'm hoping someone can help.

I'll polling just a single WinXP host at the moment and using the built in "Host MIB - Logged in Users" graph. The problem is that when the query is successful it says that the number of users logged in is 11. An snmpwalk query returns the same:

snmpwalk x.x.x.x -v 1 -c private -Ci .1.3.6.1.2.1.25.1.5.0

HOST-RESOURCES-MIB::hrSystemNumUsers.0 = Gauge32: 11

This is a workstation that can't have 11 users logged in to it, have others seen this issue before?
sheol
Posts: 16
Joined: Sun May 29, 2005 4:05 am

Post by sheol »

Bit of a bump sorry, I'm surprised noone has been able to say anything on the subject after so many views. I'm doubly surprised that it seems that one of the standard Cacti queries doesn't seem to give accurate results.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Moved to Windows Forum.
Perhaps the Windows guys will be able to help
Reinhard
sheol
Posts: 16
Joined: Sun May 29, 2005 4:05 am

Post by sheol »

Thanks for the consideration but it doesn't look like any help is forthcoming:

http://forums.cacti.net/viewtopic.php?t ... highlight=

I'm currently wading through every MIB that I can find pertaining to Microsoft, Lanmanager and Novell trying to find something that will just tell me if there's a logged in user on a workstation.

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

Post by BSOD2600 »

Well since the hrSystemNumUsers doesn't really appear to count truly logged on users since its for, "The number of user sessions for which this host is storing state information..."

A quick google search and I couldn't find a way how to count the number of users via WMI -- although, I could find out how to get the current user names. So, if you feel up to it, you could create a wmi script that would count the number of users names returned.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests