Opened 3 years ago
Closed 16 months ago
#388 closed enhancement (fixed)
Allow large numbers of counters to be retrieved using one invocation of the NRPE daemon
| Reported by: | lovedada | Owned by: | mickem |
|---|---|---|---|
| Priority: | 1 | Milestone: | 0.4.0 |
| Component: | NRPEListener | Version: | 0.3.7 |
| Severity: | Feature Requests | Keywords: | |
| Cc: |
Description (last modified by mickem)
We tried to retrieve about 20 counters in one hit using the NRPE daemon and quickly ran into the 1024 byte packet size limit, see last line of the output below.
It'd be good to be able to retrieve all our counters in one hit as that would make it possible for NSClient to batch up the windows calls and avoid the 1 second sleep for every counter (separate ticket raised for this).
$ ./nsclient++.exe /test Launching test mode - client mode d NSClient++.cpp(1145) Enabling debug mode... d NSClient++.cpp(533) Attempting to start NSCLient++ - 0.3.7.493 2009-10-12 d NSClient++.cpp(936) Loading plugin: CheckDisk... d NSClient++.cpp(936) Loading plugin: Check External Scripts... d NSClient++.cpp(936) Loading plugin: Helper function... d NSClient++.cpp(936) Loading plugin: CheckSystem... d NSClient++.cpp(936) Loading plugin: NRPE server (w/ SSL)... d \PDHCollector.cpp(66) Autodetected w2k or later, using w2k PDH counters. d \PDHCollector.cpp(103) Using index to retrive counternames d \NRPEListener.cpp(91) Loading all commands (from NRPE) d \NRPEListener.cpp(121) Starting NRPE socket... d NSClient++.cpp(638) NSCLient++ - 0.3.7.493 2009-10-12 Started! l NSClient++.cpp(437) Using settings from: INI-file d \Socket.h(669) Bound to: 0.0.0.0:5666 l NSClient++.cpp(438) Enter command to inject or exit to terminate... d \PDHCollector.cpp(123) Found countername: CPU: \Processor(_total)\% Processor Time d \PDHCollector.cpp(124) Found countername: UPTIME: \System\System Up Time d \PDHCollector.cpp(125) Found countername: MCL: \Memory\Commit Limit d \PDHCollector.cpp(126) Found countername: MCB: \Memory\Committed Bytes d NSClient++.cpp(1073) Injecting: nnnrpei_CheckCounter: "\LogicalDisk(C:)\% Free Space" "\Processor(_Total)\% User Time" "\Processor(0)\% User Time" "\Processor(1)\% User Time" "\Processor(_Total)\% Idle Time" "\Processor(0)\% Idle Time" "\Processor(1)\% Idle Time" "\PhysicalDisk(_Total)\Split IO/Sec" "\PhysicalDisk(_Total)\Disk Read Bytes/sec" "\PhysicalDisk(_Total)\Disk Write Bytes/sec" "\PhysicalDisk(_Total)\Current Disk Queue Length" "\Memory\Available Mbytes" "\Network Interface(Nortel IPSECSHM Adapter - Packet Scheduler Miniport)\Packets/sec" "\Network Interface(Broadcom NetXtreme Gigabit Ethernet - Packet Scheduler Miniport)\Packets/sec" "\Network Interface(Intel[R] PRO_Wireless 3945ABG Network Connection - Packet Scheduler Miniport)\Packets/sec" "\Network Interface(MS TCP Loopback interface)\Packets/sec" MinWarn=20 MinCrit=10 ShowAll d NSClient++.cpp(1073) Injecting: checkCounter: \LogicalDisk(C:)\% Free Space, \Processor(_Total)\% User Time, \Processor(0)\% User Time, \Processor(1)\% User Time, \Processor(_Total)\% Idle Time, \Processor(0)\% Idle Time, \Processor(1)\% Idle Time, \PhysicalDisk(_Total)\Split IO/Sec, \PhysicalDisk(_Total)\Disk Read Bytes/sec, \PhysicalDisk(_Total)\Disk Write Bytes/sec, \PhysicalDisk(_Total)\Current Disk Queue Length, \Memory\Available Mbytes, \Network Interface(Nortel IPSECSHM Adapter - Packet Scheduler Miniport)\Packets/sec, \Network Interface(Broadcom NetXtreme Gigabit Ethernet - Packet Scheduler Miniport)\Packets/sec, \Network Interface(Intel[R] PRO_Wireless 3945ABG Network Connection - Packet Scheduler Miniport)\Packets/sec, \Network Interface(MS TCP Loopback interface)\Packets/sec, MinWarn=20, MinCrit=10, ShowAll perf data: 1 perf data: 1 perf data: 1 perf data: 1 perf data: 1 perf data: 1 perf data: 1 perf data: 1 perf data: 1 perf data: 1 perf data: 1 perf data: 1 perf data: 1 perf data: 1 perf data: 1 perf data: 1 d NSClient++.cpp(1109) Injected Result: CRITICAL 'CRITICAL: \LogicalDisk(C:)\% Free Space: 21.1339, \Processor(_Total)\% User Time: 0 < critical, \Processor(0)\% User Time: 0 < critical, \Processor(1)\% User Time: 0 < critical, \Processor(_Total)\% Idle Time: 95.0746, \Processor(0)\% Idle Time: 93.6119, \Processor(1)\% Idle Time: 99.7504, \PhysicalDisk(_Total)\Split IO/Sec: 0 < critical, \PhysicalDisk(_Total)\Disk Read Bytes/sec: 0 < critical, \PhysicalDisk(_Total)\Disk Write Bytes/sec: 0 < critical, \PhysicalDisk(_Total)\Current Disk Queue Length: 0 < critical, \Memory\Available Mbytes: 2528, \Network Interface(Nortel IPSECSHM Adapter - Packet Scheduler Miniport)\Packets/sec: 0 < critical, \Network Interface(Broadcom NetXtreme Gigabit Ethernet - Packet Scheduler Miniport)\Packets/sec: 0 < critical, \Network Interface(Intel[R] PRO_Wireless 3945ABG Network Connection - Packet Scheduler Miniport)\Packets/sec: 0 < critical, \Network Interface(MS TCP Loopback interface)\Packets/sec: 0 < critical' d NSClient++.cpp(1110) Injected Performance Result: ''\LogicalDisk(C:)\% Free Space'=21.133865;20;10; '\Processor(_Total)\% User Time'=0;20;10; '\Processor(0)\% User Time'=0;20;10; '\Processor(1)\% User Time'=0;20;10; '\Processor(_Total)\% Idle Time'=95.074585;20;10; '\Processor(0)\% Idle Time'=93.611899;20;10; '\Processor(1)\% Idle Time'=99.750385;20;10; '\PhysicalDisk(_Total)\Split IO/Sec'=0;20;10; '\PhysicalDisk(_Total)\Disk Read Bytes/sec'=0;20;10; '\PhysicalDisk(_Total)\Disk Write Bytes/sec'=0;20;10; '\PhysicalDisk(_Total)\Current Disk Queue Length'=0;20;10; '\Memory\Available Mbytes'=2528;20;10; '\Network Interface(Nortel IPSECSHM Adapter - Packet Scheduler Miniport)\Packets/sec'=0;20;10; '\Network Interface(Broadcom NetXtreme Gigabit Ethernet - Packet Scheduler Miniport)\Packets/sec'=0;20;10; '\Network Interface(Intel[R] PRO_Wireless 3945ABG Network Connection - Packet Scheduler Miniport)\Packets/sec'=0;20;10; '\Network Interface(MS TCP Loopback interface)\Packets/sec'=0;20;10; ' d NSClient++.cpp(1109) Injected Result: CRITICAL 'CRITICAL: \LogicalDisk(C:)\% Free Space: 21.1339, \Processor(_Total)\% User Time: 0 < critical, \Processor(0)\% User Time: 0 < critical, \Processor(1)\% User Time: 0 < critical, \Processor(_Total)\% Idle Time: 95.0746, \Processor(0)\% Idle Time: 93.6119, \Processor(1)\% Idle Time: 99.7504, \PhysicalDisk(_Total)\Split IO/Sec: 0 < critical, \PhysicalDisk(_Total)\Disk Read Bytes/sec: 0 < critical, \PhysicalDisk(_Total)\Disk Write Bytes/sec: 0 < critical, \PhysicalDisk(_Total)\Current Disk Queue Length: 0 < critical, \Memory\Available Mbytes: 2528, \Network Interface(Nortel IPSECSHM Adapter - Packet Scheduler Miniport)\Packets/sec: 0 < critical, \Network Interface(Broadcom NetXtreme Gigabit Ethernet - Packet Scheduler Miniport)\Packets/sec: 0 < critical, \Network Interface(Intel[R] PRO_Wireless 3945ABG Network Connection - Packet Scheduler Miniport)\Packets/sec: 0 < critical, \Network Interface(MS TCP Loopback interface)\Packets/sec: 0 < critical' d NSClient++.cpp(1110) Injected Performance Result: ''\LogicalDisk(C:)\% Free Space'=21.133865;20;10; '\Processor(_Total)\% User Time'=0;20;10; '\Processor(0)\% User Time'=0;20;10; '\Processor(1)\% User Time'=0;20;10; '\Processor(_Total)\% Idle Time'=95.074585;20;10; '\Processor(0)\% Idle Time'=93.611899;20;10; '\Processor(1)\% Idle Time'=99.750385;20;10; '\PhysicalDisk(_Total)\Split IO/Sec'=0;20;10; '\PhysicalDisk(_Total)\Disk Read Bytes/sec'=0;20;10; '\PhysicalDisk(_Total)\Disk Write Bytes/sec'=0;20;10; '\PhysicalDisk(_Total)\Current Disk Queue Length'=0;20;10; '\Memory\Available Mbytes'=2528;20;10; '\Network Interface(Nortel IPSECSHM Adapter - Packet Scheduler Miniport)\Packets/sec'=0;20;10; '\Network Interface(Broadcom NetXtreme Gigabit Ethernet - Packet Scheduler Miniport)\Packets/sec'=0;20;10; '\Network Interface(Intel[R] PRO_Wireless 3945ABG Network Connection - Packet Scheduler Miniport)\Packets/sec'=0;20;10; '\Network Interface(MS TCP Loopback interface)\Packets/sec'=0;20;10; ' e \NRPEListener.cpp(325) NRPESocketException: To much data cant create return packet (truncate datat)
Change History (5)
comment:1 Changed 3 years ago by mickem
- Description modified (diff)
comment:2 Changed 3 years ago by mickem
- Milestone set to 0.3.x
comment:3 Changed 23 months ago by mickem
- Milestone changed from 0.3.x to 0.3.10
- Owner changed from MickeM to mickem
comment:4 Changed 23 months ago by mickem
- Status changed from new to assigned
comment:5 Changed 16 months ago by mickem
- Milestone changed from 0.3.10 to 0.4.0
- Resolution set to fixed
- Status changed from assigned to closed
Note: See
TracTickets for help on using
tickets.









Should be possible with 0.4.0 using scripts...