Page 1 of 1
When "Service" should be stopped, still getting an alert
Posted: Fri Jan 25, 2019 2:00 pm
by kumardeuja
When configuring a service monitor which should only send an e-mail if the service is running, but in our case, it is still sending an e-mail even though it is stopped and it should not be sending an e-mail. Also, it happens for the monitoring job which is monitoring service with "Running" status. Is this a known bug?
Thanks!
Re: When "Service" should be stopped, still getting an alert
Posted: Fri Jan 25, 2019 2:59 pm
by benjaminsmith
Hi
@kumardeuja,
It's mostly likely related to the check commannd or the settings for the service. Can you post the service definitions or PM your system profile along with the host and service(s) you're having issues with?
Thanks.
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 upload it to a cloud storage of your choice. You can share a link with me in a personal message.
After you upload the profile please post something in this thread to bring it up in the support queue.
Re: When "Service" should be stopped, still getting an alert
Posted: Tue Jan 29, 2019 8:45 am
by kumardeuja
We don't have any cloud storage. Can I e-mail it to you?
Re: When "Service" should be stopped, still getting an alert
Posted: Tue Jan 29, 2019 10:03 am
by benjaminsmith
Hi
@kumardeuja,
You can just send it over in a Private Message, just click the PM icon below my username.
Re: When "Service" should be stopped, still getting an alert
Posted: Fri Feb 01, 2019 2:24 pm
by benjaminsmith
Hello
@kumardeuja,
My apologies for the delay. We recently had an severe weather that impacted our operations. If needed, please open a support ticket for faster resolution of your issue.
Support Center Ticket
https://support.nagios.com/tickets/
Otherwise, it looks like you have multiple Nagios processes running, please run the following and let me know if it resolves the issue.
Code: Select all
service nagios stop
killall nagios
service nagios start
Re: When "Service" should be stopped, still getting an alert
Posted: Mon Feb 04, 2019 12:51 pm
by kumardeuja
I am still having same issues, it is reporting that SQLAgent is running (should be running). And I have rebooted the server as well.
Thanks.
Re: When "Service" should be stopped, still getting an alert
Posted: Mon Feb 04, 2019 3:10 pm
by benjaminsmith
Hello
@kumardeuja,
Can you provide the exact name of the hosts and the service description that you're having issues with so I can locate those in your configurations files.
Thank you.
Re: When "Service" should be stopped, still getting an alert
Posted: Wed Feb 06, 2019 12:56 pm
by benjaminsmith
Hello,
Thanks for sending me image. I'm not able to find the the last 3 services in your configuration files ( id's 2252, 2250, 2251). Is it possible that the profile you sent me does not contain those services? Can you re-send the current profile.?
Getting back to the initial issue, you'd like to only receive notifications when the service is running ( not stopped). This type of check can be easily configured using the negate plugin.
We have Pro Tip Video on how to set that up:
Turn red into green (and Critical into OK) with Negate Plugin
https://youtu.be/W73GpWrkX0k