Have Service not Alert

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mkeey
Posts: 199
Joined: Mon Sep 25, 2017 11:13 am

Have Service not Alert

Post by mkeey »

We want to define some services just so we statistical data. This means that we do not want the service to appear in the Open Problems display nor do any notifications. I know I can update the service (re-configure) so that I won't alert and I know I can turn off notifications manually for a service. But, I can I copy/clone that so I don't have to manually update 500 services?

Tried using the Bulk Clone/Import Wizard but it didn't work. The Sample host & services have the correct settings but the cloned host/services did not keep those settings. Tried updating my template but still no luck.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Have Service not Alert

Post by lmiltchev »

Are you talking about the "Open Service Problems" page?
example01.PNG
Even if you disabled notifications, the service would still show up on this page if it is in a hard non-OK state, not in downtime, and not acknowledged... I am not sure how you are preventing it from showing up on the page.

Can you give us an example of a host/service config that doesn't import properly via the Bulk Clone/Import Wizard? Also, show us an example of the template that you are applying to the host/services.

Note: You can disable notifications on all 500 services in "one go" via the Bulk Modifications Tool - select your services, click on "Save Changes", and apply configuration.
example02.PNG
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
mkeey
Posts: 199
Joined: Mon Sep 25, 2017 11:13 am

Re: Have Service not Alert

Post by mkeey »

Thanks for the help. We have NOT gotten the service to NOT show up on the Open Problems. That was the point of this case. I apologize for the confusion. I did go to the notifications tab for the service and removed the notifications for all users. But, it still shows up on the Open Problems. We don't want that. If it's not possible, that's fine. Just wondering if we can do that.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Have Service not Alert

Post by lmiltchev »

I don't think you can do this. This is whole point - the open service problems page shows all services in non-ok state, that are not acknowledged, and not in downtime... This is by design.
example01.PNG
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: Have Service not Alert

Post by gormank »

There's a file /usr/local/nagios/libexec/negate that will change the status of a check to whatever you want it to be. The OP would need to define a command to use negate. Since it seems the OP has many duplicate checks, it might be a pain to redefine the checks. One thing that comes to mind is to copy the service .cfg files to the import dir, use sed to modify them, then run the reconfig script.
mkeey
Posts: 199
Joined: Mon Sep 25, 2017 11:13 am

Re: Have Service not Alert

Post by mkeey »

Thanks for the tips and advice - please close this case.
Locked