can't read *log

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ariarlet
Posts: 61
Joined: Wed Apr 22, 2015 11:04 am

Re: can't read *log

Post by ariarlet »

C:\Program Files\NSClient++>nscp test
d vice\logger_impl.cpp:420 Creating logger: console
d rvice\NSClient++.cpp:386 NSClient++ 0,4,1,105 2014-04-28 x64 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:178 Boot order: ini://${exe-path}/nsclient.ini
d ngs_manager_impl.cpp:181 Activating: ini://${exe-path}/nsclient.ini
d ngs_manager_impl.cpp:73 Creating instance for: ini://${exe-path}/nsclient.ini
d mpl/settings_ini.hpp:303 Reading INI settings from: C:/Program Files/NSClient++//nsclient.ini
d mpl/settings_ini.hpp:253 Loading: C:/Program Files/NSClient++//nsclient.ini
d rvice\NSClient++.cpp:397 NSClient++ 0,4,1,105 2014-04-28 x64 booting...
d rvice\NSClient++.cpp:398 Booted settings subsystem...
d rvice\NSClient++.cpp:465 On crash: restart: NSClientpp
d rvice\NSClient++.cpp:477 Archiving crash dumps in: C:/Program Files/NSClient++//crash-dumps
d rvice\NSClient++.cpp:544 booting::loading plugins
d rvice\NSClient++.cpp:306 Found: CheckDisk
d rvice\NSClient++.cpp:306 Found: CheckEventLog
d rvice\NSClient++.cpp:306 Found: CheckExternalScripts
d rvice\NSClient++.cpp:306 Found: CheckHelpers
d rvice\NSClient++.cpp:306 Found: CheckNSCP
d rvice\NSClient++.cpp:306 Found: CheckSystem
d rvice\NSClient++.cpp:306 Found: CheckWMI
d rvice\NSClient++.cpp:306 Found: NRPEServer
d rvice\NSClient++.cpp:306 Found: NSClientServer
d rvice\NSClient++.cpp:306 Found: nrpe
d rvice\NSClient++.cpp:867 addPlugin(C:/Program Files/NSClient++//modules/CheckDisk.dll as )
d rvice\NSClient++.cpp:867 addPlugin(C:/Program Files/NSClient++//modules/CheckEventLog.dll as )
d rvice\NSClient++.cpp:867 addPlugin(C:/Program Files/NSClient++//modules/CheckExternalScripts.dll as )
d rvice\NSClient++.cpp:867 addPlugin(C:/Program Files/NSClient++//modules/CheckHelpers.dll as )
d rvice\NSClient++.cpp:867 addPlugin(C:/Program Files/NSClient++//modules/CheckNSCP.dll as )
d rvice\NSClient++.cpp:867 addPlugin(C:/Program Files/NSClient++//modules/CheckSystem.dll as )
d rvice\NSClient++.cpp:867 addPlugin(C:/Program Files/NSClient++//modules/CheckWMI.dll as )
d rvice\NSClient++.cpp:867 addPlugin(C:/Program Files/NSClient++//modules/NRPEServer.dll as )
d rvice\NSClient++.cpp:867 addPlugin(C:/Program Files/NSClient++//modules/NSClientServer.dll as )
d rvice\NSClient++.cpp:867 addPlugin(C:/Program Files/NSClient++//modules/nrpe.dll as )
e rvice\NSClient++.cpp:563 Exception raised: 'Could not load library: 126: The specified module could not be found.
: C:\Program Files\NSClient++\\modules\nrpe.dll' in module: nrpe
d rvice\NSClient++.cpp:844 Loading plugin: CheckDisk
d rvice\NSClient++.cpp:844 Loading plugin: Event log Checker.
d rvice\NSClient++.cpp:844 Loading plugin: Check External Scripts
l nalscripts\alias.hpp:87 Failed to parse arguments for command 'alias_Umbral', using old split string method: unknown escape
d rvice\NSClient++.cpp:844 Loading plugin: Helper function
d rvice\NSClient++.cpp:844 Loading plugin: Check NSCP
d rvice\NSClient++.cpp:844 Loading plugin: CheckSystem
d stem\CheckSystem.cpp:158 Found alternate key for uptime: \2\674
d stem\CheckSystem.cpp:169 Found alternate key for memory commit limit: \4\30
d stem\CheckSystem.cpp:180 Found alternate key for memory commit bytes: \4\26
d stem\CheckSystem.cpp:191 Found alternate key for cpu: \238(_total)\6
e service\commands.hpp:95 Adding duplicate command: check_uptime
d rvice\NSClient++.cpp:844 Loading plugin: CheckWMI
d tem\PDHCollector.cpp:94 Loading counter: cpu = \238(_total)\6
d rvice\NSClient++.cpp:844 Loading plugin: NRPE server
d tem\PDHCollector.cpp:94 Loading counter: memory commit bytes = \4\26
d tem\PDHCollector.cpp:94 Loading counter: memory commit limit = \4\30
d erver\NRPEServer.cpp:133 Allowed hosts definition: 10.82.29.40(255.255.255.255)
d tem\PDHCollector.cpp:94 Loading counter: uptime = \2\674
d de\socket/server.hpp:126 Binding to: [::]:5666(ipv6)
d de\socket/server.hpp:162 Attempting to bind to: :5666
e de\socket/server.hpp:165 Failed to bind: Only one usage of each socket address (protocol/network address/port) is normally pe
d rvice\NSClient++.cpp:844 Loading plugin: NSClient server
d r\NSClientServer.cpp:139 Allowed hosts definition: 10.82.29.40(255.255.255.255)
d de\socket/server.hpp:126 Binding to: [::]:12489(ipv6)
d de\socket/server.hpp:162 Attempting to bind to: :12489
e de\socket/server.hpp:165 Failed to bind: Only one usage of each socket address (protocol/network address/port) is normally pe
d rvice\NSClient++.cpp:616 NSClient++ - 0,4,1,105 2014-04-28 Started!
l ce\simple_client.hpp:32 Enter command to inject or exit to terminate...

d rvice\NSClient++.cpp:960 Injecting: ...
NOT FOUND
e rvice\NSClient++.cpp:980 No handler for command: avalible commands: commands {, alias_cpu, alias_file_age, alias_file_size,
_process_stopped, alias_sched_all, alias_sched_long, alias_sched_task, alias_service_ex, alias_umbral, alias_updates_2k8, check_
ck_pdh, check_process, check_registry, check_service, check_uptime, check_uptime_args, checkalwayscritical, checkalwaysok, check
eckeventlog, checkfile2, checkfiles, checkfilesize, checkmem, checkmultiple, checkok, checkprocstate, checkservicestate, checksi
ivalue, kill_java, listcounterinstances, startservice, stopservice, test}, plugins {, 0, 1, 2, 3, 4, 5, 6}
l ce\simple_client.hpp:74 No handler for command:
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: can't read *log

Post by jolson »

Code: Select all

d de\socket/server.hpp:126 Binding to: [::]:5666(ipv6)
d de\socket/server.hpp:162 Attempting to bind to: :5666
e de\socket/server.hpp:165 Failed to bind: Only one usage of each socket address (protocol/network address/port) is normally pe
d rvice\NSClient++.cpp:844 Loading plugin: NSClient server
It looks like NSClient failed to bind properly. Were you sure to stop it before you ran it in test mode? If not, please stop NSClient and then start it in test mode - otherwise we may run into bind errors like the above.
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
ariarlet
Posts: 61
Joined: Wed Apr 22, 2015 11:04 am

Re: can't read *log

Post by ariarlet »

i repeat test



C:\Program Files\NSClient++>nscp test
d vice\logger_impl.cpp:420 Creating logger: console
d rvice\NSClient++.cpp:386 NSClient++ 0,4,1,105 2014-04-28 x64 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:178 Boot order: ini://${exe-path}/nsclient.ini
d ngs_manager_impl.cpp:181 Activating: ini://${exe-path}/nsclient.ini
d ngs_manager_impl.cpp:73 Creating instance for: ini://${exe-path}/nsclient.ini
d mpl/settings_ini.hpp:303 Reading INI settings from: C:/Program Files/NSClient++//nsclient.ini
d mpl/settings_ini.hpp:253 Loading: C:/Program Files/NSClient++//nsclient.ini
d rvice\NSClient++.cpp:397 NSClient++ 0,4,1,105 2014-04-28 x64 booting...
d rvice\NSClient++.cpp:398 Booted settings subsystem...
d rvice\NSClient++.cpp:465 On crash: restart: NSClientpp
d rvice\NSClient++.cpp:477 Archiving crash dumps in: C:/Program Files/NSClient++//crash-dumps
d rvice\NSClient++.cpp:544 booting::loading plugins
d rvice\NSClient++.cpp:306 Found: CheckDisk
d rvice\NSClient++.cpp:306 Found: CheckEventLog
d rvice\NSClient++.cpp:306 Found: CheckExternalScripts
d rvice\NSClient++.cpp:306 Found: CheckHelpers
d rvice\NSClient++.cpp:306 Found: CheckNSCP
d rvice\NSClient++.cpp:306 Found: CheckSystem
d rvice\NSClient++.cpp:306 Found: CheckWMI
d rvice\NSClient++.cpp:306 Found: NRPEServer
d rvice\NSClient++.cpp:306 Found: NSClientServer
d rvice\NSClient++.cpp:306 Found: nrpe
d rvice\NSClient++.cpp:867 addPlugin(C:/Program Files/NSClient++//modules/CheckDisk.dll as )
d rvice\NSClient++.cpp:867 addPlugin(C:/Program Files/NSClient++//modules/CheckEventLog.dll as )
d rvice\NSClient++.cpp:867 addPlugin(C:/Program Files/NSClient++//modules/CheckExternalScripts.dll as )
d rvice\NSClient++.cpp:867 addPlugin(C:/Program Files/NSClient++//modules/CheckHelpers.dll as )
d rvice\NSClient++.cpp:867 addPlugin(C:/Program Files/NSClient++//modules/CheckNSCP.dll as )
d rvice\NSClient++.cpp:867 addPlugin(C:/Program Files/NSClient++//modules/CheckSystem.dll as )
d rvice\NSClient++.cpp:867 addPlugin(C:/Program Files/NSClient++//modules/CheckWMI.dll as )
d rvice\NSClient++.cpp:867 addPlugin(C:/Program Files/NSClient++//modules/NRPEServer.dll as )
d rvice\NSClient++.cpp:867 addPlugin(C:/Program Files/NSClient++//modules/NSClientServer.dll as )
d rvice\NSClient++.cpp:867 addPlugin(C:/Program Files/NSClient++//modules/nrpe.dll as )
e rvice\NSClient++.cpp:563 Exception raised: 'Could not load library: 126: The specified module could not be found.
: C:\Program Files\NSClient++\\modules\nrpe.dll' in module: nrpe
d rvice\NSClient++.cpp:844 Loading plugin: CheckDisk
d rvice\NSClient++.cpp:844 Loading plugin: Event log Checker.
d rvice\NSClient++.cpp:844 Loading plugin: Check External Scripts
l nalscripts\alias.hpp:87 Failed to parse arguments for command 'alias_Umbral', using old split string method: unknown escap
d rvice\NSClient++.cpp:844 Loading plugin: Helper function
d rvice\NSClient++.cpp:844 Loading plugin: Check NSCP
d rvice\NSClient++.cpp:844 Loading plugin: CheckSystem
d stem\CheckSystem.cpp:158 Found alternate key for uptime: \2\674
d stem\CheckSystem.cpp:169 Found alternate key for memory commit limit: \4\30
d stem\CheckSystem.cpp:180 Found alternate key for memory commit bytes: \4\26
d stem\CheckSystem.cpp:191 Found alternate key for cpu: \238(_total)\6
e service\commands.hpp:95 Adding duplicate command: check_uptime
d rvice\NSClient++.cpp:844 Loading plugin: CheckWMI
d tem\PDHCollector.cpp:94 Loading counter: cpu = \238(_total)\6
d rvice\NSClient++.cpp:844 Loading plugin: NRPE server
d tem\PDHCollector.cpp:94 Loading counter: memory commit bytes = \4\26
d erver\NRPEServer.cpp:133 Allowed hosts definition: 10.82.29.40(255.255.255.255)
d tem\PDHCollector.cpp:94 Loading counter: memory commit limit = \4\30
d tem\PDHCollector.cpp:94 Loading counter: uptime = \2\674
d de\socket/server.hpp:126 Binding to: [::]:5666(ipv6)
d de\socket/server.hpp:162 Attempting to bind to: :5666
d de\socket/server.hpp:121 Binding to: 0.0.0.0:5666(ipv4)
d de\socket/server.hpp:162 Attempting to bind to: :5666
d rvice\NSClient++.cpp:844 Loading plugin: NSClient server
d r\NSClientServer.cpp:139 Allowed hosts definition: 10.82.29.40(255.255.255.255)
d de\socket/server.hpp:126 Binding to: [::]:12489(ipv6)
d de\socket/server.hpp:162 Attempting to bind to: :12489
d de\socket/server.hpp:121 Binding to: 0.0.0.0:12489(ipv4)
d de\socket/server.hpp:162 Attempting to bind to: :12489
d rvice\NSClient++.cpp:616 NSClient++ - 0,4,1,105 2014-04-28 Started!
l ce\simple_client.hpp:32 Enter command to inject or exit to terminate...

d rvice\NSClient++.cpp:960 Injecting: ...
NOT FOUND
e rvice\NSClient++.cpp:980 No handler for command: avalible commands: commands {, alias_cpu, alias_file_age, alias_file_size
_process_stopped, alias_sched_all, alias_sched_long, alias_sched_task, alias_service_ex, alias_umbral, alias_updates_2k8, chec
ck_pdh, check_process, check_registry, check_service, check_uptime, check_uptime_args, checkalwayscritical, checkalwaysok, che
eckeventlog, checkfile2, checkfiles, checkfilesize, checkmem, checkmultiple, checkok, checkprocstate, checkservicestate, check
ivalue, kill_java, listcounterinstances, shedule_nagios_downtime, startservice, stopservice, test}, plugins {, 0, 1, 2, 3, 4,
l ce\simple_client.hpp:74 No handler for command:
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: can't read *log

Post by jolson »

Please post your ns*.ini file (it may be called something different between versions).

It sounds like your definition is correct, but I would like to double check it.

What is the output of your perl script if you run it from the Windows command line?

Code: Select all

C:\Windows\system32>"C:\Perl64\bin\perl.exe" -p "ERROR" -l "path" -c 1
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
ariarlet
Posts: 61
Joined: Wed Apr 22, 2015 11:04 am

Re: can't read *log

Post by ariarlet »

Sorry guys


I've fixed the problem. Nagios wanted to open folders instead of the remote.


Thank all you
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: can't read *log

Post by jolson »

No problem - I'll lock this thread. Feel free to open a new one for any problems or questions you have. Thanks!
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
Locked