Page 3 of 5

Re: Email notification and services issue

Posted: Wed Mar 18, 2020 9:44 am
by lmiltchev
I have attached the ncpa.cfg file from Ubuntu 18 for your reference. We need to add the ping service for this agent.
The ncpa.cfg file looks fine. When you run the NCPA wizard, a ping check will be added to the host. If you need a second ping check added (as a service), you could add one under the Core Config Manager (CCM), even though this would be in vain in my opinion.
Regarding Ubuntu 16 there is some issue in this VM and just leave it for now.
The IP address that you were using in the NCPA wizards is NOT the same as the one on your Ubuntu 18 machine... You used 192.168.155.170 instead of 192.168.155.113.
example01.PNG
You can check connectivity by running the following command from the command line on the Nagios XI server:

Code: Select all

curl -k https://192.168.155.113:5693/testconnect/?token=mytoken
If you see the following in the output:

Code: Select all

{
  "value": "Success."
}
this means that you will be able to run the NCPA wizard successfully against your Ubuntu 18 box.

If the connection fails, check your firewall, and make sure port 5693 is open.

Re: Email notification and services issue

Posted: Wed Mar 18, 2020 10:32 am
by mhossain
Hi Jeffery,

IP 192.168.155.113 is for Ubuntu 18 and
IP 192.168.155.170 is for Ubuntu 16

Currently we are focusing on Ubnuntu 18 to be confirmed all the required services work properly on Ubuntu 18. We are skipping Ubuntu 16 due to issue in the server.

I have tested the network connection to the Ubuntu 18 server according to your instruction and it was successful.
When I added Ubuntu 18 using NCPA it did not detect any ping service to select. Today I have deleted the agent and added it again it does not shows any ping service except the list of network interfaces which I have added as attachment for your reference.

Thanks
Sazzad

Re: Email notification and services issue

Posted: Wed Mar 18, 2020 11:13 am
by lmiltchev
Again, there is no "default" ping service included in the NCPA wizard, as the host check is a ping check, and basically is doing the same thing (monitoring the host, making sure it is UP and running).

If you really wanted to add a Ping service to your host, you could do the following:

1. Run through all of the steps in the wizard in order to add your host and services.

2. Go to the CCM (Configure > Core Config Manager). Click on Services, and select your host (config name) from the drop-down menu. Click on Add New to add a new service to your host.

3. Enter the config name (hostname) in the Config Name field, and Ping in the Description field. Select check_ping from the Check command drop-down menu, and enter values in the $ARG1$ and $ARG2$ fields (whatever makes sense for your environment). Click on Save. See example below:
example01.PNG
4. Click on Manage Hosts, select your host on the left, click on Add Selected, so that your host would appear under the Assigned hosts on the right, and click on Close.

5. Click on Manage Templates, select xiwizard_generic_service on the left, click on Add Selected in order to move it to the right (under Assigned), and lick on Close.

6. Click on Save, and Apply Configuration.

Let us know if you have any further questions.

Re: Email notification and services issue

Posted: Wed Mar 18, 2020 11:36 am
by mhossain
Hi Jeffery,

Thanks for sharing the process. I was trying to add ping service for a host but it shows attached error when I click on Apply Configuration.

Thanks
Sazzad

Re: Email notification and services issue

Posted: Wed Mar 18, 2020 12:31 pm
by lmiltchev
Did you skip steps 4 and 5?
4. Click on Manage Hosts, select your host on the left, click on Add Selected, so that your host would appear under the Assigned hosts on the right, and click on Close.
5. Click on Manage Templates, select xiwizard_generic_service on the left, click on Add Selected in order to move it to the right (under Assigned), and lick on Close.
When you complete both steps, you will see "1" here, not "0" - see below:
example01.PNG
Applying configuration will fail if you haven't added the service to a host (step 4), and if you are missing some of the directives, e.g. check_interval, retry_interval, etc. These will be inherited from the xiwizard_generic_service template (added in step 5).

Please follow ALL steps.

Re: Email notification and services issue

Posted: Wed Mar 18, 2020 1:21 pm
by mhossain
Hi Jeffery,

I did not skip the steps 4 & 5. The screen shot was taken after clicked on applied application that's why it was not showing. I did it again atatched screen shot for your reference.

Thanks
Sazzad

Re: Email notification and services issue

Posted: Wed Mar 18, 2020 2:11 pm
by lmiltchev
This is strange... Let's do a little bit more troubleshooting.

Go to the CCM > Tools > Config File Management, and click on "Delete Files", Write Configs, and Verify Files in this exact order. If you don't see any errors in the output (warnings are OK), apply configuration. If you do see errors, post them on the forum.

PM me your latest profile (Admin > System Config > System Profile > Download Profile).

PM me the latest failed snapshot (CCM > Quick Tools > Configuration Snpahosts > Download). Note: the snapshot with config errors would be colored in red.

Re: Email notification and services issue

Posted: Thu Mar 19, 2020 10:21 am
by mhossain
Hi Jefferey,

Attached please find the all required screenshot and files according to your instruction.

Thanks
Sazzad

Moderator's Note: The profile has been shared with the support team but has been removed from the public forum.

Re: Email notification and services issue

Posted: Thu Mar 19, 2020 11:09 am
by lmiltchev
You have one config with a Ping service with no host and template (which is causing the configuration to fail), and one duplicate (which would cause a warning). Here's how you can fix that:

1. Go to the CCM > Services, and select Ping_155.113 from the drop-down menu.
You should see 3 Ping services.

2. Delete two of them - one with no host defined, and one of the other two.

3. Save and apply configuration.

Re: Email notification and services issue

Posted: Thu Mar 19, 2020 11:49 am
by mhossain
Hi Jeffery,

It worked. Great thanks for your support. I think Windows and Ubuntu are good now.

Now we have two more issues.
One...we have Fortigate firewall but on the Configuration Wizards there is nothing for Fortigate and I have added it using Generic Network device but it actually did not added properly. Some of the ports are not detected and some of the ports are added but physically these are not exists in Firewall. Is there any other alternate way available to add Fortigate Firewall.

2nd..We have some public IP for WAN connection. I have added one public IP as a host and setup the notification for this IP. I have noticed there is some packet drops from this IP but it does not detect by Nagios. We want if there is any packet drop from this WAN IP, Nagis will send us a notification.

Thanks
Sazzad