Network 8.4 on Windows + Nagios XI
-
biswajit.banerjee
- Posts: 152
- Joined: Fri Dec 08, 2017 10:24 pm
Network 8.4 on Windows + Nagios XI
Hi Support ,
We are stuck with Network 8.4 on Windows + Nagios XI . Any suitable Plugin with documentation .
we have tried https://exchange.nagios.org/directory/P ... PE/details
Kindly help .
TIA
Regards
Biswajit
We are stuck with Network 8.4 on Windows + Nagios XI . Any suitable Plugin with documentation .
we have tried https://exchange.nagios.org/directory/P ... PE/details
Kindly help .
TIA
Regards
Biswajit
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Network 8.4 on Windows + Nagios XI
Sorry, I am not familiar with Network 8.4.
What are you trying to accomplish?
What are you trying to accomplish?
-
biswajit.banerjee
- Posts: 152
- Joined: Fri Dec 08, 2017 10:24 pm
Re: Network 8.4 on Windows + Nagios XI
My Apologies , It is Dell EMC Networker .
We are trying to monitor windows networker backup server job status .
We are trying to monitor windows networker backup server job status .
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Network 8.4 on Windows + Nagios XI
And did the plugin not get you what you need? Looks like it was designed to run under NSClient++
I see the description has this
which should really be
I see the description has this
Code: Select all
check_networker_job=c:exploitscriptsstartallnagiosCheck_Networker_Job.cmd $ARG1$Code: Select all
check_networker_job=c:\full\path\to\script\Check_Networker_Job.cmd $ARG1$-
biswajit.banerjee
- Posts: 152
- Joined: Fri Dec 08, 2017 10:24 pm
Re: Network 8.4 on Windows + Nagios XI
The plugin is failing to give output .
# ./check_nrpe -H IP -c checknetworkerjob
The command (checknetworkerjob) returned an invalid return code: 255
# ./check_nrpe -H IP -c checknetworkerjob
The command (checknetworkerjob) returned an invalid return code: 255
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Network 8.4 on Windows + Nagios XI
can you share your nsclient configuration?
Also, can you confirm the plugin works if you run it from the command line on the windows server?
Also, can you confirm the plugin works if you run it from the command line on the windows server?
-
biswajit.banerjee
- Posts: 152
- Joined: Fri Dec 08, 2017 10:24 pm
Re: Network 8.4 on Windows + Nagios XI
nsclient.ini
______________________________________________________
Code: Select all
# If you want to fill this file with all avalible options run the following command:
# nscp settings --generate --add-defaults --load-all
# If you want to activate a module and bring in all its options use:
# nscp settings --activate-module <MODULE NAME> --add-defaults
# For details run: nscp settings --help
; Undocumented section
[/settings/default]
; Undocumented key
password = public
; Undocumented key
allowed hosts = 127.0.0.1,::1, 172.16.5.78
port = 12489
; Undocumented section
[/settings/NRPE/server]
allow arguments = true
; Undocumented key
ssl options = no-sslv2,no-sslv3
; Undocumented key
verify mode = none
; Undocumented key
insecure = true
; Undocumented section
[/modules]
; Undocumented key
CheckExternalScripts = enabled
; Undocumented key
CheckHelpers = 1
; Undocumented key
CheckEventLog = 1
; Undocumented key
CheckNSCP = 1
; Undocumented key
CheckDisk = 1
; Undocumented key
CheckSystem = 1
; Undocumented key
NSClientServer = 1
; Undocumented key
NRPEServer = enabled
[/settings/external scripts]
allow arguments = true
[/settings/external scripts/scripts]
checknetworkerjob=scripts\Check_Networker_Job.bat EVS01CRS01
time=scripts\time.bat
[/settings/log]
file name = nsclient.log
level = debugCode: Select all
C:\Program Files\NSClient++>nscp test
L client Module: CommandClient
L client Command:
L client Extra Query:
L client Mode: 3
L client Boot: 1
L client Load All: 0
L client Warning module and boot specified only THAT module will be loaded
L client Arguments:
D core NSClient++ 0.4.4.23 2016-04-05 x64 Loading settings and logger...
D core Settings not ready so we cant lookup: base-path
D core Settings not ready so we cant lookup: exe-path
D settings Boot.ini found in: C:\Program Files\NSClient++/boot.ini
D core Settings not ready so we cant lookup: shared-path
D settings Activating: ini://${shared-path}/nsclient.ini
D settings Creating instance for: ini://${shared-path}/nsclient.ini
D core Settings not ready so we cant lookup: shared-path
D settings Loading: C:\Program Files\NSClient++/nsclient.ini
D core NSClient++ 0.4.4.23 2016-04-05 x64 booting...
D core Booted settings subsystem...
D core On crash: restart: NSCP
D core Archiving crash dumps in: C:\Program Files\NSClient++/crash-dumps
D core booting::loading plugins
D core Found: CheckDisk
D core Found: CheckEventLog
D core Found: CheckExternalScripts
D core Found: CheckHelpers
D core Found: CheckNSCP
D core Found: CheckSystem
D core Found: NRPEServer
D core Found: NSClientServer
D core C:\Program Files\NSClient++/modules\CheckDisk.dll.dll
D core adding C:\Program Files\NSClient++/modules\CheckDisk.dll
D core C:\Program Files\NSClient++/modules\CheckEventLog.dll.dll
D core adding C:\Program Files\NSClient++/modules\CheckEventLog.dll
D core C:\Program Files\NSClient++/modules\CheckExternalScripts.dll.dll
D core adding C:\Program Files\NSClient++/modules\CheckExternalScripts.dll
D core C:\Program Files\NSClient++/modules\CheckHelpers.dll.dll
D core adding C:\Program Files\NSClient++/modules\CheckHelpers.dll
D core C:\Program Files\NSClient++/modules\CheckNSCP.dll.dll
D core adding C:\Program Files\NSClient++/modules\CheckNSCP.dll
D core C:\Program Files\NSClient++/modules\CheckSystem.dll.dll
D core adding C:\Program Files\NSClient++/modules\CheckSystem.dll
D core C:\Program Files\NSClient++/modules\NRPEServer.dll.dll
D core adding C:\Program Files\NSClient++/modules\NRPEServer.dll
D core C:\Program Files\NSClient++/modules\NSClientServer.dll.dll
D core adding C:\Program Files\NSClient++/modules\NSClientServer.dll
D core Loading plugin: CheckDisk
D core Loading plugin: CheckEventLog
D core Loading plugin: CheckExternalScripts
D ext-script No aliases found (adding default)
D core Loading plugin: CheckHelpers
D core Loading plugin: CheckNSCP
D check_nscp Crash folder is: C:\Program Files\NSClient++
D core Loading plugin: CheckSystem
D core Loading plugin: NRPEServer
D nrpe Allowed hosts definition: 127.0.0.1(255.255.255.255), 172.16.5.78(255.255.255.255), ::1(ffff:ffff:ffff:ffff:ffff:ffff:ff
ff:ffff)
D nrpe Binding to: [::]:5666(ipv6)
D nrpe Attempting to bind to: [::]:5666(ipv6)
D nrpe Binding to: 0.0.0.0:5666(ipv4), reopen: true, reuse: true
D nrpe Attempting to bind to: 0.0.0.0:5666(ipv4)
D core Loading plugin: NSClientServer
D check_nt Allowed hosts definition: 127.0.0.1(255.255.255.255), 172.16.5.78(255.255.255.255), ::1(ffff:ffff:ffff:ffff:ffff:ffff:ff
ff:ffff)
D check_nt Binding to: [::]:12489(ipv6)
D check_nt Attempting to bind to: [::]:12489(ipv6)
D check_nt Binding to: 0.0.0.0:12489(ipv4), reopen: true, reuse: true
D check_nt Attempting to bind to: 0.0.0.0:12489(ipv4)
D core NSClient++ - 0.4.4.23 2016-04-05 Started!
D core C:\Program Files\NSClient++/modules\CommandClient.dll.dll
D core adding C:\Program Files\NSClient++/modules\CommandClient.dll
D core Loading plugin: CommandClient.dll...
D cli Enter command to execute, help for help or exit to exit...
checknetworkerjob
D ext-script Command line: scripts\Check_Networker_Job.bat EVS01CRS01
L cli UNKNOWN: The command (checknetworkerjob) returned an invalid return code: 255
Last edited by tmcdonald on Fri Jun 15, 2018 9:25 am, edited 1 time in total.
Reason: Please use [code][/code] tags around long output
Reason: Please use [code][/code] tags around long output
Re: Network 8.4 on Windows + Nagios XI
What is the output if you run the command directly on the Windows server:
Check_Networker_Job.bat EVS01CRS01
?
Also, you may need to change the nsclient.ini line:
checknetworkerjob=scripts\Check_Networker_Job.bat EVS01CRS01
to:
checknetworkerjob=scripts\\Check_Networker_Job.bat EVS01CRS01
or as @scottwilkerson mentioned:
checknetworkerjob=c:\full\path\to\script\Check_Networker_Job.cmd EVS01CRS01
Check_Networker_Job.bat EVS01CRS01
?
Also, you may need to change the nsclient.ini line:
checknetworkerjob=scripts\Check_Networker_Job.bat EVS01CRS01
to:
checknetworkerjob=scripts\\Check_Networker_Job.bat EVS01CRS01
or as @scottwilkerson mentioned:
checknetworkerjob=c:\full\path\to\script\Check_Networker_Job.cmd EVS01CRS01
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
biswajit.banerjee
- Posts: 152
- Joined: Fri Dec 08, 2017 10:24 pm
Re: Network 8.4 on Windows + Nagios XI
Hi,
We have checked by both command as you suggested. But getting same output.
checknetworkerjob=scripts\\Check_Networker_Job.bat EVS01CRS01
And
checknetworkerjob=C:\Program Files\NSClient++\scripts\Check_Networker_Job.bat EVS01CRS01
Please suggest how we can resolve this error.
# ./check_nrpe -H IP -c checknetworkerjob
The command (checknetworkerjob) returned an invalid return code: 255
We have checked by both command as you suggested. But getting same output.
checknetworkerjob=scripts\\Check_Networker_Job.bat EVS01CRS01
And
checknetworkerjob=C:\Program Files\NSClient++\scripts\Check_Networker_Job.bat EVS01CRS01
Please suggest how we can resolve this error.
# ./check_nrpe -H IP -c checknetworkerjob
The command (checknetworkerjob) returned an invalid return code: 255
Re: Network 8.4 on Windows + Nagios XI
Open a command line on the Windows server and navigate to the location of the script:
cd C:\Program Files\NSClient++\scripts\
run:
Check_Networker_Job.bat EVS01CRS01
and provide the output.
cd C:\Program Files\NSClient++\scripts\
run:
Check_Networker_Job.bat EVS01CRS01
and provide the output.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.