[NSClient++] Topic #58 - WinNT4 Error http://nsclient.org/nscp/discussion/topic/58 <p> WinNT4 Error </p> en-us NSClient++ /trac/nswide.png http://nsclient.org/nscp/discussion/topic/58 Trac 1.0beta1 - DiscussionPlugin Pivot Fri, 16 Nov 2007 14:43:33 GMT Topic #58 - WinNT4 Error http://nsclient.org/nscp/discussion/topic/58#topic http://nsclient.org/nscp/discussion/topic/58#topic <p> Hi all, I have some WinNT 4 machine. I did these: </p> <ol><li>unzip the distribution. </li><li>edit NSC.ini </li><li>unzip the pdh.dll into the same folder as nsclient++.exe </li><li>nsclient++ /install </li><li>nsclient++ /start </li></ol><p> but when check mem/cpu/uptime the result is this error: NSClient - ERROR: PDH Collection thread not running. </p> <p> Other controls (services status, disk space, nsclient version) are ok. </p> Topic mickem Thu, 22 Nov 2007 11:18:01 GMT Reply #127 to topic #58 - WinNT4 Error http://nsclient.org/nscp/discussion/message/127#message127 http://nsclient.org/nscp/discussion/message/127#message127 <p> "normal trac wiki formating" </p> <p> <a class="wiki" href="/nscp/wiki/WikiFormatting">WikiFormatting</a> </p> <p> in general I only use three curly braces to enclose "pre formated output". (the others are more usefull for making wiki pages) </p> <p> <em> MickeM </em></p> Message Pivot Thu, 22 Nov 2007 11:14:25 GMT Reply #126 to topic #58 - WinNT4 Error http://nsclient.org/nscp/discussion/message/126#message126 http://nsclient.org/nscp/discussion/message/126#message126 <p> Ok, I wait :-) </p> <p> P.S.: how can I "quote" program output in this "forum" to avoid that all lines go in a unique line without LF? I must add a blank line to avoid this </p> Message mickem Thu, 22 Nov 2007 10:36:46 GMT Reply #125 to topic #58 - WinNT4 Error http://nsclient.org/nscp/discussion/message/125#message125 http://nsclient.org/nscp/discussion/message/125#message125 <p> Humm, oki... then I would guess that "NT4 PDH" (ie the widows component I am asking) does not "get it right". </p> <p> I shall try to see if I can add a new virtual disk to my box and get above 4gb myself. But then I know it is nothing wrong "along the way", thanx. </p> <p> <em> MickeM </em></p> Message Pivot Thu, 22 Nov 2007 09:58:22 GMT Reply #122 to topic #58 - WinNT4 Error http://nsclient.org/nscp/discussion/message/122#message122 http://nsclient.org/nscp/discussion/message/122#message122 <p> This is the result with the latest nightly: </p> <p> C:\nsclient&gt;nsclient++ /test </p> <p> &lt; Reading: modules from: C:\nsclient\NSC.ini </p> <p> d \NSClient++.cpp(373) Loading plugin: <a class="wiki" href="/nscp/wiki/CheckDisk">CheckDisk</a>... </p> <p> d \NSClient++.cpp(373) Loading plugin: <a class="wiki" href="/nscp/wiki/CheckSystem">CheckSystem</a>... </p> <p> d \<a class="wiki" href="/nscp/wiki/CheckSystem">CheckSystem</a>.cpp(71) Autodetected NT4&lt;, using PSAPI process enumeration. </p> <p> d \NSClient++.cpp(373) Loading plugin: NSClient server... </p> <p> l \NSClient++.cpp(130) Using settings from: INI-file </p> <p> l \NSClient++.cpp(131) Enter command to inject or exit to terminate... </p> <p> d \PDHCollector.cpp(79) Autodetected NT4, using NT4 PDH counters. </p> <p> d \PDHCollector.cpp(103) Detected language: English US (0x0410) </p> <p> d \Socket.h(538) Bound to: 0.0.0.0:12489 </p> <p> d \NSClientListener.cpp(142) Data: None&amp;7 </p> <p> d \NSClientListener.cpp(167) Data: </p> <p> d \NSClient++.cpp(438) Injecting: checkMem: nsclient </p> <p> d \NSClient++.cpp(458) Injected Result: OK -- 959016960&amp;2100838400 </p> <p> d \NSClient++.cpp(459) Injected Performance Result: </p> <p> On the linux box: </p> <p> Memory usage: total:914,60 Mb - used: 2003,53 Mb (219%) - free: -1088,94 Mb (-119%) | 'Memory usage'=2003,53Mb;731,68;823,14;0.00;914,60 </p> Message Pivot Thu, 22 Nov 2007 09:48:04 GMT Reply #121 to topic #58 - WinNT4 Error http://nsclient.org/nscp/discussion/message/121#message121 http://nsclient.org/nscp/discussion/message/121#message121 <p> Nothing else the message when starts ;-) </p> <p> l .\NSClient++.cpp(109) Using settings from: INI-file </p> <p> e .\PDHCollector.cpp(69) Getting counter info... </p> <p> l .\NSClient++.cpp(110) Enter command to inject or exit to terminate... </p> <p> e .\PDHCollector.cpp(119) Attemping to open counter... </p> <p> e .\PDHCollector.cpp(122) Counters opend... </p> <p> I am using version 0.2.7, not the latest nightly. </p> Message mickem Thu, 22 Nov 2007 09:33:28 GMT Reply #120 to topic #58 - WinNT4 Error http://nsclient.org/nscp/discussion/message/120#message120 http://nsclient.org/nscp/discussion/message/120#message120 <p> nothing? </p> <p> That is strange, when it boots it should at least tell you a lot of things... Are you sure you did not have another client running? (since it needs to accept connections you need to shut-down the "normal" client or change port) </p> <p> Also make sure you use the latest nightly (not sure what the old "release" tells you... :) </p> <p> <em> MickeM </em></p> Message Pivot Thu, 22 Nov 2007 09:11:19 GMT Reply #119 to topic #58 - WinNT4 Error http://nsclient.org/nscp/discussion/message/119#message119 http://nsclient.org/nscp/discussion/message/119#message119 <p> Ok. I have done. The result is ....nothing! </p> <p> On the unix box I have this result: </p> <p> Memory usage: total:914,60 Mb - used: 2003,72 Mb (219%) - free: -1089,12 Mb (-119%) | 'Memory usage'=2003,72Mb;731,68;823,14;0.00;914,60 </p> <p> On the server where nsclient run in test there is no message. </p> Message mickem Thu, 22 Nov 2007 08:48:25 GMT Reply #118 to topic #58 - WinNT4 Error http://nsclient.org/nscp/discussion/message/118#message118 http://nsclient.org/nscp/discussion/message/118#message118 <p> when you run "nsclient++ /test" you start the service (same as when you run the service) but you also get a console that logs what happens. </p> <p> so: </p> <pre class="wiki">nsclient++ /stop nsclient++ /test # from the unix box run various: ./check_nt -H ... # and check the log from nsclient++ # when you are done you: exit nsclient++ /start </pre> Message anonymous Thu, 22 Nov 2007 08:41:46 GMT Reply #117 to topic #58 - WinNT4 Error http://nsclient.org/nscp/discussion/message/117#message117 http://nsclient.org/nscp/discussion/message/117#message117 <p> How can I test? What command I need to write? </p> <p> When I run 'nsclient++ /test' on the server where I have the problem and type the command: </p> <p> check_nt -H 192.168.1.10 -p 12489 -v MEMUSE -w 80 -c 90 </p> <p> This is the result: </p> <p> l .\NSClient++.cpp(402) No handler for command: 'check_nt' </p> Message mickem Wed, 21 Nov 2007 20:03:48 GMT Reply #115 to topic #58 - WinNT4 Error http://nsclient.org/nscp/discussion/message/115#message115 http://nsclient.org/nscp/discussion/message/115#message115 <p> humm.... </p> <pre class="wiki">source@gotrek:~/src$ check_nt -H 192.168.0.118 -p 12489 -v MEMUSE -w 80 -c 90 Memory usage: total:558727.45 Mb - used: 21722.84 Mb (4%) - free: 537004.61 Mb (96%) | 'Memory usage'=21722.84Mb;446981.96;502854.71;0.00;558727.45 </pre><p> I did not boost the "memory" just added 1000 to the value returned from pdh so it should work. </p> <p> Would be interesting to see what </p> <pre class="wiki">nsclient++ /test </pre><p> tells you when you run this query. </p> <p> Might also be a good idea to check what version of check_nt you have (since it makes formatting at the other end). Also note that in general check_nt is crap, better to use check_nrpe if you ask me :) </p> <p> Also the various "<a class="missing wiki">MemoryCommitLimit?</a>" can be set in the .ini file thus they override the erronous detection and .def files. But no matter next version will solve this more elegantly. </p> <p> And as for giving thanx, the best thing is feedback :) And if you so wish you can donate money to my paypal account if you feel like giving monetary thanx. </p> <p> <em> MickeM </em></p> Message Pivot Wed, 21 Nov 2007 00:01:10 GMT Reply #103 to topic #58 - WinNT4 Error http://nsclient.org/nscp/discussion/message/103#message103 http://nsclient.org/nscp/discussion/message/103#message103 <p> Yes, I swap Italian with English language code in counter defs file. I wait for ini setting that is more fine. </p> <p> My memory is: physical 2 Gb virtual on C: min 1 Gb - max 2Gb, now is 1 Gb virtual on D: min 1 Gb - max 2Gb, now is 2 Gb </p> <p> so total is 5 Gb. </p> <p> Unsigned Int go up to 4.294.967.295, about 4 Gb, then is realy overflow, is it right? </p> <p> How can I give thanks? You are very friendly and available, thank you! </p> <p> P.S.: sorry for my bad english </p> Message anonymous Tue, 20 Nov 2007 21:08:20 GMT Reply #102 to topic #58 - WinNT4 Error http://nsclient.org/nscp/discussion/message/102#message102 http://nsclient.org/nscp/discussion/message/102#message102 <p> Humm, that memory issue is strange, is it just on the "swap file" thingy or do you have it on a systems with much RAM as well? I tried to boost up my VPS and it worked for around 2.5Gb of RAM: </p> <pre class="wiki">source@gotrek:~/src$ check_nt -H 192.168.0.118 -p 12489 -v MEMUSE -w 80 -c 90 Memory usage: total:2591.91 Mb - used: 21.52 Mb (1%) - free: 2570.39 Mb (99%) | 'Memory usage'=21.52Mb;2073.53;2332.72;0.00;2591.91 </pre> Message anonymous Tue, 20 Nov 2007 19:12:44 GMT Reply #101 to topic #58 - WinNT4 Error http://nsclient.org/nscp/discussion/message/101#message101 http://nsclient.org/nscp/discussion/message/101#message101 <p> I just checked the settings for language. There is not currently (your version) an option to select language but you can override the counters (which gives you the same result) Look at <a class="wiki" href="/nscp/wiki/CheckSystem">CheckSystem</a> and the various "<a class="missing wiki">MemoryCommitLimit?</a>" etc... The "force_language=0x0407" is new and vill be in the next version. </p> <p> As for precompiled yes. look under download above and pick the "lates" nightly for your platform (the one from last night was accidentaly called -2005 so it will be sorted "wrong" will be fixed in a bit) </p> <p> The memory thing lookes like a integer overflow... question is where I shall have to investigate. All in all I dont use check_nt much as check_nrpe is "better". </p> <p> <em> MickeM </em></p> Message Pivot Tue, 20 Nov 2007 15:48:58 GMT Reply #100 to topic #58 - WinNT4 Error http://nsclient.org/nscp/discussion/message/100#message100 http://nsclient.org/nscp/discussion/message/100#message100 <p> Esperanto is the final solution ;-) </p> <p> I have look for language in nsc.ini, where is the language settings? This is the right solution. Can you give me syntax? </p> <p> If you have a precompiled version could try on NT in week. I have not look. </p> <p> I have another problem with memory. A server (always NT) that have 2 virtual memory files, on disk C: and D:. In this case nsclient++ return: </p> <p> Memory usage: total:914,60 Mb - used: 2000,33 Mb (219%) - free: -1085,73 Mb (-119%) </p> <p> 'Memory usage'=2000,33Mb;731,68;823,14;0.00;914,60 </p> <p> Instead the physical memory is 2Gb, vitual is on C: 1Gb on D: 2Gb. </p> <p> Very very thanks </p> Message mickem Tue, 20 Nov 2007 15:27:44 GMT Reply #99 to topic #58 - WinNT4 Error http://nsclient.org/nscp/discussion/message/99#message99 http://nsclient.org/nscp/discussion/message/99#message99 <p> The "language" is dodgy which is why it is a "guess". The problem is there is not to my knowlaged any way to detect the *propper* language (and it is worse on NT). What I get is IIRC the locale which "often" is correct but not always. Hopefully the "fall back" to English in the next version will fix many of these issues. </p> <p> But the "best" way is I think to manually set the values in the nsc.ini file if you have problems. There you can IIRC either set the local and disable the auto-lookup and also set the actual values to use. </p> <p> If you have the time it would be interesting to see if the last nightly build works "better" in this regard on NT4. </p> <p> <em> Michael Medin </em></p> Message anonymous Tue, 20 Nov 2007 14:54:29 GMT Reply #98 to topic #58 - WinNT4 Error http://nsclient.org/nscp/discussion/message/98#message98 http://nsclient.org/nscp/discussion/message/98#message98 <p> Ah ok, no problem. </p> <p> Also this? </p> <p> 2007-11-20 15:21:30: error:.\PDHCollector.cpp:69: Getting counter info... </p> <p> 2007-11-20 15:21:30: error:.\PDHCollector.cpp:122: Counters opend... </p> <p> I'm using version 0.2.7. </p> <p> And about the language on WinNT? </p> <p> Thanks </p> Message mickem Tue, 20 Nov 2007 14:49:20 GMT Reply #97 to topic #58 - WinNT4 Error http://nsclient.org/nscp/discussion/message/97#message97 http://nsclient.org/nscp/discussion/message/97#message97 <p> If you mean </p> <pre class="wiki">2007-11-20 15:21:30: error:.\PDHCollector.cpp:119: Attempting to open counter... </pre><p> sorry, that is a debug message and should not have been reported as an error (my mistake) I thought I had fixed that though. What version do you use? </p> Message Pivot Tue, 20 Nov 2007 14:28:26 GMT Reply #96 to topic #58 - WinNT4 Error http://nsclient.org/nscp/discussion/message/96#message96 http://nsclient.org/nscp/discussion/message/96#message96 <p> Bad layout, excuse me. </p> <p> This is the log: </p> <p> 2007-11-20 15:21:30: debug:.\NSClient++.cpp:305: Loading plugin: NSClient server... </p> <p> 2007-11-20 15:21:30: error:.\PDHCollector.cpp:69: Getting counter info... </p> <p> 2007-11-20 15:21:30: debug:c:\source\nscp\trunk\include\Socket.h:515: Bound to: 0.0.0.0:12489 </p> <p> 2007-11-20 15:21:30: debug:.\PDHCollector.cpp:81: Autodetected NT4, using NT4 PDH counters. </p> <p> 2007-11-20 15:21:30: debug:c:\source\nscp\trunk\include\Socket.h:521: Socket ready... </p> <p> 2007-11-20 15:21:30: debug:.\PDHCollector.cpp:101: Detected language: English US (0x0410) </p> <p> 2007-11-20 15:21:30: error:.\PDHCollector.cpp:119: Attempting to open counter... </p> <p> 2007-11-20 15:21:30: error:.\PDHCollector.cpp:122: Counters opend... </p> Message Pivot Tue, 20 Nov 2007 14:21:37 GMT Reply #95 to topic #58 - WinNT4 Error http://nsclient.org/nscp/discussion/message/95#message95 http://nsclient.org/nscp/discussion/message/95#message95 <p> Sorry. I have found the problem: language. </p> <p> I have Windows NT Server 4. In regional settings the language is English, but log report Italian language. The O.S. is English (menu and other). </p> <p> The strange is that in another Windows NT Server 4, where in regional settings I see Italian, all is ok?! </p> <p> Now I have set English to 0x0410 and Italian to 0x409, so I don't modify the server setting. In this way all is ok, but always have this three erros at start of service. This is the log: </p> <p> 2007-11-20 15:21:30: debug:.\NSClient++.cpp:305: Loading plugin: NSClient server... 2007-11-20 15:21:30: error:.\PDHCollector.cpp:69: Getting counter info... 2007-11-20 15:21:30: debug:c:\source\nscp\trunk\include\Socket.h:515: Bound to: 0.0.0.0:12489 2007-11-20 15:21:30: debug:.\PDHCollector.cpp:81: Autodetected NT4, using NT4 PDH counters. 2007-11-20 15:21:30: debug:c:\source\nscp\trunk\include\Socket.h:521: Socket ready... 2007-11-20 15:21:30: debug:.\PDHCollector.cpp:101: Detected language: English US (0x0410) 2007-11-20 15:21:30: error:.\PDHCollector.cpp:119: Attempting to open counter... 2007-11-20 15:21:30: error:.\PDHCollector.cpp:122: Counters opend... </p> <p> I have seen that also Windows Server 2003 report the last two errors. </p> <p> My questions are: </p> <ol><li>where nsclient++ look for language? </li><li>where, under Win NT, I must change language? </li><li>why the 3 errors in log? </li></ol><p> Thanks a lot Regards </p> Message anonymous Fri, 16 Nov 2007 20:28:54 GMT Reply #89 to topic #58 - WinNT4 Error http://nsclient.org/nscp/discussion/message/89#message89 http://nsclient.org/nscp/discussion/message/89#message89 <p> Hello, </p> <p> Why not use the good-old /test option and/or check the log-file? </p> <p> Usually pdh issues are related to missing languages. But it is hard to know what is wrong with out the log. </p> <p> Try the following: </p> <pre class="wiki">nsclient++ /test </pre><p> and let me kow what it says... ANother option is so past the output of nsc.log (preferably with debug logging enabled) </p> <p> <em> MickeM </em></p> Message Pivot Fri, 16 Nov 2007 15:06:56 GMT Reply #86 to topic #58 - WinNT4 Error http://nsclient.org/nscp/discussion/message/86#message86 http://nsclient.org/nscp/discussion/message/86#message86 <p> Add an info. The same configuration (I have copied the files) in another WinNT work right. Using Process Explorer I have seen that on the machine that nsclient goes ok the process nsclient++.exe have 3 thread: <a class="wiki" href="/nscp/wiki/CheckSystem">CheckSystem</a>.dll NSClientListener.dll NSClient++.exe ADVAPI32.dll </p> <p> On the other machine the thread <a class="wiki" href="/nscp/wiki/CheckSystem">CheckSystem</a>.dll there is not! Why? The ini file are the same, copied from the other, I have verified this. </p> <p> Thanks </p> Message