Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

snmp monitoring of logical free disk space

Status
Not open for further replies.

nichols

Technical User
May 24, 2001
92
GB
(I apologise for any incorrect terminology in this post. It is due to my inexperience with the snmp protocol)

I am currently attempting to use MRTG to monitor logical disk space. However I am struggling to find an snmp MIB for logical disk or logical disk free disk space.

I have found an snmp browser on the internet called getif and have used a perfmon batch file to insert so called new entries into the snmp tree on my win 2k server. However when I have run this process and rebooted serveral times there are no new entries for Logical disk which are in the perfmon.ini.

The article I found on the internet advised me to follow the operation below.
1. Make sure SNMP is installed and running
2. Copy these files out to a floppy (a drive)
3. Run perfm.batuse the following batch file:

The batch file is below:

@echo off
rem = ********************************************************************
echo "This batch file is used to Install the mib.bin file for ."
echo "This Batch currently only uses the standard mibs
echo "plus all the Performance mibs."
echo "Including IIS FTP TELEPHONY and HTTP Mibs."
echo "It Does Not Include Own Mibs."
sleep 5
echo "stoping snmp service"
net stop snmp

rem = ========================
rem = Saving the old MIB file.
rem = Also moving in the new files needed that were created above
rem = ========================
echo "saving old mib to mib.old"
sleep 2
erase %systemroot%\system32\mib.old
move %systemroot%\system32\mib.bin %systemroot%\system32\mib.old
echo "copying perfmib files from NTResKit to system32"
sleep 1
copy a:\perfmib.dll %systemroot%\system32\perfmib.dll
copy a:\perfmib.ini %systemroot%\system32\perfmib.ini
copy a:\mib.bin %systemroot%\system32\mib.bin

rem = ========================
echo "Need to add some new keys to the registry."
echo "If the "perfmib.reg" file is missing you can create a new one."
rem = ========================

echo "registering"
regini perfmib.reg
echo " REGINI: Failed to load from file 'perfmib.reg' (2)"
echo "This a normal error message if the performance"
echo "entries have already been made So Ignore It"
sleep 2

rem = ========================
rem = need to restart snmp service
rem = ========================
echo "restarting snmp"
net start snmp
sleep 2
echo " All Done, If SNMP Doesn't Bomb with an exception error, your all set"
sleep 1


This appears to stop the snmp service, then copy the perfmon.dll file and perfmon.ini file (for perfmon.ini file which appears to have an entry for logical free disk space see below) to the winnt\system32 directory and make registry changes to point windows to these files (for reg changes see below).

perfmon.ini

1.1 browser\Announcements Server/sec
1.2 browser\Announcements Domain/sec
1.3 browser\Announcements Total/sec
1.4 browser\Election Packets/sec
1.5 browser\Mailslot Writes/sec
1.6 browser\Server List Requests/sec
1.7 browser\Enumerations Server/sec
1.8 browser\Enumerations Domain/sec
1.9 browser\Enumerations Other/sec
1.10 browser\Enumerations Total/sec
1.11 browser\Missed Server Announcements
1.12 browser\Missed Mailslot Datagrams
1.13 browser\Missed Server List Requests
1.14 browser\Server Announce Allocations Failed/sec
1.15 browser\Mailslot Allocations Failed
1.16 browser\Mailslot Receives Failed
1.17 browser\Mailslot Writes Failed
1.18 browser\Mailslot Opens Failed/sec
1.19 browser\Duplicate Master Announcements
1.20 browser\Illegal Datagrams/sec
2.1 cache\Data Maps/sec
2.2 cache\Sync Data Maps/sec
2.3 cache\Async Data Maps/sec
2.4 cache\Data Map Hits %
2.6 cache\Data Map Pins/sec
2.8 cache\Pin Reads/sec
2.9 cache\Sync Pin Reads/sec
2.10 cache\Async Pin Reads/sec
2.11 cache\Pin Read Hits %
2.13 cache\Copy Reads/sec
2.14 cache\Sync Copy Reads/sec
2.15 cache\Async Copy Reads/sec
2.16 cache\Copy Read Hits %
2.18 cache\MDL Reads/sec
2.19 cache\Sync MDL Reads/sec
2.20 cache\Async MDL Reads/sec
2.21 cache\MDL Read Hits %
2.23 cache\Read Aheads/sec
2.24 cache\Fast Reads/sec
2.25 cache\Sync Fast Reads/sec
2.26 cache\Async Fast Reads/sec
2.27 cache\Fast Read Resource Misses/sec
2.28 cache\Fast Read Not Possibles/sec
2.29 cache\Lazy Write Flushes/sec
2.30 cache\Lazy Write Pages/sec
2.31 cache\Data Flushes/sec
2.32 cache\Data Flush Pages/sec
3.1 fTP Server\Bytes Sent/sec
3.2 fTP Server\Bytes Received/sec
3.3 fTP Server\Bytes Total/sec
3.4 fTP Server\Files Sent
3.5 fTP Server\Files Received
3.6 fTP Server\Files Total
3.7 fTP Server\Current Anonymous Users
3.8 fTP Server\Current NonAnonymous Users
3.9 fTP Server\Total Anonymous Users
3.10 fTP Server\Total NonAnonymous Users
3.11 fTP Server\Maximum Anonymous Users
3.12 fTP Server\Maximum NonAnonymous Users
3.13 fTP Server\Current Connections
3.14 fTP Server\Maximum Connections
3.15 fTP Server\Connection Attempts
3.16 fTP Server\Logon Attempts
4.1 iCMP\Messages/sec
4.2 iCMP\Messages Received/sec
4.3 iCMP\Messages Received Errors
4.4 iCMP\Received Dest. Unreachable
4.5 iCMP\Received Time Exceeded
4.6 iCMP\Received Parameter Problem
4.7 iCMP\Received Source Quench
4.8 iCMP\Received Redirect/sec
4.9 iCMP\Received Echo/sec
4.10 iCMP\Received Echo Reply/sec
4.11 iCMP\Received Timestamp/sec
4.12 iCMP\Received Timestamp Reply/sec
4.13 iCMP\Received Address Mask
4.14 iCMP\Received Address Mask Reply
4.15 iCMP\Messages Sent/sec
4.16 iCMP\Messages Outbound Errors
4.17 iCMP\Sent Destination Unreachable
4.18 iCMP\Sent Time Exceeded
4.19 iCMP\Sent Parameter Problem
4.20 iCMP\Sent Source Quench
4.21 iCMP\Sent Redirect/sec
4.22 iCMP\Sent Echo/sec
4.23 iCMP\Sent Echo Reply/sec
4.24 iCMP\Sent Timestamp/sec
4.25 iCMP\Sent Timestamp Reply/sec
4.26 iCMP\Sent Address Mask
4.27 iCMP\Sent Address Mask Reply
5.1 iP\Datagrams/sec
5.2 iP\Datagrams Received/sec
5.3 iP\Datagrams Received Header Errors
5.4 iP\Datagrams Received Address Errors
5.5 iP\Datagrams Forwarded/sec
5.6 iP\Datagrams Received Unknown Protocol
5.7 iP\Datagrams Received Discarded
5.8 iP\Datagrams Received Delivered/sec
5.9 iP\Datagrams Sent/sec
5.10 iP\Datagrams Outbound Discarded
5.11 iP\Datagrams Outbound No Route
5.12 iP\Fragments Received/sec
5.13 iP\Fragments Re-assembled/sec
5.14 iP\Fragment Re-assembly Failures
5.15 iP\Fragmented Datagrams/sec
5.16 iP\Fragmentation Failures
5.17 iP\Fragments Created/sec
6.1.1 logicalDisk\*
6.1.2 logicalDisk\% Free Space
6.1.3 logicalDisk\Free Megabytes
6.1.4 logicalDisk\Current Disk Queue Length
6.1.5 logicalDisk\% Disk Time
6.1.6 logicalDisk\Avg. Disk Queue Length
6.1.7 logicalDisk\% Disk Read Time
6.1.8 logicalDisk\Avg. Disk Read Queue Length
6.1.9 logicalDisk\% Disk Write Time
6.1.10 logicalDisk\Avg. Disk Write Queue Length
6.1.11 logicalDisk\Avg. Disk sec/Transfer
6.1.12 logicalDisk\Avg. Disk sec/Read
6.1.13 logicalDisk\Avg. Disk sec/Write
6.1.14 logicalDisk\Disk Transfers/sec
6.1.15 logicalDisk\Disk Reads/sec
6.1.16 logicalDisk\Disk Writes/sec
6.1.17 logicalDisk\Disk Bytes/sec
6.1.18 logicalDisk\Disk Read Bytes/sec
6.1.19 logicalDisk\Disk Write Bytes/sec
7.1 memory\Available Bytes
7.2 memory\Committed Bytes
7.3 memory\Commit Limit
7.4 memory\Page Faults/sec
7.5 memory\Write Copies/sec
7.6 memory\Transition Faults/sec
7.7 memory\Cache Faults/sec
7.8 memory\Demand Zero Faults/sec
7.9 memory\Pages/sec
7.10 memory\Pages Input/sec
7.11 memory\Page Reads/sec
7.12 memory\Pages Output/sec
7.13 memory\Page Writes/sec
7.14 memory\Pool Paged Bytes
7.15 memory\Pool Nonpaged Bytes
7.16 memory\Pool Paged Allocs
7.17 memory\Pool Nonpaged Allocs
7.18 memory\Free System Page Table Entries
7.19 memory\Cache Bytes
7.20 memory\Cache Bytes Peak
7.21 memory\Pool Paged Resident Bytes
7.22 memory\System Code Total Bytes
7.23 memory\System Code Resident Bytes
7.24 memory\System Driver Total Bytes
7.25 memory\System Driver Resident Bytes
7.26 memory\System Cache Resident Bytes
7.27 memory\% Committed Bytes In Use
8.1.1 nBT Connection\*
8.1.2 nBT Connection\Bytes Received/sec
8.1.3 nBT Connection\Bytes Sent/sec
8.1.4 nBT Connection\Bytes Total/sec
9.1.1 netBEUI\*
9.1.2 netBEUI\Datagrams/sec
9.1.3 netBEUI\Datagram Bytes/sec
9.1.4 netBEUI\Packets/sec
9.1.5 netBEUI\Frames/sec
9.1.6 netBEUI\Frame Bytes/sec
9.1.7 netBEUI\Bytes Total/sec
9.1.8 netBEUI\Connections Open
9.1.9 netBEUI\Connections No Retries
9.1.10 netBEUI\Connections With Retries
9.1.11 netBEUI\Disconnects Local
9.1.12 netBEUI\Disconnects Remote
9.1.13 netBEUI\Failures Link
9.1.14 netBEUI\Failures Adapter
9.1.15 netBEUI\Connection Session Timeouts
9.1.16 netBEUI\Connections Canceled
9.1.17 netBEUI\Failures Resource Remote
9.1.18 netBEUI\Failures Resource Local
9.1.19 netBEUI\Failures Not Found
9.1.20 netBEUI\Failures No Listen
9.1.21 netBEUI\Datagrams Sent/sec
9.1.22 netBEUI\Datagram Bytes Sent/sec
9.1.23 netBEUI\Datagrams Received/sec
9.1.24 netBEUI\Datagram Bytes Received/sec
9.1.25 netBEUI\Packets Sent/sec
9.1.26 netBEUI\Packets Received/sec
9.1.27 netBEUI\Frames Sent/sec
9.1.28 netBEUI\Frame Bytes Sent/sec
9.1.29 netBEUI\Frames Received/sec
9.1.30 netBEUI\Frame Bytes Received/sec
9.1.31 netBEUI\Frames Re-Sent/sec
9.1.32 netBEUI\Frame Bytes Re-Sent/sec
9.1.33 netBEUI\Frames Rejected/sec
9.1.34 netBEUI\Frame Bytes Rejected/sec
9.1.35 netBEUI\Expirations Response
9.1.36 netBEUI\Expirations Ack
9.1.37 netBEUI\Window Send Maximum
9.1.38 netBEUI\Window Send Average
9.1.39 netBEUI\Piggyback Ack Queued/sec
9.1.40 netBEUI\Piggyback Ack Timeouts
10.1.1 netBEUI Resource\*
10.1.2 netBEUI Resource\Used Maximum
10.1.3 netBEUI Resource\Used Average
10.1.4 netBEUI Resource\Times Exhausted
11.1.1 network Interface\*
11.1.2 network Interface\Bytes Total/sec
11.1.3 network Interface\Packets/sec
11.1.4 network Interface\Packets Received/sec
11.1.5 network Interface\Packets Sent/sec
11.1.6 network Interface\Current Bandwidth
11.1.7 network Interface\Bytes Received/sec
11.1.8 network Interface\Packets Received Unicast/sec
11.1.9 network Interface\Packets Received Non-Unicast/sec
11.1.10 network Interface\Packets Received Discarded
11.1.11 network Interface\Packets Received Errors
11.1.12 network Interface\Packets Received Unknown
11.1.13 network Interface\Bytes Sent/sec
11.1.14 network Interface\Packets Sent Unicast/sec
11.1.15 network Interface\Packets Sent Non-Unicast/sec
11.1.16 network Interface\Packets Outbound Discarded
11.1.17 network Interface\Packets Outbound Errors
11.1.18 network Interface\Output Queue Length
12.1.1 network Segment\*
12.1.2 network Segment\Total frames received/second
12.1.3 network Segment\Total bytes received/second
12.1.4 network Segment\Broadcast frames received/second
12.1.5 network Segment\Multicast frames received/second
12.1.6 network Segment\% Network utilization
13.1 objects\Processes
13.2 objects\Threads
13.3 objects\Events
13.4 objects\Semaphores
13.5 objects\Mutexes
13.6 objects\Sections
14.1.1 paging File\*
14.1.2 paging File\% Usage
14.1.3 paging File\% Usage Peak
15.1.1 physicalDisk\*
15.1.2 physicalDisk\Current Disk Queue Length
15.1.3 physicalDisk\% Disk Time
15.1.4 physicalDisk\Avg. Disk Queue Length
15.1.5 physicalDisk\% Disk Read Time
15.1.6 physicalDisk\Avg. Disk Read Queue Length
15.1.7 physicalDisk\% Disk Write Time
15.1.8 physicalDisk\Avg. Disk Write Queue Length
15.1.9 physicalDisk\Avg. Disk sec/Transfer
15.1.10 physicalDisk\Avg. Disk sec/Read
15.1.11 physicalDisk\Avg. Disk sec/Write
15.1.12 physicalDisk\Disk Transfers/sec
15.1.13 physicalDisk\Disk Reads/sec
15.1.14 physicalDisk\Disk Writes/sec
15.1.15 physicalDisk\Disk Bytes/sec
15.1.16 physicalDisk\Disk Read Bytes/sec
15.1.17 physicalDisk\Disk Write Bytes/sec
16.1.1 process\*
16.1.2 process\% Processor Time
16.1.3 process\% User Time
16.1.4 process\% Privileged Time
16.1.5 process\Virtual Bytes Peak
16.1.6 process\Virtual Bytes
16.1.7 process\Page Faults/sec
16.1.8 process\Working Set Peak
16.1.9 process\Working Set
16.1.10 process\Page File Bytes Peak
16.1.11 process\Page File Bytes
16.1.12 process\Private Bytes
16.1.13 process\Thread Count
16.1.14 process\Priority Base
16.1.15 process\Elapsed Time
16.1.16 process\ID Process
16.1.17 process\Pool Paged Bytes
16.1.18 process\Pool Nonpaged Bytes
16.1.19 process\Handle Count
17.1.1 processor\*
17.1.2 processor\% Processor Time
17.1.3 processor\% User Time
17.1.4 processor\% Privileged Time
17.1.5 processor\Interrupts/sec
17.1.6 processor\% DPC Time
17.1.7 processor\% Interrupt Time
17.1.8 processor\DPCs Queued/sec
17.1.9 processor\DPC Rate
17.1.10 processor\DPC Bypasses/sec
17.1.11 processor\APC Bypasses/sec
18.1.1 rAS Port\*
18.1.2 rAS Port\Bytes Transmitted
18.1.3 rAS Port\Bytes Received
18.1.4 rAS Port\Frames Transmitted
18.1.5 rAS Port\Frames Received.
18.1.6 rAS Port\Percent Compression Out
18.1.7 rAS Port\Percent Compression In
18.1.8 rAS Port\CRC Errors
18.1.9 rAS Port\Timeout Errors
18.1.10 rAS Port\Serial Overrun Errors
18.1.11 rAS Port\Alignment Errors
18.1.12 rAS Port\Buffer Overrun Errors
18.1.13 rAS Port\Total Errors
18.1.14 rAS Port\Bytes Transmitted/Sec
18.1.15 rAS Port\Bytes Received/Sec
18.1.16 rAS Port\Frames Transmitted/Sec
18.1.17 rAS Port\Frames Received/Sec
18.1.18 rAS Port\Total Errors/Sec
19.1 rAS Total\Bytes Transmitted
19.2 rAS Total\Bytes Received
19.3 rAS Total\Frames Transmitted
19.4 rAS Total\Frames Received.
19.5 rAS Total\Percent Compression Out
19.6 rAS Total\Percent Compression In
19.7 rAS Total\CRC Errors
19.8 rAS Total\Timeout Errors
19.9 rAS Total\Serial Overrun Errors
19.10 rAS Total\Alignment Errors
19.11 rAS Total\Buffer Overrun Errors
19.12 rAS Total\Total Errors
19.13 rAS Total\Bytes Transmitted/Sec
19.14 rAS Total\Bytes Received/Sec
19.15 rAS Total\Frames Transmitted/Sec
19.16 rAS Total\Frames Received/Sec
19.17 rAS Total\Total Errors/Sec
19.18 rAS Total\Total Connections
20.1 redirector\Bytes Total/sec
20.2 redirector\File Data Operations/sec
20.3 redirector\Packets/sec
20.4 redirector\Bytes Received/sec
20.5 redirector\Packets Received/sec
20.6 redirector\Read Bytes Paging/sec
20.7 redirector\Read Bytes Non-Paging/sec
20.8 redirector\Read Bytes Cache/sec
20.9 redirector\Read Bytes Network/sec
20.10 redirector\Bytes Transmitted/sec
20.11 redirector\Packets Transmitted/sec
20.12 redirector\Write Bytes Paging/sec
20.13 redirector\Write Bytes Non-Paging/sec
20.14 redirector\Write Bytes Cache/sec
20.15 redirector\Write Bytes Network/sec
20.16 redirector\File Read Operations/sec
20.17 redirector\Read Operations Random/sec
20.18 redirector\Read Packets/sec
20.19 redirector\Reads Large/sec
20.20 redirector\Read Packets Small/sec
20.21 redirector\File Write Operations/sec
20.22 redirector\Write Operations Random/sec
20.23 redirector\Write Packets/sec
20.24 redirector\Writes Large/sec
20.25 redirector\Write Packets Small/sec
20.26 redirector\Reads Denied/sec
20.27 redirector\Writes Denied/sec
20.28 redirector\Network Errors/sec
20.29 redirector\Server Sessions
20.30 redirector\Server Reconnects
20.31 redirector\Connects Core
20.32 redirector\Connects Lan Manager 2.0
20.33 redirector\Connects Lan Manager 2.1
20.34 redirector\Connects Windows NT
20.35 redirector\Server Disconnects
20.36 redirector\Server Sessions Hung
20.37 redirector\Current Commands
21.1 server\Bytes Total/sec
21.2 server\Bytes Received/sec
21.3 server\Bytes Transmitted/sec
21.4 server\Sessions Timed Out
21.5 server\Sessions Errored Out
21.6 server\Sessions Logged Off
21.7 server\Sessions Forced Off
21.8 server\Errors Logon
21.9 server\Errors Access Permissions
21.10 server\Errors Granted Access
21.11 server\Errors System
21.12 server\Blocking Requests Rejected
21.13 server\Work Item Shortages
21.14 server\Files Opened Total
21.15 server\Files Open
21.16 server\Server Sessions
21.17 server\File Directory Searches
21.18 server\Pool Nonpaged Bytes
21.19 server\Pool Nonpaged Failures
21.20 server\Pool Nonpaged Peak
21.21 server\Pool Paged Bytes
21.22 server\Pool Paged Failures
21.23 server\Pool Paged Peak
21.24 server\Context Blocks Queued/sec
21.25 server\Logon/sec
21.26 server\Logon Total
22.1.1 server Work Queues\*
22.1.2 server Work Queues\Queue Length
22.1.3 server Work Queues\Active Threads
22.1.4 server Work Queues\Available Threads
22.1.5 server Work Queues\Available Work Items
22.1.6 server Work Queues\Borrowed Work Items
22.1.7 server Work Queues\Work Item Shortages
22.1.8 server Work Queues\Current Clients
22.1.9 server Work Queues\Bytes Received/sec
22.1.10 server Work Queues\Bytes Sent/sec
22.1.11 server Work Queues\Bytes Transferred/sec
22.1.12 server Work Queues\Read Operations/sec
22.1.13 server Work Queues\Read Bytes/sec
22.1.14 server Work Queues\Write Operations/sec
22.1.15 server Work Queues\Write Bytes/sec
22.1.16 server Work Queues\Total Bytes/sec
22.1.17 server Work Queues\Total Operations/sec
22.1.18 server Work Queues\Context Blocks Queued/sec
23.1 system\File Read Operations/sec
23.2 system\File Write Operations/sec
23.3 system\File Control Operations/sec
23.4 system\File Read Bytes/sec
23.5 system\File Write Bytes/sec
23.6 system\File Control Bytes/sec
23.7 system\Context Switches/sec
23.8 system\System Calls/sec
23.9 system\% Total Processor Time
23.10 system\% Total User Time
23.11 system\% Total Privileged Time
23.12 system\Total Interrupts/sec
23.13 system\File Data Operations/sec
23.14 system\System Up Time
23.15 system\Processor Queue Length
23.16 system\Alignment Fixups/sec
23.17 system\Exception Dispatches/sec
23.18 system\Floating Emulations/sec
23.19 system\% Total DPC Time
23.20 system\% Total Interrupt Time
23.21 system\Total DPCs Queued/sec
23.22 system\Total DPC Rate
23.23 system\Total DPC Bypasses/sec
23.24 system\Total APC Bypasses/sec
23.25 system\% Registry Quota In Use
24.1 tCP\Segments/sec
24.2 tCP\Connections Established
24.3 tCP\Connections Active
24.4 tCP\Connections Passive
24.5 tCP\Connection Failures
24.6 tCP\Connections Reset
24.7 tCP\Segments Received/sec
24.8 tCP\Segments Sent/sec
24.9 tCP\Segments Retransmitted/sec
25.1 telephony\Lines
25.2 telephony\Telephone Devices
25.3 telephony\Active Lines
25.4 telephony\Active Telephones
25.5 telephony\Outgoing Calls/sec
25.6 telephony\Incoming Calls/sec
25.7 telephony\Client Apps
25.8 telephony\Current Outgoing Calls
25.9 telephony\Current Incoming Calls
26.1.1 thread\*
26.1.2 thread\% Processor Time
26.1.3 thread\% User Time
26.1.4 thread\% Privileged Time
26.1.5 thread\Context Switches/sec
26.1.6 thread\Elapsed Time
26.1.7 thread\Priority Current
26.1.8 thread\Priority Base
26.1.9 thread\Start Address
26.1.10 thread\Thread State
26.1.11 thread\Thread Wait Reason
26.1.12 thread\ID Process
26.1.13 thread\ID Thread
27.1 uDP\Datagrams/sec
27.2 uDP\Datagrams Received/sec
27.3 uDP\Datagrams No Port/sec
27.4 uDP\Datagrams Received Errors
27.5 uDP\Datagrams Sent/sec


reg changes file Perfmon.reg

\Registry\Machine
Software
Microsoft
PerformanceAgent
CurrentVersion
Pathname = REG_EXPAND_SZ %SystemRoot%\System32\perfmib.dll
System
CurrentControlSet
Services
SNMP
Parameters
ExtensionAgents
MicrosoftPerformanceAgent = SOFTWARE\Microsoft\PerformanceAgent\CurrentVersion



When I use getif to walk the tree after rebooting the machine making sure that the snmp service has restarted there is no sign of this entry which I think should come in the enterprise section of MIB2 but this is where I am getting confused.

Can anyone shed light on this for me or at least point me in the right direction.

Once again I apologies for my lack of knowlage on this subject as I am on a steep learning curve and at the bottom.

Cheers

Nichols
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top