I'm having a problem with a XP machine
i could not reset the counter variables
through loctr /R
C:\WINDOWS\system32>lodctr /R
LODCTR
Updates Performance Monitor counter names and explain text for an extensible
counter
Usage:
LODCTR [\\computername] filename
computername is the name of the remote computer.
Local machine is used if computername is not specified.
filename is the name of the initialization file that contains
the counter name definitions and explain text for an extensible
counter DLL.
LODCTR /S:<FileName>
save current perf registry strings and info to <FileName>
LODCTR /R:<FileName>
restore perf registry strings and info using <FileName>
Note: any arguments with spaces in the names must be enclosed within
Double Quotation marks.
C:\WINDOWS\system32>
CPU Load UNKNOWN 07-24-2012 10:01:58 0d 18h 21m 56s 3/3 NSClient - ERROR: Could not get data for 5 perhaps we don't collect data this far back?
Memory Usage UNKNOWN 07-24-2012 09:57:40 0d 18h 16m 14s 3/3 NSClient - ERROR: Failed to get PDH value.
but other services are working[root@localhost ~]# /usr/local/nagios/libexec/check_nt -H 172.30.0.73 -p 12489 -s 123456 -v UPTIME
NSClient - ERROR: Could not get value
when i provide nscp test in windows machine the out put is below thereC:\ Drive Space OK 07-24-2012 09:56:15 0d 18h 11m 38s 1/3 c: - total: 15.99 Gb - used: 5.01 Gb (31%) - free 10.97 Gb (69%)
Code: Select all
C:\Program Files\NSClient++>nscp test
d vice\logger_impl.cpp:371 Creating logger: console
d rvice\NSClient++.cpp:374 NSClient++ 0,4,0,172 2012-05-08 w32 Loading settings
and logger...
d ngs_manager_impl.cpp:162 Boot.ini found in: C:/Program Files/NSClient++//boot
.ini
d ngs_manager_impl.cpp:179 Boot order: ini://${exe-path}/nsclient.ini
d ngs_manager_impl.cpp:182 Activating: ini://${exe-path}/nsclient.ini
d ngs_manager_impl.cpp:73 Creating instance for: ini://${exe-path}/nsclient.in
i
d ngs/settings_ini.hpp:268 Reading INI settings from: C:/Program Files/NSClient
++//nsclient.ini
d ngs/settings_ini.hpp:234 Loading: C:/Program Files/NSClient++//nsclient.ini f
rom ini://${exe-path}/nsclient.ini
l rvice\NSClient++.cpp:385 NSClient++ 0,4,0,172 2012-05-08 w32 booting...
d rvice\NSClient++.cpp:386 Booted settings subsystem...
d rvice\NSClient++.cpp:453 On crash: restart: NSClientpp
d rvice\NSClient++.cpp:465 Archiving crash dumps in: C:/Program Files/NSClient+
+//crash-dumps
d rvice\NSClient++.cpp:532 booting::loading plugins
d rvice\NSClient++.cpp:298 Found: CheckDisk
d rvice\NSClient++.cpp:298 Found: CheckEventLog
d rvice\NSClient++.cpp:298 Found: CheckExternalScripts
d rvice\NSClient++.cpp:298 Found: CheckHelpers
d rvice\NSClient++.cpp:298 Found: CheckNSCP
d rvice\NSClient++.cpp:298 Found: CheckSystem
d rvice\NSClient++.cpp:298 Found: CheckWMI
d rvice\NSClient++.cpp:298 Found: NRPEServer
d rvice\NSClient++.cpp:298 Found: NSClientServer
d rvice\NSClient++.cpp:830 addPlugin(C:/Program Files/NSClient++//modules/Check
Disk.dll as )
d rvice\NSClient++.cpp:830 addPlugin(C:/Program Files/NSClient++//modules/Check
EventLog.dll as )
d rvice\NSClient++.cpp:830 addPlugin(C:/Program Files/NSClient++//modules/Check
ExternalScripts.dll as )
d rvice\NSClient++.cpp:830 addPlugin(C:/Program Files/NSClient++//modules/Check
Helpers.dll as )
d rvice\NSClient++.cpp:830 addPlugin(C:/Program Files/NSClient++//modules/Check
NSCP.dll as )
d rvice\NSClient++.cpp:830 addPlugin(C:/Program Files/NSClient++//modules/Check
System.dll as )
d rvice\NSClient++.cpp:830 addPlugin(C:/Program Files/NSClient++//modules/Check
WMI.dll as )
d rvice\NSClient++.cpp:830 addPlugin(C:/Program Files/NSClient++//modules/NRPES
erver.dll as )
d rvice\NSClient++.cpp:830 addPlugin(C:/Program Files/NSClient++//modules/NSCli
entServer.dll as )
d rvice\NSClient++.cpp:807 Loading plugin: CheckDisk
d rvice\NSClient++.cpp:807 Loading plugin: Event log Checker.
d rvice\NSClient++.cpp:807 Loading plugin: Check External Scripts
d kExternalScripts.cpp:96 No wrappings found (adding default: vbs, ps1 and bat
)
d rvice\NSClient++.cpp:807 Loading plugin: Helper function
d rvice\NSClient++.cpp:807 Loading plugin: Check NSCP
d rvice\NSClient++.cpp:807 Loading plugin: CheckSystem
d rvice\NSClient++.cpp:807 Loading plugin: CheckWMI
d tem\PDHCollector.cpp:91 Loading counters...
d rvice\NSClient++.cpp:807 Loading plugin: NRPE server
d tem\PDHCollector.cpp:94 Loading counter: memory commit limit = \4\30
d erver\NRPEServer.cpp:117 Allowed hosts definition: 172.30.0.72(255.255.255.25
5)
d tem\PDHCollector.cpp:103 Counter status: -1073738816: Unable to parse the cou
nter path. Check the format and syntax of the
specified path.
d pe\server\server.cpp:40 Using cert: C:/Program Files/NSClient++//security/nr
pe_dh_512.pem
d tem\PDHCollector.cpp:94 Loading counter: cpu = \238(_total)\6
d pe\server\server.cpp:50 Attempting to bind to: :5666
d tem\PDHCollector.cpp:103 Counter status: -1073738824: The specified object is
not found on the system.
d pe\server\server.cpp:62 Bound to: :5666
d tem\PDHCollector.cpp:94 Loading counter: memory commit bytes = \4\26
d pe\server\server.cpp:77 Thredpool containes: 10
d tem\PDHCollector.cpp:103 Counter status: -1073738816: Unable to parse the cou
nter path. Check the format and syntax of the
specified path.
d rvice\NSClient++.cpp:807 Loading plugin: NSClient server
d tem\PDHCollector.cpp:94 Loading counter: uptime = \2\674
d r\NSClientServer.cpp:115 Allowed hosts definition: 172.30.0.72(255.255.255.25
5)
d tem\PDHCollector.cpp:103 Counter status: -1073738816: Unable to parse the cou
nter path. Check the format and syntax of the
specified path.
d nt\server\server.cpp:51 Attempting to bind to: :12489
e tem\PDHCollector.cpp:115 Failed to open performance counters: \4\30: PdhAddCo
unter failed: -1073738823: The specified counter could not be found.
d nt\server\server.cpp:63 Bound to: :12489
e tem\PDHCollector.cpp:152 No performance counters were found we will not wait
for the end instead...
d nt\server\server.cpp:78 Thredpool containes: 10
d rvice\NSClient++.cpp:604 NSClient++ - 0,4,0,172 2012-05-08 Started!
l ce\simple_client.hpp:32 Enter command to inject or exit to terminate...
d rvice\NSClient++.cpp:923 Injecting: ...
NOT FOUND
e rvice\NSClient++.cpp:943 No handler for command: avalible commands: commands
{, check_eventlog, check_eventlog_cache, check_nscp, check_ok, checkalwayscriti
cal, checkalwaysok, checkalwayswarning, checkcounter, checkcpu, checkcritical, c
heckdrivesize, checkeventlog, checkeventlogcache, checkfile2, checkfiles, checkf
ilesize, checkmem, checkmultiple, checkok, checkprocstate, checkservicestate, ch
ecksingleregentry, checkuptime, checkversion, checkwarning, checkwmi, checkwmiva
lue, listcounterinstances}, plugins {, 0, 1, 2, 3, 4, 5, 6}
e rvice\NSClient++.cpp:901 No data retutned from command
l ce\simple_client.hpp:80 WARNING:
d rvice\NSClient++.cpp:923 Injecting: ...
NOT FOUND
e rvice\NSClient++.cpp:943 No handler for command: avalible commands: commands
{, check_eventlog, check_eventlog_cache, check_nscp, check_ok, checkalwayscriti
cal, checkalwaysok, checkalwayswarning, checkcounter, checkcpu, checkcritical, c
heckdrivesize, checkeventlog, checkeventlogcache, checkfile2, checkfiles, checkf
ilesize, checkmem, checkmultiple, checkok, checkprocstate, checkservicestate, ch
ecksingleregentry, checkuptime, checkversion, checkwarning, checkwmi, checkwmiva
lue, listcounterinstances}, plugins {, 0, 1, 2, 3, 4, 5, 6}
e rvice\NSClient++.cpp:901 No data retutned from command
l ce\simple_client.hpp:80 WARNING:
d rvice\NSClient++.cpp:923 Injecting: ...
NOT FOUNDwhat are the changes i have to do?