| 1 | | [[TracNav(TracNav/TOCDoc)]] |
| 2 | | [[PageOutline]] |
| 3 | | = Problems = |
| 4 | | == 1. I am having problems where do I start? == |
| 5 | | NSCP has a built-in "test and debug" mode that you can activate with the following command |
| 6 | | {{{ |
| 7 | | nsclient++ /test |
| 8 | | }}} |
| 9 | | What this does is two things. |
| 10 | | 1. it starts the deamon as "usual" with the same configuration and such. |
| 11 | | 2. it enables debug logging and logs to the console. |
| 12 | | This makes it quite easy to see what is going on and why things go wrong. . |
| 13 | | |
| 14 | | == 2. Failed to open performance counters == |
| 15 | | * The first thing to check is the version if you are using an old version (pre 0.3.x) upgrade! |
| 16 | | * Second thing to check are your performance counters working? |
| 17 | | Sometimes the performance counters end up broken end need to be rebuilt |
| 18 | | See forum post: [topic:78 here for details] or Microsoft KB: [http://support.microsoft.com/kb/300956] essentially you need to use the "lodctr /R" command. |
| 19 | | |
| 20 | | == 3. Bind failed == |
| 21 | | * Usually this is due to running more then once instance of NSClient++ or possibly running another program that uses the same port. |
| 22 | | - Make sure you don't have any other instance NSCLient++ started. |
| 23 | | - Check if the port is in use (netstat -a look for LISTENING) |
| 24 | | |
| 25 | | == 4. "EvenlogBuffer? is too small == |
| 26 | | * This is because you have one or more entries in your eventlog which are larger then the "default buffer size of 64k". The best way to fix this is to increase the buffer used. |
| 27 | | {{{ |
| 28 | | [EventLog] |
| 29 | | buffer_size=128000 |
| 30 | | }}} |
| 31 | | |
| 32 | | NOTE: You should add it to the ini file by yourself. |
| 33 | | |
| 34 | | There are hundreds of options not in the ini file (all covered in the docs though). |
| 35 | | The default ini is more a "common ones" and not a complete set. |
| 36 | | |
| 37 | | the ini file that comes with the installation does not contain this variable by default. |
| 38 | | |
| 39 | | |
| 40 | | == 5. How do I properly escape spaces in strings == |
| 41 | | When you need to put spaces in a string you do the following: |
| 42 | | * nagios: |
| 43 | | - As usual you can do it anyway you like but I prefer: check_nrpe ... 'this is a string' |
| 44 | | * NSClient++ (inject, alias, external, etc...) |
| 45 | | - The parser is badly written so the only option is: |
| 46 | | {{{ |
| 47 | | CHeckSomething "this is a string" |
| 48 | | CheckEventLog "filter-message=substr:Hello World" |
| 49 | | }}} |
| 50 | | - '''Not''' for instance: |
| 51 | | {{{ |
| 52 | | filter-message="substr:Hello World" |
| 53 | | filter-message=substr:"Hello World" |
| 54 | | }}} |
| 55 | | |
| 56 | | == 6. How do I properly escape $ in strings == |
| 57 | | From: |
| 58 | | * nagios: |
| 59 | | - $$ (you use two $ signs) |
| 60 | | * from NSClient++ |
| 61 | | - $ (you do not need to escape them at all) |
| 62 | | |
| 63 | | == 7. System Tray does not work == |
| 64 | | === Older WIndows === |
| 65 | | If you are using "older windows" (ie. XP and below) you can use the "old" sytray module like so: |
| 66 | | {{{ |
| 67 | | [modules] |
| 68 | | SysTray.dll |
| 69 | | }}} |
| 70 | | and then run: |
| 71 | | {{{ |
| 72 | | NSClient++ -noboot SysTray install |
| 73 | | }}} |
| 74 | | === "modern" windows === |
| 75 | | If you are using "modern" windows ie. vista, 2k3, 2k8, etc etc there is no "session 0" (or there is but you do not see it by default) so they sytray (which ends up on session 0) wont be visible by your session 1 (or above). Thus I started work on a new "modern implementation" this comes in the form of a shared session (based on shared memory and mutexes). |
| 76 | | '''But since this is rather new it is very experimental''' so use it with care! |
| 77 | | To enable shared session do the following: |
| 78 | | {{{ |
| 79 | | [modules] |
| 80 | | ; SysTray.dll <--- NOTICE THE COMMENT |
| 81 | | |
| 82 | | [Settings] |
| 83 | | shared_session=1 |
| 84 | | }}} |
| | 1 | humm... |