Trying to figure out why logstash changed to active (exited)

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Trying to figure out why logstash changed to active (exi

Post by mbellerue »

Just the TCP connections of the node that fails.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
rferebee
Posts: 733
Joined: Wed Jul 11, 2018 11:37 am

Re: Trying to figure out why logstash changed to active (exi

Post by rferebee »

Ok, I'll have my WAN team generate a report for you. It'll probably have to wait until next week.
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Trying to figure out why logstash changed to active (exi

Post by mbellerue »

Okay. We'll keep the thread open and wait to hear back.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
rferebee
Posts: 733
Joined: Wed Jul 11, 2018 11:37 am

Re: Trying to figure out why logstash changed to active (exi

Post by rferebee »

Hello,

Unfortunately, TCP connections are not something we log (we only log denials), so I am unable to generate a report with that information.

Is there anything else you'd like to look at? I will say that we went all weekend without the logstash service exiting on any of the nodes, so that's good. Also, all of the snapshots completed successfully.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Trying to figure out why logstash changed to active (exi

Post by cdienger »

We can get this information from the a plugin like https://exchange.nagios.org/directory/P ... es/details and using the NCPA agent. https://support.nagios.com/kb/article/n ... i-857.html goes over setting it up. Would this be possible? If so, there is one tweak that needs to be made to this plugin - Edit it to remove the comments at the top so that the first line is "#!/bin/bash". Then the plugin would need to be copied to /usr/local/ncpa/plugins/ on the NLS machine(set permissions to "chmod 755 check_tcp_connections") and then you can run from XI.

The command would look something like:

Code: Select all

./check_ncpa.py -H NLS_IP -t '<your token>' -M 'plugins/check_tcp_connections' -q 'args=-s a -w 99998 -c 99999'
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rferebee
Posts: 733
Joined: Wed Jul 11, 2018 11:37 am

Re: Trying to figure out why logstash changed to active (exi

Post by rferebee »

We haven't begun using the NCPA agent yet. I'll need to install and configure that first. Of course, that will require approval.

I'll get back to you.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Trying to figure out why logstash changed to active (exi

Post by cdienger »

Sounds good. Keep us posted.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Trying to figure out why logstash changed to active (exi

Post by cdienger »

Also, are all your clients pointing to a single NLS instance are you doing any load balancing? Balancing the incoming data among multiple NLS instances can help prevent overloading a single logstash process.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rferebee
Posts: 733
Joined: Wed Jul 11, 2018 11:37 am

Re: Trying to figure out why logstash changed to active (exi

Post by rferebee »

We point all of our clients at a DNS name that comprises the IP addresses of all the Log Server nodes.

I've been trying to get load balancing to work in our environment for Log Server, but I haven't had much luck. I know it's not load balancing right now and I've opened support tickets in the past concerning that issue, but I haven't got a lot of direction from Nagios.

It's something we need to figure out internally. I just don't know the "best" way to approach it.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Trying to figure out why logstash changed to active (exi

Post by cdienger »

It's probably not the "best" way, but even configuring half the clients to go to one NLS machine and the other half to go to another would probably help. Maybe setting a couple DNS records so one hostname can resolve to two of the machines and another resolving to the other two. You'd have a bit of redundancy with that as well.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked