[solved] Terminal services active sessions SNMP
Moderators: Developers, Moderators
[solved] Terminal services active sessions SNMP
Is there a way of plotting active terminal services sessions using SNMP? i tried the host MIB one but its brings back incorrent results.
Operating System: Windows 2003 R2
Webserver: IIS
Cacti: Version 0.8.7e
Operating System: Windows 2003 R2
Webserver: IIS
Cacti: Version 0.8.7e
Last edited by noshybabs on Fri Sep 04, 2009 2:01 am, edited 1 time in total.
How was it incorrect? What OID did you use?
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Its returning a figure of over 200, when in actuallity it should read something like 9.
Im not intirley sure what a OID is but i assume its a key relating to data returned vis SNMP? If so im not sure, im just using the graph template that comes bundled with the latest version of the windows installer.
I am very much a noob so please be kind.
Im not intirley sure what a OID is but i assume its a key relating to data returned vis SNMP? If so im not sure, im just using the graph template that comes bundled with the latest version of the windows installer.
I am very much a noob so please be kind.
- Attachments
-
- tsusers.JPG (25.58 KiB) Viewed 7370 times
Cacti Version 0.8.7e
Cacti OS win32
SNMP Version NET-SNMP version: 5.4.2.1
RRDTool Version RRDTool 1.2.x
PHP Version 5.2.9
Cacti OS win32
SNMP Version NET-SNMP version: 5.4.2.1
RRDTool Version RRDTool 1.2.x
PHP Version 5.2.9
-
- Cacti Guru User
- Posts: 1884
- Joined: Mon Oct 16, 2006 5:57 am
- Location: United Kingdom
- Contact:
The template you've got shows "Logged in users" - it's not really showing physically logged in session. If a user connects to your file server via a share on a mapped drive, then this is classed as a logged in user.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
-
- Cacti Guru User
- Posts: 1884
- Joined: Mon Oct 16, 2006 5:57 am
- Location: United Kingdom
- Contact:
I seem to recall this one working (don't use Windows anymore for Cacti)
http://forums.cacti.net/viewtopic.php?t ... nal+server
http://forums.cacti.net/viewtopic.php?t ... nal+server
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
cant seem to get the data collector script to work, i get this in the log file
09/04/2009 02:51:04 PM - SPINE: Poller[0] Host[11] ERROR: Empty result [Leeds-ts01]: 'perl C:/Inetpub/wwwroot/cacti\scripts\w32_query_TerminalService.pl 192.9.200.52 get ActiveSessions,TotalSessions'
09/04/2009 02:51:04 PM - SPINE: Poller[0] Host[11] ERROR: Empty result [Leeds-ts01]: 'perl C:/Inetpub/wwwroot/cacti\scripts\w32_query_TerminalService.pl 192.9.200.52 get ActiveSessions,TotalSessions'
Cacti Version 0.8.7e
Cacti OS win32
SNMP Version NET-SNMP version: 5.4.2.1
RRDTool Version RRDTool 1.2.x
PHP Version 5.2.9
Cacti OS win32
SNMP Version NET-SNMP version: 5.4.2.1
RRDTool Version RRDTool 1.2.x
PHP Version 5.2.9
1) specify the full path to perl.
2) manually run that scripting command and see if it works. You'll likely have to open up WMI security: http://bsod2600.home.comcast.net/~bsod2 ... s.html#FAQ
2) manually run that scripting command and see if it works. You'll likely have to open up WMI security: http://bsod2600.home.comcast.net/~bsod2 ... s.html#FAQ
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Thanks for the tips,
I've given pearl the full path... Im not entirly sure how to run the sciprt manually so lets how the path thing works!
Edit:
Looks like it must be the pearl, ive given eveyone remote access to WMI and im still getting this error
09/07/2009 08:32:03 AM - SPINE: Poller[0] Host[11] ERROR: Empty result [Leeds-ts01]: 'perl C:\Inetpub\wwwroot\cacti\scripts\w32_query_TerminalService.pl 192.9.200.52 get ActiveSessions,TotalSessions'
Has anyone had any success getting this working?
I've given pearl the full path... Im not entirly sure how to run the sciprt manually so lets how the path thing works!
Edit:
Looks like it must be the pearl, ive given eveyone remote access to WMI and im still getting this error
09/07/2009 08:32:03 AM - SPINE: Poller[0] Host[11] ERROR: Empty result [Leeds-ts01]: 'perl C:\Inetpub\wwwroot\cacti\scripts\w32_query_TerminalService.pl 192.9.200.52 get ActiveSessions,TotalSessions'
Has anyone had any success getting this working?
Cacti Version 0.8.7e
Cacti OS win32
SNMP Version NET-SNMP version: 5.4.2.1
RRDTool Version RRDTool 1.2.x
PHP Version 5.2.9
Cacti OS win32
SNMP Version NET-SNMP version: 5.4.2.1
RRDTool Version RRDTool 1.2.x
PHP Version 5.2.9
By running the command cacti is trying to use... so you'd run the following at the command line yourself:noshybabs wrote:Im not entirly sure how to run the sciprt manually so lets how the path thing works!
09/07/2009 08:32:03 AM - SPINE: Poller[0] Host[11] ERROR: Empty result [Leeds-ts01]: 'perl C:\Inetpub\wwwroot\cacti\scripts\w32_query_TerminalService.pl 192.9.200.52 get ActiveSessions,TotalSessions'
Code: Select all
perl C:\Inetpub\wwwroot\cacti\scripts\w32_query_TerminalService.pl 192.9.200.52 get ActiveSessions,TotalSessions
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Who is online
Users browsing this forum: No registered users and 0 guests