LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-24-2012, 12:57 AM   #1
parthipan
LQ Newbie
 
Registered: May 2012
Posts: 11

Rep: Reputation: Disabled
i could not get services details from windows machine nsclient error:CPU Load UNKNOWN


i could not get details from windows machine some services through nagios + nsclient++, some of the private services are working like, nsclient version, disk space but could not fetch the details from the windows machine

I'm having a problem with a XP machine
i could not reset the counter variables

through loctr /R

Quote:
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>
Quote:
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?
Quote:
Memory Usage UNKNOWN 07-24-2012 09:57:40 0d 18h 16m 14s 3/3 NSClient - ERROR: Failed to get PDH value.
Quote:
[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
but other services are working

Quote:
C:\ 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%)
when i provide nscp test in windows machine the out put is below there

Code:
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 FOUND
how can i solve this problem?
what are the changes i have to do?
 
Old 09-23-2012, 10:54 PM   #2
wangjunccie
LQ Newbie
 
Registered: Sep 2012
Posts: 1

Rep: Reputation: Disabled
change another version
NSCP-0.4.0.172-Win32 to NSClient++-0.3.9-Win32
 
1 members found this post helpful.
Old 11-13-2012, 03:49 AM   #3
ducthuan90
LQ Newbie
 
Registered: Sep 2012
Posts: 2

Rep: Reputation: Disabled
Quote:
Originally Posted by wangjunccie View Post
change another version
NSCP-0.4.0.172-Win32 to NSClient++-0.3.9-Win32
This is a good idea.

Thanks for helping.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] nsclient is not working error: could not fetch information from server parthipan Linux - Server 3 11-29-2017 08:50 AM
Nagios - NSClient++ for Windows Server R2 Datacenter Jenish_uk General 6 05-31-2011 06:16 AM
not able to installed nsclient on windows machine rajiv.patil82 Linux - Software 5 09-15-2010 04:16 AM
GRUB won't load windows partition - root (hd0,0), Filesystem type unknown partition.. cillm527 Linux - Software 4 04-27-2008 07:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration