Page 1 of 1

Users NAgios Session

Posted: Sat Jun 17, 2017 4:44 am
by flash09
Hello,
I have installed Nagios Log Server on CentOS 7. It seems to work so far but the User Nagios is logged in several times per second. After few days the user Nagios have Ten tousands of open Sessions.
I cant believe that this a normal behavior but i dont know what is wrong.

Have some one a idaea?

Regards

Re: Users NAgios Session

Posted: Mon Jun 19, 2017 10:00 am
by cdienger
Can you share the output or file you're seeing this in?

Re: Users NAgios Session

Posted: Tue Jun 20, 2017 3:57 pm
by flash09
Hi,
I have attached a Screenshot from my Dashboard. Hope that helps...


Regards

Re: Users NAgios Session

Posted: Tue Jun 20, 2017 4:39 pm
by cdienger
These are due to the cron jobs in /etc/cron.d/nagioslogserver running each minute. You can have NLS drop these by adding a filter under Administration > Globl > Global Configuration > Filters. For example:

if [message] =~ 'Session Started.*' {
drop {}
}

Re: Users NAgios Session

Posted: Thu Jun 22, 2017 10:09 pm
by tacolover101
that's pretty nifty it'll match without regex.

wouldn't it be this though?

Code: Select all

if [message] =~ 'Start* Session* *nagios**' {
drop {}
}

Re: Users NAgios Session

Posted: Fri Jun 23, 2017 12:41 pm
by dwhitfield
@flash09, did either of the suggestions work for you?

Re: Users NAgios Session

Posted: Sat Jun 24, 2017 3:31 am
by flash09
Hi,

sorry for my late answer.
You meaning that is ok that the user NAgios start 3 Session per minute? I send a screenshot from messages log. Here can you see that the user Nagios starts 3 session every minute but i dont see a message that this session is closed :?
Sure i can supress the messages from the log but i want to be sure that this behavior is fine and working as expected. Switch off this dumb oil warning lamp wont be helpful for the engine - you know ;)

Regards

Re: Users NAgios Session

Posted: Mon Jun 26, 2017 10:42 am
by tmcdonald
I don't believe there will necessarily be a "Closing session XYZ" message, and these messages are not specific to Nagios:

https://www.centos.org/forums/viewtopic.php?t=61718