Hi,
Good day to you.
I am having an issue whereby I am not able to add several DR servers to my primary Nagios xi.
We have checked on all the firewall rules and it is set to allowed already.
We are able to ping from primary Nxi to Secondary Nxi successfully which has pass through ASA but there is no reply from Secondary Nxi.
Attached are one of the Primary CBJ server which also could not be added to Primary Nxi even though other servers with the same range can be added.
Conclusion:
1) Not able to add some DR servers (192.168.200.xx) to Primary Nxi server (192.168.100.xx)
- We able to add one server which on the same segmentation (192.168.200.xx) to Primary Nxi successfully and have checked Firewall rules
which are set to allow for that segmentation but not able to add other similar servers
2) Able to ping from primary Nxi to Secondary Nxi successfully which has pass through ASA but there is no reply from Secondary Nxi.
3) Attached one Primary CBJ server which also could not be added to Primary Nxi even though other servers with the same range can be added.
Please do advise if you need more information on this issue.
Regards,
Phaandiyan Anparasan
Not able to add several Host (servers) in Nagios xi
-
- Posts: 13
- Joined: Tue Apr 06, 2021 11:56 pm
Not able to add several Host (servers) in Nagios xi
You do not have the required permissions to view the files attached to this post.
-
- Posts: 1288
- Joined: Tue Jun 01, 2021 1:27 pm
Re: Not able to add several Host (servers) in Nagios xi
Hello @phaandiyan2412
Thanks for reaching out, appears that you have made all the necessary adjustments to the firewall but no response. Sounds like this could be a permissions issue and was want to find out what you see in the Windows Event logs for messages related?
Here is a support article that outlines wmic user permissions, and this one provides additional information on things to verify: Please provide the results on what you find so we can provide further assistance on this.
Thanks,
Perry
Thanks for reaching out, appears that you have made all the necessary adjustments to the firewall but no response. Sounds like this could be a permissions issue and was want to find out what you see in the Windows Event logs for messages related?
Here is a support article that outlines wmic user permissions, and this one provides additional information on things to verify: Please provide the results on what you find so we can provide further assistance on this.
Thanks,
Perry
-
- Posts: 13
- Joined: Tue Apr 06, 2021 11:56 pm
Re: Not able to add several Host (servers) in Nagios xi
Hi,
We have checked from the server perspective as well and there is no permission issue from the server side.
All looks good. There is no information either on Windows Event log of any issues.
Regards,
Phaandiyan Anparasan
We have checked from the server perspective as well and there is no permission issue from the server side.
All looks good. There is no information either on Windows Event log of any issues.
Regards,
Phaandiyan Anparasan
-
- Posts: 1288
- Joined: Tue Jun 01, 2021 1:27 pm
Re: Not able to add several Host (servers) in Nagios xi
Hello @phaandiyan2412
Thanks for following up, let's take a look at XPUT curl command to see what it is telling us when adding the 'host'.
Example:
You can example here:
Perry
Thanks for following up, let's take a look at XPUT curl command to see what it is telling us when adding the 'host'.
Example:
Code: Select all
curl -XPUT --verbose "http://yournagiosserveraddresshere/nagiosxi/api/v1/config/host/testapihost?apikey=yourapikeyhere&pretty=1&address=addressofnewhosttoaddhere¬ification_interval=30&applyconfig=1"
- Help > Config Reference > API - Config Reference --Hosts --- PUT config/hot/<hostname>
Perry
-
- Posts: 13
- Joined: Tue Apr 06, 2021 11:56 pm
Re: Not able to add several Host (servers) in Nagios xi
Hi,
I have ran the command and pasted the attachment here for your reference.
Please take a look and advise.
The script as below:
curl -XPUT --verbose "http://192.168.100.xx/nagiosxi/api/v1/c ... lyconfig=1"
Regards,
PA
I have ran the command and pasted the attachment here for your reference.
Please take a look and advise.
The script as below:
curl -XPUT --verbose "http://192.168.100.xx/nagiosxi/api/v1/c ... lyconfig=1"
Regards,
PA
You do not have the required permissions to view the files attached to this post.
-
- Posts: 1288
- Joined: Tue Jun 01, 2021 1:27 pm
Re: Not able to add several Host (servers) in Nagios xi
Hello @phaandiyan2412
Thanks for following up with the results, and want to take a look at your Nagios xi System Profile so we can see what is going on.
To send us your system profile.
Perry
Thanks for following up with the results, and want to take a look at your Nagios xi System Profile so we can see what is going on.
To send us your system profile.
- Login to the Nagios xi GUI using a web browser.
- Click the "Admin" > "System Profile" Menu
- Click the "Download Profile" button
- Save the profile.zip file and send via Private Message
Perry
-
- Posts: 1288
- Joined: Tue Jun 01, 2021 1:27 pm
Re: Not able to add several Host (servers) in Nagios xi
Hello @phaandivan2412
Thanks for sending along the System Profile, we see database errors and want you to run through the database repair and reindexing configs by doing the following:
[*]verify that the host and services look good and verify that there are no errors in core by:[/*]
Issue persists, please PM your system profile for us to review updates.
To send us your system profile.
Perry
Thanks for sending along the System Profile, we see database errors and want you to run through the database repair and reindexing configs by doing the following:
- run through the database repair. [list]
Code: Select all
/usr/local/nagiosxi/scripts/repair_databases.sh
- rm -rf /usr/local/nagios/etc/import/*
- 1: Terminal command list all running /bin/nagios -> ps -aux | grep -E '/bin/nagios'
- 2: Terminal command -> killall -9 nagios (or pkill nagios)
- 3: Terminal command check to see if /bin/nagios processes are stopped
- 4: Restart nagios.service by terminal command: systemctl restart nagios
- 5: Head over to the Nagios xi web console ==> Core Configuration Manager (CCM) ==> Config File Management ==> [Delete Files] ==> [Write Files] ==> [Verify Files]
- 6: Core Configuration Manager (CCM) ==> Under Quick Tools ==> "Apply Configuration"
- 7: Restart nagios.service by terminal command: systemctl restart nagios [list]
Code: Select all
systemctl restart nagios
[*]verify that the host and services look good and verify that there are no errors in core by:[/*]
Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Issue persists, please PM your system profile for us to review updates.
To send us your system profile.
- Login to the Nagios xi GUI using a web browser.
- Click the "Admin" > "System Profile" Menu
- Click the "Download Profile" button
- Save the profile.zip file and share
Perry
-
- Posts: 13
- Joined: Tue Apr 06, 2021 11:56 pm
Re: Not able to add several Host (servers) in Nagios xi
Hi,
I have run through Database repair and can confirm that the repair succeeded.
I have re-indexed CCM configs as well. Once completed the steps above, I have verified that there is no error on core.
- Fixing index 2
- Fixing index 3
- Fixing index 4
- Fixing index 5
- Fixing index 6
---------
- recovering (with sort) MyISAM-table 'nagios_timeperiods'
Data records: 16
- Fixing index 1
- Fixing index 2
---------
- recovering (with sort) MyISAM-table 'nagios_timeperiod_timeranges'
Data records: 89
- Fixing index 1
- Fixing index 2
/home/centos
===============
REPAIR COMPLETE
===============
DATABASE: nagiosql
TABLE:
/var/lib/mysql/nagiosql /home/centos
DATABASE: nagiosxi
TABLE:
/var/lib/mysql/nagiosxi /home/centos
=======================
nagios database repair succeeded
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Nagios Core 4.4.6
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2020-04-28
License: GPL
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Read object config files okay...
Running pre-flight check on configuration data...
Checking objects...
Checked 1494 services.
Checked 103 hosts.
Checked 6 host groups.
Checked 0 service groups.
Checked 9 contacts.
Checked 2 contact groups.
Checked 138 commands.
Checked 16 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 103 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 16 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 0
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
I tried adding back but I still having the same issue.
PS: I can telnet (135) to the DR servers from Nxi without any issues so It is not related to Firewall.
There is no permission issue as well from the server side.
Regards,
Phaandiyan Anparasan
I have run through Database repair and can confirm that the repair succeeded.
I have re-indexed CCM configs as well. Once completed the steps above, I have verified that there is no error on core.
- Fixing index 2
- Fixing index 3
- Fixing index 4
- Fixing index 5
- Fixing index 6
---------
- recovering (with sort) MyISAM-table 'nagios_timeperiods'
Data records: 16
- Fixing index 1
- Fixing index 2
---------
- recovering (with sort) MyISAM-table 'nagios_timeperiod_timeranges'
Data records: 89
- Fixing index 1
- Fixing index 2
/home/centos
===============
REPAIR COMPLETE
===============
DATABASE: nagiosql
TABLE:
/var/lib/mysql/nagiosql /home/centos
DATABASE: nagiosxi
TABLE:
/var/lib/mysql/nagiosxi /home/centos
=======================
nagios database repair succeeded
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Nagios Core 4.4.6
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2020-04-28
License: GPL
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Read object config files okay...
Running pre-flight check on configuration data...
Checking objects...
Checked 1494 services.
Checked 103 hosts.
Checked 6 host groups.
Checked 0 service groups.
Checked 9 contacts.
Checked 2 contact groups.
Checked 138 commands.
Checked 16 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 103 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 16 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 0
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
I tried adding back but I still having the same issue.
PS: I can telnet (135) to the DR servers from Nxi without any issues so It is not related to Firewall.
There is no permission issue as well from the server side.
Regards,
Phaandiyan Anparasan
-
- Posts: 13
- Joined: Tue Apr 06, 2021 11:56 pm
Re: Not able to add several Host (servers) in Nagios xi
Hi,
I have checked the Windows Firewall rule and permissions on the server and its good with all enabled as attached for the secondary server.
Regards,
Phaandiyan Anparasan
I have checked the Windows Firewall rule and permissions on the server and its good with all enabled as attached for the secondary server.
Regards,
Phaandiyan Anparasan
You do not have the required permissions to view the files attached to this post.
-
- Posts: 1288
- Joined: Tue Jun 01, 2021 1:27 pm
Re: Not able to add several Host (servers) in Nagios xi
Hello Phaandiyan Anparasan,
Thanks for reaching out and would like to take a look at your Nagios xi System Profile so we can see what is going on.
To send us your system profile.
Then send the resulting /usr/local/nagiosxi/var/components/profile.zip file via Private Message.
Thanks,
Perry
Thanks for reaching out and would like to take a look at your Nagios xi System Profile so we can see what is going on.
To send us your system profile.
- Login to the Nagios xi GUI using a web browser.
- Click the "Admin" > "System Profile" Menu
- Click the "Download Profile" button
- Save the profile.zip file and send via Private Message
Code: Select all
rm -rf /usr/local/nagiosxi/var/components/profile.zip
/usr/local/nagiosxi/scripts/components/getprofile.sh SUPPORT
Then send the resulting /usr/local/nagiosxi/var/components/profile.zip file via Private Message.
Thanks,
Perry