NCPA host changes post import

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jsalsbury
Posts: 87
Joined: Tue Oct 23, 2018 12:57 pm

NCPA host changes post import

Post by jsalsbury »

Good afternoon
I recently imported about 100 or so machines into out Nagiosxi and I have been testing them. Now that I have everything tweaked I wanted to change the notification from me to their respective teams. Does this have to be done one by one? Or can I use the groups they are already in?

I do already have contact groups for those hosts but I am still only seeing alerts to me.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: NCPA host changes post import

Post by benjaminsmith »

Hi @jsalsbury,

Once you have a your contact groups created, you can use the Bulk Modifications Tool to add those contact groups to selected hosts and services, then save and apply configuration. Go to Configure > Tools > Bulk Modifications Tool > Add Contact(s) or Add Contact Group(s)

One thing to consider, notifications for Users and Contacts use different mail commands in Nagio XI. Please read the first page of the following guide under Users and Contacts to understand the difference. Depending on your setup, you may need to configure Contacts to the Nagios XI User notification commands.

Configuring Email and Text Notifications in Nagios XI
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
jsalsbury
Posts: 87
Joined: Tue Oct 23, 2018 12:57 pm

Re: NCPA host changes post import

Post by jsalsbury »

Thank you, I think I have all the emails going to the right people, my issue now is to make the adjustments of the learning.
for instance I want notifications changed from 80% to 95.

I went through the NCPA wizard and created and saved a temple so that perhaps I could just swap them out but I am now unable to find it. As well I cannot even seem to see which service template is sending out the alerts now as when I look at them it would appear that those are not really the arguments I am using.

I think perhaps I got myself into some kind of weird server template loop ?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NCPA host changes post import

Post by lmiltchev »

for instance I want notifications changed from 80% to 95.
Can you elaborate on this? Are you talking about changing warning or critical thresholds from 80% to 95% for some of your services or you are talking about something else?

Also, when you are talking about templates, what templates are you referring to - host, service, contact, or wizard templates?
I went through the NCPA wizard and created and saved a temple so that perhaps I could just swap them out but I am now unable to find it.
When you ran the "final" step of the NCPA wizard, and click on "Save as Template", what name did you type in the "Title" field? Did you make your template "global"?

You can rerun the NCPA wizard agains a different host(s), click on "Finish with Template" in Step 2 of the wizard, select your previously created template from the "Template" drop-down menu, and click on "Finish".

Note: Under the "Finish Using Template" window, you can click on "Manage Templates". Under the "Manage Templates" page, you can edit and/or delete configuration wizard templates. You won't be able to change any thresholds there though.
Be sure to check out our Knowledgebase for helpful articles and solutions!
jsalsbury
Posts: 87
Joined: Tue Oct 23, 2018 12:57 pm

Re: NCPA host changes post import

Post by jsalsbury »

Yes I was trying to change the thresholds on the alerts. The team I am supporting has asked that I change the warnings to 95%.

When I did make the template I did save it and make it global but the name I created is not being found when I look in the templates.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NCPA host changes post import

Post by lmiltchev »

Yes I was trying to change the thresholds on the alerts. The team I am supporting has asked that I change the warnings to 95%.
Can you show us an example of a check that you would like to modify? Most probably these thresholds are defined on a service level, not on a template level. You can easily change them in the CCM, depending on how many you would need to change. It could be a tedious task if you needed to change too many services. There may be a better way to do this in the CLI.
When I did make the template I did save it and make it global but the name I created is not being found when I look in the templates.
If you made a "wizard template", you wouldn't be able to see it, unless you rerun the wizard. If you created a "service template" in the CCM, you would find it by going to the CCM > Templates > Service Templates. Keep in mind that local settings would take precedent over the ones, defined in the templates, so most likely you would still need to modify your services in the CCM (manually).
Be sure to check out our Knowledgebase for helpful articles and solutions!
jsalsbury
Posts: 87
Joined: Tue Oct 23, 2018 12:57 pm

Re: NCPA host changes post import

Post by jsalsbury »

I thought the templates I was creating were for Nagios, instead they are for the importing of the NCPA servers. I get that now.

This would be the type of change I want to make . Right now the email alert is porting at 81% for critical, I would like to change that to 95%.

Nagios has detected a problem with this service.

Notification Type: PROBLEM

Service: Memory Usage
Host: pepwap11053.corp.pep.pvt
Host Group: Symantec Endpoint Protection Database
Address: 30.201.241.182
State: CRITICAL
Info:
CRITICAL: Used memory was 81.20 % (Available: 3.00 GiB, Total: 16.00 GiB, Free: 3.00 GiB, Used: 12.99 GiB)
Date/Time: 2019-04-04 15:19:52
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NCPA host changes post import

Post by lmiltchev »

Go to the CCM > Services, find the "Memory Usage" service on "pepwap11053.corp.pep.pvt", click on "Edit", find the threshold that you would like to change to 95%, change the value, click on "Save", and Apply Configuration.
Be sure to check out our Knowledgebase for helpful articles and solutions!
jsalsbury
Posts: 87
Joined: Tue Oct 23, 2018 12:57 pm

Re: NCPA host changes post import

Post by jsalsbury »

Am I going to need to do this manually for all of them? There are about 60 or 70 of them.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NCPA host changes post import

Post by lmiltchev »

There are a few ways of modifying the services.

1. Edit each service in the CCM manually. This is probably the "safest" way - it's very difficult to make a mistake, and screw something up. Even with 60-70 services, it shouldn't take very long, perhaps 15-20 min. You change the thresholds for all services, then apply configuration once you are done.

2. Using the Bulk Host Cloning and Import wizard. Modify the thresholds for services on 1 of your hosts. Then run the wizard, and use this host as a template, selecting only the services you modified. In the Step 2 of the wizard, in the "Data" field, you enter the IPs, and the names of your other hosts, that you would like to modify. This should work fine, but if you made a mistake with entering the IPs/names, new hosts could be created (cloned) instead of modifying the existing ones. :)

3. Using the Bulk Modifications Tool. CCM > Tools > Bulk Modifications Tool > Change Command and Arguments. This is the riskiest option if you don't know what you are doing. You cannot change ONLYy the thresholds. You would need to change EVERYTHING that is in $ARG1$. This means, you cannot do this for all of the services in bulk. You would need to separate then by type, e.g. "Memory Usage", "CPU Usage", etc. Bulk Mod tool is great, but I don't think it is the best choice for changing the thresholds only. By the time you figure out what ARGs to change on what services, you would be better off doing it manually in the CCM.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked