Page 1 of 1

Have Service not Alert

Posted: Wed May 23, 2018 8:10 am
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.

Re: Have Service not Alert

Posted: Wed May 23, 2018 1:01 pm
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

Re: Have Service not Alert

Posted: Thu May 31, 2018 1:42 pm
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.

Re: Have Service not Alert

Posted: Thu May 31, 2018 4:08 pm
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

Re: Have Service not Alert

Posted: Tue Jun 05, 2018 12:27 pm
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.

Re: Have Service not Alert

Posted: Wed Jun 06, 2018 8:07 am
by mkeey
Thanks for the tips and advice - please close this case.