Changes between Version 5 and Version 6 of doc/usage/nscp/crash
- Timestamp:
- 12/26/10 17:46:01 (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
doc/usage/nscp/crash
v5 v6 31 31 To get you started I have divided this guide into three sections but nothing keeps you (and I advocate when possible) from using all three of these methods. 32 32 33 == Archiving files==33 === Archiving files === 34 34 35 35 The simplest way to protect your self is to make yourself aware of the fact that NSClient++ has crashed. This is done using both the archive feature and the [check_nscp] command in addition to this archiving crash dump files makes it possible to submit them by hand afterwards if you have an issue you want me to help you resolve. Submitting the crash dumps are fairly simple and you can either use the reporter tool or just send them via email to me. … … 68 68 }}} 69 69 70 The module serves two purposes the first being to collect all error messages reported inside NSClient++ and the second being to check the crash dump folder for crash dumps. 70 The module serves two purposes the first being to collect all error messages reported inside NSClient++ and the second being to check the crash dump folder for crash dumps. After enabling the CheckNSCP module start NSClient++ in "test" mode by running the following command: 71 {{{ 72 nsclient++ /test 73 }}} 71 74 75 Now go to your nagios box and run the check_nscp command from using the check_nrpe command. 76 {{{ 77 check_nrpe ... -c check_nscp 78 OK: 0 crash(es), 0 error(s) 79 }}} 80 Hopefully you now see the "OK: ..." response above with means everything is fine if not you already have a problem with you need to resolve. To simulate a problem we can force the client to crash when it is in "test" mode using the assert command. So go back to your "nsclient++ /test" command window and type the following: 81 {{{ 82 ... 83 assert 72 84 85 }}} 86 The result should be that NSClient++ crashes and produces a dump file. Notice if you have enabled "restart" (default) here you need to first stop nsclient++ before we can continue. So first stop nsclient++ then start it again in "test" mode. 87 {{{ 88 nsclient++ -stop 89 nsclient++ -test 90 ... 91 }}} 73 92 93 Now go back to the nagios machine and run the check_nscp command again. This time we should see an error indicating that NSClient++ has crashed. 94 {{{ 95 check_nrpe ... -c check_nscp 96 ERROR: 1 crash(es), last crash: fb472415-34e8-434d-9b48-f3929a834a87.dmp.txt 97 }}} 74 98 99 The next step is to remove the crash dump and then start the service normally. 100 The crash dumps are stored under %LOCALAPPDATA%\NSClient++\crash dumps. So open that folder and see if you can find the dump mentioned above. If you remove the file and again run the check_nscp command the result should revert back to good again. 75 101 102 It is important to understand that crash dumps are per-user which means if you run in "test" mode you will not see the same dumps as if you run the agent as a service. 76 103 104 === Submit crash reports === 77 105 78 106 '''TODO''' 107 108 === Restart service === 109 110 '''TODO''' 111








