NDO2DB Issue out of the blue
-
jfrickson
Re: NDO2DB Issue out of the blue
No, patch the original. But use this patch instead. I messed up the other one.
You do not have the required permissions to view the files attached to this post.
Re: NDO2DB Issue out of the blue
Done and looking betterjfrickson wrote:No, patch the original. But use this patch instead. I messed up the other one.
Code: Select all
[nagios@iss-chi-nag09 var]$ ps -ef|grep ndo
nagios 2000 1 0 12:47 ? 00:00:00 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
nagios 2062 2000 1 12:48 ? 00:00:00 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
nagios 2063 2062 21 12:48 ? 00:00:04 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
nagios 2084 1950 0 12:48 pts/2 00:00:00 grep ndo
[nagios@iss-chi-nag09 var]$ ll
total 298656
-rw-r--r-- 1 nagios nagios 76 Aug 26 12:48 debug_2000_.log
-rw-r--r-- 1 nagios nagios 5378622 Aug 26 12:48 debug_2062_.log
-rw-r--r-- 1 nagios nagios 48943887 Aug 26 12:48 debug_2063_.log
-rw-r--r-- 1 nagios nagios 9472224 Aug 26 12:33 ndo2db.debug
-rw-r--r-- 1 nagios nagios 20002925 Aug 26 12:33 ndo2db.debug.old
-rw-r--r-- 1 nagios nagios 5 Aug 26 12:47 ndo2db.lock
-rw-r--r-- 1 root root 222007026 Aug 21 13:44 ndo2db.log
p.s. I liked the "Bleh...sorry" unedited message, lol
EDIT: It still seems to be only the same pids so the files are growing rather rapidly, the 2063 one is 500MB already
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
-
jfrickson
Re: NDO2DB Issue out of the blue
I was thinking they would turn over faster.BanditBBS wrote: ...
EDIT: It still seems to be only the same pids so the files are growing rather rapidly, the 2063 one is 500MB already
This one should keep less than 1,000 lines in the current file, and keep a previous log for the previous 1,000 lines.
You do not have the required permissions to view the files attached to this post.
Re: NDO2DB Issue out of the blue
Ok, this one is now in place, we'll see what happens! With this I can also keep my event handler running too since the pids will change and the old logs will remainjfrickson wrote:I was thinking they would turn over faster.BanditBBS wrote: ...
EDIT: It still seems to be only the same pids so the files are growing rather rapidly, the 2063 one is 500MB already
This one should keep less than 1,000 lines in the current file, and keep a previous log for the previous 1,000 lines.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
Re: NDO2DB Issue out of the blue
You know the drill, let us know what you come up with!BanditBBS wrote:Ok, this one is now in place, we'll see what happens! With this I can also keep my event handler running too since the pids will change and the old logs will remainjfrickson wrote:I was thinking they would turn over faster.BanditBBS wrote: ...
EDIT: It still seems to be only the same pids so the files are growing rather rapidly, the 2063 one is 500MB already
This one should keep less than 1,000 lines in the current file, and keep a previous log for the previous 1,000 lines.
Former Nagios Employee.
me.
me.
Re: NDO2DB Issue out of the blue
PM'ing Trevor and jfrickson these files:
Code: Select all
-rw-r--r-- 1 nagios nagios 76 Aug 26 13:15 debug_6938_.log
-rw-r--r-- 1 nagios nagios 72366 Aug 26 17:46 debug_6948_.log
-rw-r--r-- 1 nagios nagios 204854 Aug 26 17:46 debug_6948_.log.prev
-rw-r--r-- 1 nagios nagios 12624549 Aug 26 17:46 debug_6949_.log
-rw-r--r-- 1 nagios nagios 9673526 Aug 26 17:41 debug_6949_.log.prev
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
Re: NDO2DB Issue out of the blue
I have 2 more sets of files I can send if needed, just let me know!
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
-
jfrickson
Re: NDO2DB Issue out of the blue
I don't think I will need them. I should have a fix for you in a little while, probably under an hour.BanditBBS wrote:I have 2 more sets of files I can send if needed, just let me know!
-
jfrickson
Re: NDO2DB Issue out of the blue
Apply the attached patch to the original ndo2db.c and run it. I'm pretty sure this will solve the problem.
You do not have the required permissions to view the files attached to this post.
Re: NDO2DB Issue out of the blue
Well, I have this in, we'll see what happens. I must mention this though as well....based on the tail end of some of the debug logs generated when it got in its infinite loop I fixed the 2 checks that were causing a ton of longoutput and : from being sent, so, if that was the cause, we may not see it again anyway. But I had to do it! I'll let you know if it seems resolved(I'll call it resolved after it doesn't happen again in 3 days)jfrickson wrote:Apply the attached patch to the original ndo2db.c and run it. I'm pretty sure this will solve the problem.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github