Page 2 of 5

Re: could not fetch information from server

Posted: Fri Jul 21, 2017 10:13 am
by michelk
and when i run this
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios/nagios.cfg


find on the picture the output

Re: could not fetch information from server

Posted: Fri Jul 21, 2017 10:31 am
by tgriep
The apply config error is caused by a misconfiguration in the following file so you would need to view it and fix the error or post it so we can see it.

Code: Select all

/usr/local/nagios/etc/commands.cfg
There is a typo in the verification command, use this instead

Code: Select all

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
It could be that the error in the commands.cfg file are causing that host to fail but is could be that the password in the nsclient.ini file does not match the password in the checks defined in Nagios XI.
Edit those services and make sure that $ARG1$ has this for the password.

Code: Select all

alize456
After fixing the error and changing the password, let us know if it works now.

Re: could not fetch information from server

Posted: Mon Jul 24, 2017 5:12 am
by michelk
cab i please be assisted on the regard bellow

Re: could not fetch information from server

Posted: Mon Jul 24, 2017 1:53 pm
by tgriep
Can you post your question again? It did not seem to be posted.

Re: could not fetch information from server

Posted: Thu Jul 27, 2017 10:16 am
by michelk
when i run /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

see attached the output. do you see any problem?

i still cannot apply the configuration from nagios CCM

i have attached the ini configuration as well as the display of one of the unknown service on nagios

please see if anything need to be done or if you need more information.

thank you

Re: could not fetch information from server

Posted: Thu Jul 27, 2017 10:17 am
by michelk
# 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.0.0.1,192.***.***.***,192.***.*.**,***.***.*.**


; 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

; Undocumented key
WEBSErver = 1

; Undocumented key
NRPEServer = 1


; TODO
[/settings/log]
file name = nsclient.log
level = debug

Re: could not fetch information from server

Posted: Thu Jul 27, 2017 12:34 pm
by tgriep
The nagios verification looks good from the command line but if you are still having issues Applying the Config in the XI GUI, run the following procedure to fix those errors.

Go to the Core Config Manager
Under "Tools", click "Write Config Files" or if you are running a newer versions of XI, The menu is called "Config File Management"
Click the click the "Write" button, then the "Delete" button then click the "Write" button and then the "Verify" button
If you get any errors, resolve them and click on the "Delete" button, "Write", "Verify" until all of the errors are resolved.
Click the Apply Configuration link and click the "Apply Configuration" button after all of the errors are resolved.

The nsclient.ini file looks OK as well as the Service check in XI so I would guess that the Windows server could be blocking port 12489, make sure it is open on the server.
If you still have any errors, please screen capture them and post it so we can see the error.

Re: could not fetch information from server

Posted: Fri Jul 28, 2017 1:56 am
by michelk
thank you so much,

i went on write conf, then delete , write and verify
please find below the capture of the output seems like there is two errors, could you please show me how tho resolve this.

thank you

Re: could not fetch information from server

Posted: Fri Jul 28, 2017 2:28 am
by michelk
While doing research I have also tried to run the following /usr/local/nagiosxi/scripts/reset_config_perms

and here is the output not sure what is it put after this i tried to run tail -f /usr/local/nagiosxi/var/cmdsubsys.log
and for this one i got the second output below,it's keeps on generating the same thing and i had to stop by just restarting the vm please find attached that output and n ot that it's was diplaying over and over again non stop,

Re: could not fetch information from server

Posted: Fri Jul 28, 2017 5:40 am
by michelk
can you please help me?