NSClient - ERROR: No performance data in Windows host
NSClient - ERROR: No performance data in Windows host
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.
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
Could you try running this through the command? Is it producing the same result?
Show us the output, thanks!
Otherwise, what is the definition for check_nt looking like?
Something like this or different?
Code: Select all
usr/local/nagios/libexec/check_nt -H <WindowsHostIP> -s 'yourpasswordifany' -p 12489 -v MEMUSE -w 80 -c 90
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
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.
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
Sorry, that was my fault.
I forgot the slash. Try it again, thank you!
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
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
[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
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.
CheckExternalScripts = 1
CheckHelpers = 1
CheckEventLog = 1
CheckNSCP = 1
CheckDisk = 1
CheckSystem = 1
Restart the nsclient service and then test again.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: NSClient - ERROR: No performance data in Windows host
You might have to add this to the nsclient.ini file as well as what @cdienger said.
It could be that the NSClient++ agent defaults the performance data output to off so this will enable it.
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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: NSClient - ERROR: No performance data in Windows host
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
NSCLIENT.INI TEXT:
@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
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
-
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: NSClient - ERROR: No performance data in Windows host
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.
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
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.
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.