Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 7th, 2010  |  syntax: None  |  size: 3.59 KB  |  hits: 630  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. From nagios server:
  2.  
  3. root@NAGPROD03:/usr/local/nagios/libexec# ./check_nrpe -H MF06NODE01 -c check_oracleping
  4. UNKNOWN: No handler for that command
  5. root@NAGPROD03:/usr/local/nagios/libexec#
  6.  
  7. Running NSClient++ /test the checks work fine:
  8.  
  9. C:\Program Files\NagiosClient>net stop nsclientpp && "NSClient++.exe" /test
  10. The NSClient++ (Win32) service is stopping.
  11. The NSClient++ (Win32) service was stopped successfully.
  12.  
  13. Launching test mode - client mode
  14. l \NSClient++.cpp(370) Attempting to start NSCLient++ - 0.3.5.2 2008-09-24
  15. e \NSClient++.cpp(453) Exception raised: Could not load library: 126: The specif
  16. ied module could not be found.
  17.  in module: LUAScript.dll
  18. d \NSClient++.cpp(773) Loading plugin: CheckDisk...
  19. d \NSClient++.cpp(773) Loading plugin: Event log Checker....
  20. d \NSClient++.cpp(773) Loading plugin: Check External Scripts...
  21. d \NSClient++.cpp(773) Loading plugin: Helper function...
  22. d \NSClient++.cpp(773) Loading plugin: CheckSystem...
  23. d \NSClient++.cpp(773) Loading plugin: File logger...
  24. d \PDHCollector.cpp(66) Autodetected w2k or later, using w2k PDH counters.
  25. d \PDHCollector.cpp(103) Using index to retrive counternames
  26. l \FileLogger.cpp(93) Log path is: C:\Program Files\NagiosClient\\nsclient.log
  27. d \NSClient++.cpp(773) Loading plugin: NRPE client...
  28. d \NRPEClient.cpp(49) humm...
  29. d \NRPEClient.cpp(51) check_other
  30. d \NRPEClient.cpp(79) Added NRPE Client: check_other = host: 192.168.0.1, port:
  31. 5666, timeout: 10, ssl: 1, buffer_length: 1024
  32. d \NSClient++.cpp(773) Loading plugin: NRPE server...
  33. d \PDHCollector.cpp(123) Found countername: CPU:    \Processor(_total)\% Process
  34. or Time
  35. d \PDHCollector.cpp(124) Found countername: UPTIME: \System\System Up Time
  36. d \PDHCollector.cpp(125) Found countername: MCL:    \Memory\Commit Limit
  37. d \PDHCollector.cpp(126) Found countername: MCB:    \Memory\Committed Bytes
  38. d \NSClient++.cpp(773) Loading plugin: NSCAAgent...
  39. d \Socket.h(637) Bound to: 0.0.0.0:5666
  40. d \NSCAThread.cpp(46) Autodetected hostname: MF06NODE01
  41. d \NSClient++.cpp(773) Loading plugin: NSClient server...
  42. d \NSClient++.cpp(773) Loading plugin: SystemTray...
  43. d \Socket.h(637) Bound to: 0.0.0.0:12489
  44. d \NSCAThread.cpp(115) Drifting: 0
  45. e \SysTray.cpp(51) SysTray is not installed (or it cannot interact with the desk
  46. top) SysTray won't be loaded. Run NSClient++ SysTray install to change this.
  47. l \NSClient++.cpp(476) NSCLient++ - 0.3.5.2 2008-09-24 Started!
  48. l \NSClient++.cpp(278) Using settings from: INI-file
  49. l \NSClient++.cpp(279) Enter command to inject or exit to terminate...
  50. d \NSClientListener.cpp(146) Data: myh4th4sthr33c0rn3rs&1
  51. d \NSClientListener.cpp(171) Data:
  52. d \NSClient++.cpp(910) Injecting: check_oracleping:
  53. d \NSClient++.cpp(946) Injected Result: CRITICAL '"CRIT $ARG1$ - TNS-03505: Fail
  54. ed to resolve name"'
  55. d \NSClient++.cpp(947) Injected Performance Result: ''
  56. d \NSClient++.cpp(910) Injecting: check_oracleping: INTPRD
  57. d \NSClient++.cpp(946) Injected Result: OK '"OK INTPRD - OK (470 msec)"'
  58. d \NSClient++.cpp(947) Injected Performance Result: ''
  59.  
  60. From nagios server when daemon running as nsclient++ /test:
  61.  
  62. root@NAGPROD03:/usr/local/nagios/libexec# ./check_nrpe -H MF06NODE01 -c check_oracleping
  63. "CRIT $ARG1$ - TNS-03505: Failed to resolve name"
  64. root@NAGPROD03:/usr/local/nagios/libexec# ./check_nrpe -H MF06NODE01 -c check_oracleping -a INTPRD
  65. "OK INTPRD - OK (470 msec)"
  66. root@NAGPROD03:/usr/local/nagios/libexec#
  67.  
  68. When running as service NRPE still responds:
  69.  
  70. root@NAGPROD03:/usr/local/nagios/libexec# ./check_nrpe -H MF06NODE01
  71. I (0.3.8.69 2010-05-19) seem to be doing fine...
  72.  
  73. (the other test NRPE default commands have the same error as above).