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    


NT / W2K Sessions

 
Post new topic   Reply to topic    Cacti Forum Index -> Help: Linux/Unix Specific
Author Message
DavidM



Joined: 08 Feb 2003
Posts: 34

PostPosted: Tue Feb 11, 2003 11:32 pm    Post subject: NT / W2K Sessions Reply with quote

Anyone know how to monitor NT/W2K sessions from Linux? I.E., how many connections are established on server. NBTSTAT -s (if run on W2K).
Back to top
Burke



Joined: 05 Nov 2002
Posts: 42
Location: Virginia, USA

PostPosted: Mon Mar 03, 2003 9:07 am    Post subject: Established Sessions Reply with quote

Here's what you need:

enterprises.lanmanager.lanmgr-2.server.svSessionNumber.0
or
.1.3.6.1.4.1.77.1.2.19.0

This gives you the number of sessions as reported by lanmanager.
Back to top
DavidM



Joined: 08 Feb 2003
Posts: 34

PostPosted: Mon Mar 03, 2003 9:18 am    Post subject: Reply with quote

Thanks! As of Friday, as was walking to .1.3.6.1.4.1.77.1.2.20.1.1 and counting the number of entries within the string array as using the number returned.

Your OID would save me a bit of time.

Would you happen to know how to report "time idle" from a connection to a Cacti graph?
Back to top
Burke



Joined: 05 Nov 2002
Posts: 42
Location: Virginia, USA

PostPosted: Mon Mar 03, 2003 9:54 am    Post subject: Reply with quote

This can get a little complicated because the idle time of a connection isn't a static OID. For example:
enterprises.lanmanager.lanmgr-2.server.svSessionTable.svSessionEntry.svSesIdleTime."MACHINENAME"."USERNAME" = Counter32: 96

You would need to do a SNMPWALK to enterprises.lanmanager.lanmgr-2.server.svSessionTable.svSessionEntry.svSesIdleTime OR (.1.3.6.1.4.1.77.1.2.20.1.6)

This would return each of your current connections Idle time.

HINT: When doing your SNMPWALK for discovery purposes/testing, use "SNMPWALK -m all servername communityname OID | more" .
This will use all your MIB files in /usr/share/snmp/mibs. If you see more OID numbers than text, you probably need to obtain some more MIB text files so that SNMP can translate the OID into something halfway understandable as shown above. For the stuff you're working with in this question, the file you need is "LMMIB2.MIB".

I currently have over 250 Data Sources that are being monitored here on my client's network: Several Netware servers, several Windows NT and 2000, Cisco Routers, and a pair of Linux Mandrake servers. Doing walks, writing custom scripts, and using SNMPBOY's perfmib on the Windows machines has really provided a nice set of graphs for our client.


DavidM wrote:
Thanks! As of Friday, as was walking to .1.3.6.1.4.1.77.1.2.20.1.1 and counting the number of entries within the string array as using the number returned.

Your OID would save me a bit of time.

Would you happen to know how to report "time idle" from a connection to a Cacti graph?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Help: Linux/Unix Specific All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group