Email notifications deleted service

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Naveed
Posts: 285
Joined: Mon May 30, 2016 10:10 am

Email notifications deleted service

Post by Naveed »

Hello,

I have http and https services those were down scheduled on daily basis, we were bulk of emails from these. I have removed these services from 2 servers but still getting email alerts.

I have checked in nagios, services do not exist but getting alot of emails.

Please assist.

Thank you!
bwallace
Posts: 1146
Joined: Tue Nov 17, 2015 1:57 pm

Re: Email notifications deleted service

Post by bwallace »

Check to see if there are multiple Nagios processes running, as this will cause an array of problems.

run this cmd on your nagios server:
ps - aef | grep nagios.cfg

* Look for multiple parent (PPID) processes. The Nagios process forks itself to run checks therefore subprocesses are normal. The nagios user should probably be the only owner of the nagios process. If in any doubt post the output here.

If there are multiple Nagios processes running, run these commands to resolve:

service nagios stop
killall -9 nagios
service nagios start
Be sure to check out the Knowledgebase for helpful articles and solutions!
Naveed
Posts: 285
Joined: Mon May 30, 2016 10:10 am

Re: Email notifications deleted service

Post by Naveed »

[root@AXmonitor vmn]# ps -aef | grep nagios.cfg
nagios 13238 1 0 09:22 ? 00:00:16 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios 13288 13238 0 09:22 ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
root 54144 53924 0 11:48 pts/0 00:00:00 grep --color=auto nagios.cfg
nagios 55954 1 0 Jul18 ? 00:03:10 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios 56045 55954 0 Jul18 ? 00:00:05 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg


Please let me know if any down time is involved upon suggested commands execution

Thank you!
bwallace
Posts: 1146
Joined: Tue Nov 17, 2015 1:57 pm

Re: Email notifications deleted service

Post by bwallace »

No downtime at all will result from running those commands....unless there is something horribly wrong which we are unaware of. I've never seen where other problems come about though.
Be sure to check out the Knowledgebase for helpful articles and solutions!
Naveed
Posts: 285
Joined: Mon May 30, 2016 10:10 am

Re: Email notifications deleted service

Post by Naveed »

I have executed commands, now only one nagios process is running.

I will observer emails notifications next few hours and update this accordingly.

For now I am not getting emails from those deleted services.

Thank you very much!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Email notifications deleted service

Post by rkennedy »

Awesome, sounds like it was indeed a ghost process.

We'll leave this open for a few days, let us know if it comes back.
Former Nagios Employee
Naveed
Posts: 285
Joined: Mon May 30, 2016 10:10 am

Re: Email notifications deleted service

Post by Naveed »

Sure!
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Email notifications deleted service

Post by lmiltchev »

Let us know when you think it is safe to lock this thread. Thanks!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Naveed
Posts: 285
Joined: Mon May 30, 2016 10:10 am

Re: Email notifications deleted service

Post by Naveed »

I think its safe now.

I did not get email from deleted services.

You may close this thread.

Thank you!
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Email notifications deleted service

Post by mcapra »

Closing this per your request
Former Nagios employee
https://www.mcapra.com/
Locked