PROGRAM (RE)START Program restart

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
nhadie
Posts: 1
Joined: Wed Nov 21, 2012 2:29 am

PROGRAM (RE)START Program restart

Post by nhadie »

Hi All,

I am just wondering why i am seeing this under view full log when i check "View Alert History For"

1-21-2012 04:46:59 11-21-2012 04:46:59 0d 0h 0m 0s PROGRAM (RE)START Program restart
11-21-2012 04:46:59 11-21-2012 05:16:04 0d 0h 29m 5s PROGRAM (RE)START Program start
11-21-2012 05:16:04 11-21-2012 05:16:04 0d 0h 0m 0s PROGRAM (RE)START Program restart
11-21-2012 05:16:04 11-21-2012 15:19:14 0d 10h 3m 10s PROGRAM (RE)START Program start
11-21-2012 15:19:14 11-21-2012 15:19:14 0d 0h 0m 0s PROGRAM (RE)START Program restart
11-21-2012 15:19:14 11-21-2012 15:20:02 0d 0h 0m 48s PROGRAM (RE)START Program start
11-21-2012 15:20:02 11-21-2012 15:20:02 0d 0h 0m 0s PROGRAM (RE)START Program restart
11-21-2012 15:20:02 11-21-2012 15:25:20 0d 0h 5m 18s PROGRAM (RE)START Program start
11-21-2012 15:25:20 11-21-2012 15:25:20 0d 0h 0m 0s PROGRAM (RE)START Program restart
11-21-2012 15:25:20 11-21-2012 15:27:52 0d 0h 2m 32s PROGRAM (RE)START Program start
11-21-2012 15:27:52 11-21-2012 15:27:52 0d 0h 0m 0s PROGRAM (RE)START Program restart
11-21-2012 15:27:52 11-21-2012 15:30:52 0d 0h 3m 0s+ PROGRAM (RE)START Program start

But i am tailing the nagios.log and i don't see nagios restarting, any idea waht could be causing this?
Thanks in advance.

Regards,
nhadie
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: PROGRAM (RE)START Program restart

Post by slansing »

Hi can you check these things and report them back here?:

Code: Select all

ps -e | grep nagios

Code: Select all

tail -f /var/log/messages
r3solved
Posts: 4
Joined: Thu Nov 21, 2013 4:59 am

Re: PROGRAM (RE)START Program restart

Post by r3solved »

Hello,
I have the same problem:

Code: Select all

[root@nag ~]# ps -e | grep nagios
 5692 ?        00:03:03 nagios
 5725 ?        00:00:00 nagios <defunct>
 5730 ?        00:00:00 nagios <defunct>
 5733 ?        00:00:00 nagios
 5736 ?        00:00:00 nagios
 5834 ?        00:00:00 nagios
 5872 ?        00:00:00 nagios
 5877 ?        00:00:00 nagios <defunct>
 5885 ?        00:00:00 nagios
 5887 ?        00:00:00 nagios
 5911 ?        00:00:00 nagios <defunct>
 5916 ?        00:00:00 nagios <defunct>
 5918 ?        00:00:00 nagios
 5922 ?        00:00:00 nagios
 5923 ?        00:00:00 nagios
 5926 ?        00:00:00 nagios
 5928 ?        00:00:00 nagios
 5963 ?        00:00:00 nagios <defunct>
 5966 ?        00:00:00 nagios
 5970 ?        00:00:00 nagios
 5971 ?        00:00:00 nagios
 5974 ?        00:00:00 nagios
 5988 ?        00:00:00 nagios <defunct>
 5997 ?        00:00:00 nagios <defunct>
 6002 ?        00:00:00 nagios <defunct>
 6006 ?        00:00:00 nagios
 6010 ?        00:00:00 nagios
 6011 ?        00:00:00 nagios
 6014 ?        00:00:00 nagios
 6017 ?        00:00:00 nagios
 6018 ?        00:00:00 nagios
 6021 ?        00:00:00 nagios
Can you help me?
Attachments
Nagios
Nagios
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: PROGRAM (RE)START Program restart

Post by abrist »

@r3solved:
Are you hitting the max open file limits? Could you post the following:

Code: Select all

tail -f /var/log/messages
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
r3solved
Posts: 4
Joined: Thu Nov 21, 2013 4:59 am

Re: PROGRAM (RE)START Program restart

Post by r3solved »

The file /var/log/messages don`t have nothing of interest :/
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: PROGRAM (RE)START Program restart

Post by lmiltchev »

@nhadie

Did you run the commands, suggested by slansing?

@r3solved
The file /var/log/messages don`t have nothing of interest :/
Can you post the output?
Be sure to check out our Knowledgebase for helpful articles and solutions!
r3solved
Posts: 4
Joined: Thu Nov 21, 2013 4:59 am

Re: PROGRAM (RE)START Program restart

Post by r3solved »

Hello,
What do you think, when you write: "Are you hitting the max open file limits?"
I can only upload this screen:
Attachments
log.png
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: PROGRAM (RE)START Program restart

Post by abrist »

Are you reloading nagios?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
r3solved
Posts: 4
Joined: Thu Nov 21, 2013 4:59 am

Re: PROGRAM (RE)START Program restart

Post by r3solved »

Hello,
Yes, I`m reloading and restaring. I check my host between 12 and 20 and (monday 12:00-14:00,16:00-20:00), maybe this is problem.

Code: Select all

define timeperiod{
        name                           12-20
        timeperiod_name         12-20
        sunday                  12:00-20:00
        monday                  12:00-14:00,16:00-20:00
        tuesday                 12:00-20:00
        wednesday               12:00-20:00
        thursday                12:00-20:00
        friday                  12:00-20:00
        saturday                00:00-00:00
}
So, why my nagios have some process?

Code: Select all

[root@nag ~]# ps -e | grep nagios
5692 ?        00:03:03 nagios
5725 ?        00:00:00 nagios <defunct>
5730 ?        00:00:00 nagios <defunct>
5733 ?        00:00:00 nagios
5736 ?        00:00:00 nagios
5834 ?        00:00:00 nagios
5872 ?        00:00:00 nagios
5877 ?        00:00:00 nagios <defunct>
5885 ?        00:00:00 nagios
5887 ?        00:00:00 nagios
5911 ?        00:00:00 nagios <defunct>
5916 ?        00:00:00 nagios <defunct>
5918 ?        00:00:00 nagios
5922 ?        00:00:00 nagios
5923 ?        00:00:00 nagios
5926 ?        00:00:00 nagios
5928 ?        00:00:00 nagios
5963 ?        00:00:00 nagios <defunct>
5966 ?        00:00:00 nagios
5970 ?        00:00:00 nagios
5971 ?        00:00:00 nagios
5974 ?        00:00:00 nagios
5988 ?        00:00:00 nagios <defunct>
5997 ?        00:00:00 nagios <defunct>
6002 ?        00:00:00 nagios <defunct>
6006 ?        00:00:00 nagios
6010 ?        00:00:00 nagios
6011 ?        00:00:00 nagios
6014 ?        00:00:00 nagios
6017 ?        00:00:00 nagios
6018 ?        00:00:00 nagios
6021 ?        00:00:00 nagios
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: PROGRAM (RE)START Program restart

Post by slansing »

Are you seeing the same thing nhadie?
Locked