Page 1 of 2
NSClient - ERROR: No performance data in Windows host
Posted: Wed Dec 27, 2017 10:17 am
by krismvp
Hi,
I have just intalled NAGIOS CORE 4.34 in my centos 6. I want to check some parameters of my windows and linux hosts. I use NSCLIENT ++0.5.1.44 to collect the parameters in windows.
Everything seems ok but i can´t see some services that i want.
I have 2 windows, 1 linux (localhost), and 1 switch.
I dont know why but in windows hosts i have problems to collect CPU, STORAGE,MEMORY USAGE, NSCLIENT++ VERSION AND UPTIME. However i have no problems with linux or switches.
The message in the nagios website shows:
NSClient - ERROR: No performance data from command: check_drivesize
NSClient - ERROR: No performance data from command: check_cpu
NSClient - ERROR: No performance data from command: xxxxxxxxxxxxxxxx
PHOTO:
https://ibb.co/c3X1zw
MY CONFIGURATION to windows
PHOTO:
https://ibb.co/mKVMzw
I dont see any errors
PHOTO:
https://ibb.co/ncV1XG
Why all parameters excep ping is not working in windows?
Many thanks mates.
Re: NSClient - ERROR: No performance data in Windows host
Posted: Wed Dec 27, 2017 1:01 pm
by kyang
Could you try running this through the command? Is it producing the same result?
Code: Select all
usr/local/nagios/libexec/check_nt -H <WindowsHostIP> -s 'yourpasswordifany' -p 12489 -v MEMUSE -w 80 -c 90
Show us the output, thanks!
Otherwise, what is the definition for
check_nt looking like?
Something like this or different?
Code: Select all
# 'check_nt' command definition
define command{
command_name check_nt
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v $ARG1$ $ARG2$
Re: NSClient - ERROR: No performance data in Windows host
Posted: Thu Dec 28, 2017 3:27 am
by krismvp
Hi,
1- I dont have password to recollect the information of Windows hosts. So its not necesary to put password sentence
So, when I put the command can´t find the path or folder.
IMAGE:
https://ibb.co/gKGtEw
2-
Yes i have
check_nt like you tell me.
Code: Select all
# 'check_nt' command definition
define command{
command_name check_nt
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v $ARG1$ $ARG2$
}
Re: NSClient - ERROR: No performance data in Windows host
Posted: Thu Dec 28, 2017 10:20 am
by kyang
Sorry, that was my fault.
I forgot the slash. Try it again, thank you!
Code: Select all
/usr/local/nagios/libexec/check_nt -H <WindowsHostIP> -p 12489 -v MEMUSE -w 80 -c 90
Re: NSClient - ERROR: No performance data in Windows host
Posted: Fri Dec 29, 2017 2:46 am
by krismvp
Hi,
[root@localhost ~]# /usr/local/nagios/libexec/check_nt -H
IP -p 12489
NSClient - ERROR: No performance data from command: check_memory
I attach my nsclient.ini document text in windows hosts
Code: Select all
# If you want to fill this file with all available 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
; in flight - TODO
[/settings/default]
; Undocumented key
allowed hosts = 172.16.2.26
; in flight - TODO
[/settings/NRPE/server]
; Undocumented key
ssl options = no-sslv2,no-sslv3
; Undocumented key
verify mode = peer-cert
; Undocumented key
insecure = false
; in flight - TODO
[/modules]
; Undocumented key
CheckExternalScripts = disabled
; Undocumented key
CheckHelpers = disabled
; Undocumented key
CheckEventLog = disabled
; Undocumented key
CheckNSCP = disabled
; Undocumented key
CheckDisk = disabled
; Undocumented key
CheckSystem = disabled
; Undocumented key
NSClientServer = enabled
; Undocumented key
NRPEServer = enabled
Re: NSClient - ERROR: No performance data in Windows host
Posted: Fri Dec 29, 2017 11:37 am
by cdienger
Edit the configuration to enable the following modules:
CheckExternalScripts = 1
CheckHelpers = 1
CheckEventLog = 1
CheckNSCP = 1
CheckDisk = 1
CheckSystem = 1
Restart the nsclient service and then test again.
Re: NSClient - ERROR: No performance data in Windows host
Posted: Fri Dec 29, 2017 11:42 am
by tgriep
You might have to add this to the nsclient.ini file as well as what
@cdienger said.
Code: Select all
[/settings/NSClient/server]
; PERFORMANCE DATA - Send performance data back to Nagios (set this to 0 to remove all performance data).
performance data = 1
It could be that the NSClient++ agent defaults the performance data output to off so this will enable it.
Re: NSClient - ERROR: No performance data in Windows host
Posted: Sat Dec 30, 2017 7:54 pm
by krismvp
Thanks.
@cdienger
Error is the same after that
NSClient - ERROR: No performance data from command: XXXXXXXXXXXXXXXX
https://ibb.co/jDDBnG
I can only view ping and nsclient. Others: NSClient - ERROR: No performance data from command
Code: Select all
[root@localhost objects]
# /usr/local/nagios/libexec/check_nt -H 172.16.2.145 -p 12489 -v MEMUSE -w 80 -c 90
#NSClient - ERROR: No performance data from command: check_memory
NSCLIENT.INI TEXT:
Code: Select all
# If you want to fill this file with all available 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
[/settings/NSClient/server]
; PERFORMANCE DATA - Send performance data back to Nagios (set this to 0 to remove all performance data).
performance data = 1
; in flight - TODO
[/settings/default]
; Undocumented key
allowed hosts = 172.16.2.26
; in flight - TODO
[/settings/NRPE/server]
; Undocumented key
ssl options = no-sslv2,no-sslv3
; Undocumented key
verify mode = peer-cert
; Undocumented key
insecure = false
; in flight - TODO
[/modules]
; Undocumented key
CheckExternalScripts = disabled
; Undocumented key
CheckHelpers = disabled
; Undocumented key
CheckEventLog = disabled
; Undocumented key
CheckNSCP = disabled
; Undocumented key
CheckDisk = disabled
; Undocumented key
CheckSystem = disabled
; Undocumented key
NSClientServer = enabled
; Undocumented key
NRPEServer = enabled
Re: NSClient - ERROR: No performance data in Windows host
Posted: Mon Jan 01, 2018 5:45 pm
by dwhitfield
Before this thread gets too far, have you considered NCPA rather than NSClient? We don't work on NSClient and do not support the 0.5 series, only 0.4. NCPA is something that we wrote. You can download the Windows version at
https://www.nagios.org/ncpa/#downloads
If you want to keep on with NSClient, can you attach your nsclient.log? It'll be in the NSClient install directory.
Re: NSClient - ERROR: No performance data in Windows host
Posted: Wed Jan 03, 2018 9:04 am
by krismvp
Hi,
Thanks for the info. It works with NSClient++ 0.4.3.143 version! I really appreciated.
Can you tell me how can I do the same thing for Unix system for Nagios Core?
Thanks
Regards.