Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
; Undocumented section
[/modules]
; COMMAND ALLOW NASTY META CHARS - This option determines whether or not the we will allow clients to specify nasty (as in |`&><'"\[]{}) characters in arguments.
allow nasty characters = 1
; COMMAND ARGUMENT PROCESSING - This option determines whether or not the we will allow clients to specify arguments to commands that are executed.
allow arguments = 1
; PORT NUMBER - Port to use for NRPE.
port = 5666
; CheckDisk - CheckDisk can check various file and disk related things. The current version has commands to check Size of hard drives and directories.
CheckDisk = 1
; Event log Checker. - Check for errors and warnings in the event log. This is only supported through NRPE so if you plan to use only NSClient this wont help you at all.
CheckEventLog = 1
; Check External Scripts - A simple wrapper to run external scripts and batch files.
CheckExternalScripts = 1
; Undocumented key
CheckExternalScripts.dll = enabled
; Helper function - Various helper function to extend other checks. This is also only supported through NRPE.
CheckHelpers = 1
; Check NSCP - Checkes the state of the agent
CheckNSCP = 1
; CheckSystem - Various system related checks, such as CPU load, process state, service state memory usage and PDH counters.
CheckSystem = 1
; CheckWMI - CheckWMI can check various file and disk related things. The current version has commands to check Size of hard drives and directories.
CheckWMI = 1
; NRPE server - A simple server that listens for incoming NRPE connection and handles them.
NRPEServer = 1
; NSCAClient - Passive check support over NSCA.
NSCAClient = 1
; NSClient server - A simple server that listens for incoming NSClient (check_nt) connection and handles them. Although NRPE is the preferred method NSClient is fully supported and can be used for simplicity or for compatibility.
NSClientServer = 1
I have tried to restart the NSclient but no luck.
Many thanks in advance! /Joakim
Last edited by Joakim.hag on Wed Apr 17, 2013 8:03 am, edited 1 time in total.
C:\Program Files\NSClient++>nscp settings --generate --add-defaults --load-all
e rvice\NSClient++.cpp:347 Failed to register plugin: Could not load library: 126: Det gÕr inte att hitta den angivna modulen.
: C:\Program Files\NSClient++\\modules\allow arguments in file: allow argumentse rvice\NSClient++.cpp:347 Failed to register plugin: Could not load library: 126: Det gÕr inte att hitta den angivna modulen.
: C:\Program Files\NSClient++\\modules\allow nasty characters in file: allow nas
ty characters
e rvice\NSClient++.cpp:347 Failed to register plugin: Could not load library: 14001: Det gÕr inte att starta programmet eftersom dess sida vid sida-konfiguration õr felaktig. Kontrollera hõndelseloggen eller anvõnd kommandoradsverktyget sxstrace.exe f÷r mer information.
: C:\Program Files\NSClient++\\modules\DotnetPlugins.dll in file: DotnetPlugins
e rvice\NSClient++.cpp:347 Failed to register plugin: Could not load library: 126: Det gÕr inte att hitta den angivna modulen.
: C:\Program Files\NSClient++\\modules\PythonScript.dll in file: PythonScript
e rvice\NSClient++.cpp:347 Failed to register plugin: Could not load library: 126: Det gÕr inte att hitta den angivna modulen.
: C:\Program Files\NSClient++\\modules\5666 in file: 5666
e rvice\NSClient++.cpp:563 Exception raised: 'Could not load library: 126: Det gÕr inte att hitta den angivna modulen.
: C:\Program Files\NSClient++\\modules\allow arguments.dll' in module: allow arguments
e rvice\NSClient++.cpp:563 Exception raised: 'Could not load library: 126: Det gÕr inte att hitta den angivna modulen.
: C:\Program Files\NSClient++\\modules\allow nasty characters.dll' in module: allow nasty characters
e rvice\NSClient++.cpp:563 Exception raised: 'Could not load library: 126: Det gÕr inte att hitta den angivna modulen.
: C:\Program Files\NSClient++\\modules\5666.dll' in module: 5666
e service\commands.hpp:95 Adding duplicate command: CheckTaskSchedValue
e service\commands.hpp:95 Adding duplicate command: CheckTaskSchedAdding default values
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Great, let us know what happens! The underscores are definitely needed.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
; Section for NRPE (NRPEListener.dll) (check_nrpe) protocol options.
[/settings/NRPE/server]
; COMMAND ARGUMENT PROCESSING - This option determines whether or not the we will allow clients to specify arguments to commands that are executed.
allow_arguments = true (should it be true or 1)
; COMMAND ALLOW NASTY META CHARS - This option determines whether or not the we will allow clients to specify nasty (as in |`&><'"\[]{}) characters in arguments.
allow_nasty_characters = true (should it be true or 1)
; PORT NUMBER - Port to use for NRPE.
port = 5666
I also tried to downgrade the nsclient to NSCP-0.4.0.183 and run the command "nscp settings --generate ini --add-defaults --load-all" but no difference.
What if I make a fresh install of nsclient. What do I have to do?
Enable allow_nasty_characters and allow_arguments.
To I have to add anything in the modules folder?
I bet it something easy I'm forgetting here... Thanks /Joakim
What if I make a fresh install of nsclient. What do I have to do?
Enable allow_nasty_characters and allow_arguments.
To I have to add anything in the modules folder?
I bet it something easy I'm forgetting here... Thanks /Joakim
This is what I have done.
Reinstalled the latest NSClient
Added the following in the ini file without the underscores. With the underscores I get "Exception processing request: Request contained arguments (not currently allowed, check the allow arguments option)."
; Section for NRPE (NRPEServer.dll) (check_nrpe) protocol options.
[/settings/NRPE/server]
; COMMAND ARGUMENT PROCESSING - This option determines whether or not the we will allow clients to specify arguments to commands that are executed.
allow arguments = true
; COMMAND ALLOW NASTY META CHARS - This option determines whether or not the we will allow clients to specify nasty (as in |`&><'"\[]{}) characters in arguments.
allow nasty characters = true
; PORT NUMBER - Port to use for NRPE.
port = 5666
;# USE SSL SOCKET
; This option controls if SSL should be used on the socket.
use_ssl=1
also added the modules in the ini-file. (dont know if its necessary)
CheckSystem.dll
CheckDisk.dll
CheckExternalScripts.dll
FileLogger.dll
NRPEListener.dll