Windows Terminal Server
Moderators: Developers, Moderators
Windows Terminal Server
Hello,
I'm trying to make a graph on how many people are connect on my TS server. The thing is, I haven't found a working solution yet.
Regarding the OID, I've found this thing :
1.3.6.1.2.1.6.13.1.1.a.b.c.d.3389
which a.b.c.d is the IP Address of the TS Server and 3389 the TS port. It will return you an established answer for each person connected with this command :
snmpwalk -Of -v2c $hostaddress -C public
How could I convert this to count the number of answers established and graph it??? Do you have any idea?
Do you have maybe other ideas?
Thanks in advance.
Kindly Regards.
David aka poypoy
I'm trying to make a graph on how many people are connect on my TS server. The thing is, I haven't found a working solution yet.
Regarding the OID, I've found this thing :
1.3.6.1.2.1.6.13.1.1.a.b.c.d.3389
which a.b.c.d is the IP Address of the TS Server and 3389 the TS port. It will return you an established answer for each person connected with this command :
snmpwalk -Of -v2c $hostaddress -C public
How could I convert this to count the number of answers established and graph it??? Do you have any idea?
Do you have maybe other ideas?
Thanks in advance.
Kindly Regards.
David aka poypoy
you're going to have to use some regex magic. I believe the interfaces.xml template that comes with Cacti does exactly this. Take a look. As for creating your own template, look in the document site on how-to.
| 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 |
As previously stated, look at the cacti\resource\snmp_queries\interface.xml for an example.
From an snmpwalk, you can see how it works:
You'll need to do something similar for your xml template. There are also some other posts in the script forum, which deal with this exact issue. Search is your friend .
Code: Select all
<ifIP>
<name>IP Address</name>
<method>walk</method>
<source>OID/REGEXP:.*\.([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})$</source>
<direction>input</direction>
<oid>.1.3.6.1.2.1.4.20.1.2</oid>
</ifIP>
Code: Select all
C:\>snmpwalk -v 1 -c public -On 127.0.0.1 .1.3.6.1.2.1.4.20.1.2
.1.3.6.1.2.1.4.20.1.2.127.0.0.1 = INTEGER: 1
.1.3.6.1.2.1.4.20.1.2.192.168.0.4 = INTEGER: 65539
| 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 |
WMI queries have a huge performance impact compared to SNMP.
| 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 |
That too.
Measure the time it takes to execute a WMI script against a remote Windows computer vs a SNMP query. Big difference. Then multiply that how many devices you plan on running that on with Cacti. For large installations, it's unacceptable and goes longer than 300 seconds.
Measure the time it takes to execute a WMI script against a remote Windows computer vs a SNMP query. Big difference. Then multiply that how many devices you plan on running that on with Cacti. For large installations, it's unacceptable and goes longer than 300 seconds.
| 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 |
I know there is a pretty good delya in opening the wmi connection, but once it established all of the wmi quries for that host shouldn't take that long.BSOD2600 wrote:That too.
Measure the time it takes to execute a WMI script against a remote Windows computer vs a SNMP query. Big difference. Then multiply that how many devices you plan on running that on with Cacti. For large installations, it's unacceptable and goes longer than 300 seconds.
wmi queries are just so easy for me to create..... do you have any guides on how top find the data using snmp ?
Doing an snmpwalk of a Windows device will give you an idea what is currently available. Otherwise, Microsoft has some docs on what data snmp provides. Additionally, sites like snmp informant, provide more data via snmp.
| 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 5 guests