Good day,
i am having an issue here
some of the services status are Ok but i got about 4 that are Unknown and the status information is could not fetch information from server
can you please assist?
below is the NSClient ini configuration could you also have a look and see if there should be some changes?
thank you
could not fetch information from server
Re: could not fetch information from server
You haven't posted any configs, please upload them so we can review.
Former Nagios employee
Re: could not fetch information from server
this is a copy of my nsclient ini
# 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
; TODO
[/settings/default]
; Undocumented key
password = alize456
; Undocumented key
allowed hosts = 127.*.*.*,192.***.233.***,192.***.*.**,1**.***.*.***,
; TODO
[/settings/NRPE/server]
; Undocumented key
ssl options = no-sslv2,no-sslv3
; Undocumented key
verify mode = peer-cert
; Undocumented key
insecure = false
; TODO
[/modules]
; Undocumented key
CheckExternalScripts = 1
; Undocumented key
CheckHelpers = 1
; Undocumented key
CheckNSCP = 1
; Undocumented key
CheckDisk = 1
; Undocumented key
CheckSystem = 1
; Undocumented key
NSClientServer = 1
; Undocumented key
CheckEventLog = 1
; Undocumented key
NSCAClient = 1
# 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
; TODO
[/settings/default]
; Undocumented key
password = alize456
; Undocumented key
allowed hosts = 127.*.*.*,192.***.233.***,192.***.*.**,1**.***.*.***,
; TODO
[/settings/NRPE/server]
; Undocumented key
ssl options = no-sslv2,no-sslv3
; Undocumented key
verify mode = peer-cert
; Undocumented key
insecure = false
; TODO
[/modules]
; Undocumented key
CheckExternalScripts = 1
; Undocumented key
CheckHelpers = 1
; Undocumented key
CheckNSCP = 1
; Undocumented key
CheckDisk = 1
; Undocumented key
CheckSystem = 1
; Undocumented key
NSClientServer = 1
; Undocumented key
CheckEventLog = 1
; Undocumented key
NSCAClient = 1
Last edited by michelk on Fri Jul 21, 2017 3:38 am, edited 1 time in total.
Re: could not fetch information from server
if there is more needed could you please tell how can i provide you of what you need? am not really familiar with this , would appreciate if you can tell me which command to run or what should i do in order for me to get the information needed
Re: could not fetch information from server
The checks that are failing could be from running the "Windows WMI" or the "Windows SNMP" wizard and not the "Windows Server" wizard which uses the NSClient++ agent.
If the wrong wizard was run, it could generate those errors.
Try deleting those checks and re-run the "Windows Server: Wizard and see if the checks start to function.
If not, can you go in to the Core Config Manager > Services menu and search for that host.
Click on the floppy icon to get the configuration settings and post them here?
If the wrong wizard was run, it could generate those errors.
Try deleting those checks and re-run the "Windows Server: Wizard and see if the checks start to function.
If not, can you go in to the Core Config Manager > Services menu and search for that host.
Click on the floppy icon to get the configuration settings and post them here?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: could not fetch information from server
I have checked and its the Windows Server that is running
beside this error: I am not longer able to apply any configuration
the error I got is: An error occurred while attempting to apply your configuration to Nagios Core. Monitoring engine configuration files have been rolled back to their last known good checkpoint.
could you please advise?
beside this error: I am not longer able to apply any configuration
the error I got is: An error occurred while attempting to apply your configuration to Nagios Core. Monitoring engine configuration files have been rolled back to their last known good checkpoint.
could you please advise?
Re: could not fetch information from server
###############################################################################
#
# Service configuration file
#
# Created by: Nagios Core Config Manager 2.6.7
# Date: 2017-07-21 10:24:07
# Version: Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios CCM will overwrite all manual settings during the next update if you
# would like to edit files manually, place them in the 'static' directory or
# import your configs into the CCM by placing them in the 'import' directory.
#
###############################################################################
define service {
host_name My host
service_description BTSNTSvc.exe
use xiwizard_windowsserver_nsclient_service
display_name BizTalk
check_command check_xi_service_nsclient!!PROCSTATE!-l BTSNTSvc.exe -d SHOWALL!!!!!
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard windowsserver
register 1
}
define service {
host_name NPS Pr adm
service_description CPU Usage
use xiwizard_windowsserver_nsclient_service
check_command check_xi_service_nsclient!111111!CPULOAD!-l 5,80,90
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard windowsserver
register 1
}
define service {
host_name NPS Pr adm
service_description Drive C: Disk Usage
use xiwizard_windowsserver_nsclient_service
check_command check_xi_service_nsclient!111111!USEDDISKSPACE!-l C -w 80 -c 95
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard windowsserver
register 1
}
define service {
host_name NPS Pr adm
service_description Explorer
use xiwizard_windowsserver_nsclient_service
check_command check_xi_service_nsclient!111111!PROCSTATE!-l explorer.exe -d SHOWALL
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard windowsserver
register 1
}
define service {
host_name NPS Pr adm
service_description IIS Web Server
use xiwizard_windowsserver_nsclient_service
check_command check_xi_service_nsclient!111111!SERVICESTATE!-l W3SVC -d SHOWALL
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard windowsserver
register 1
}
define service {
host_name NPS Pr adm
service_description Logon Errors
use xiwizard_windowsserver_nsclient_service
check_command check_xi_service_nsclient!111111!COUNTER!-l "\\Server\\Errors Logon","Login Errors since last reboot is %.f" -w 2 -c 20
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard windowsserver
register 1
}
define service {
host_name NPS Pr adm
service_description Memory Usage
use xiwizard_windowsserver_nsclient_service
check_command check_xi_service_nsclient!111111!MEMUSE!-w 80 -c 90
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard windowsserver
register 1
}
define service {
host_name NPS Pr adm
service_description Ping
use xiwizard_windowsserver_ping_service
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard windowsserver
register 1
}
define service {
host_name NPS Pr adm
service_description SQL Server
use xiwizard_windowsserver_nsclient_service
check_command check_xi_service_nsclient!111111!SERVICESTATE!-l MSSQLSERVER -d SHOWALL!!!!!
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard windowsserver
register 1
}
define service {
host_name NPS Pr adm
service_description Uptime
use xiwizard_windowsserver_nsclient_service
check_command check_xi_service_nsclient!111111!UPTIME
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard windowsserver
register 1
}
###############################################################################
#
# Service configuration file
#
# END OF FILE
#
###############################################################################
#
# Service configuration file
#
# Created by: Nagios Core Config Manager 2.6.7
# Date: 2017-07-21 10:24:07
# Version: Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios CCM will overwrite all manual settings during the next update if you
# would like to edit files manually, place them in the 'static' directory or
# import your configs into the CCM by placing them in the 'import' directory.
#
###############################################################################
define service {
host_name My host
service_description BTSNTSvc.exe
use xiwizard_windowsserver_nsclient_service
display_name BizTalk
check_command check_xi_service_nsclient!!PROCSTATE!-l BTSNTSvc.exe -d SHOWALL!!!!!
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard windowsserver
register 1
}
define service {
host_name NPS Pr adm
service_description CPU Usage
use xiwizard_windowsserver_nsclient_service
check_command check_xi_service_nsclient!111111!CPULOAD!-l 5,80,90
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard windowsserver
register 1
}
define service {
host_name NPS Pr adm
service_description Drive C: Disk Usage
use xiwizard_windowsserver_nsclient_service
check_command check_xi_service_nsclient!111111!USEDDISKSPACE!-l C -w 80 -c 95
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard windowsserver
register 1
}
define service {
host_name NPS Pr adm
service_description Explorer
use xiwizard_windowsserver_nsclient_service
check_command check_xi_service_nsclient!111111!PROCSTATE!-l explorer.exe -d SHOWALL
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard windowsserver
register 1
}
define service {
host_name NPS Pr adm
service_description IIS Web Server
use xiwizard_windowsserver_nsclient_service
check_command check_xi_service_nsclient!111111!SERVICESTATE!-l W3SVC -d SHOWALL
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard windowsserver
register 1
}
define service {
host_name NPS Pr adm
service_description Logon Errors
use xiwizard_windowsserver_nsclient_service
check_command check_xi_service_nsclient!111111!COUNTER!-l "\\Server\\Errors Logon","Login Errors since last reboot is %.f" -w 2 -c 20
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard windowsserver
register 1
}
define service {
host_name NPS Pr adm
service_description Memory Usage
use xiwizard_windowsserver_nsclient_service
check_command check_xi_service_nsclient!111111!MEMUSE!-w 80 -c 90
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard windowsserver
register 1
}
define service {
host_name NPS Pr adm
service_description Ping
use xiwizard_windowsserver_ping_service
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard windowsserver
register 1
}
define service {
host_name NPS Pr adm
service_description SQL Server
use xiwizard_windowsserver_nsclient_service
check_command check_xi_service_nsclient!111111!SERVICESTATE!-l MSSQLSERVER -d SHOWALL!!!!!
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard windowsserver
register 1
}
define service {
host_name NPS Pr adm
service_description Uptime
use xiwizard_windowsserver_nsclient_service
check_command check_xi_service_nsclient!111111!UPTIME
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard windowsserver
register 1
}
###############################################################################
#
# Service configuration file
#
# END OF FILE
#
###############################################################################
- tacolover101
- Posts: 432
- Joined: Mon Apr 10, 2017 11:55 am
Re: could not fetch information from server
there is an error in your configuration somewhere. try running /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios/nagios.cfg (that could be incorrect path depending on your env), and you'll want to work through it.michelk wrote:I have checked and its the Windows Server that is running
beside this error: I am not longer able to apply any configuration
the error I got is: An error occurred while attempting to apply your configuration to Nagios Core. Monitoring engine configuration files have been rolled back to their last known good checkpoint.
could you please advise?
as for your configuration, can you show us a screenshot of the current status listed for your services under the host? it'll help to correlate where the issues are.
Re: could not fetch information from server
can you please check if there are issues with this output and how can i solve it
You do not have the required permissions to view the files attached to this post.