Monitoring Log Server Process

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
CFT6Server
Posts: 506
Joined: Wed Apr 15, 2015 4:21 pm

Monitoring Log Server Process

Post by CFT6Server »

I am interested in putting in service checks for Nagios Log Server. Which should look at the elasticsearch and logstash services. Since those are Java processes, any suggestions on what check to see? I don't think the default Linux SNMP process check can do this due the "java" that's actually running. We are also doing agentless checks, so we are using SNMP checks.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Monitoring Log Server Process

Post by rkennedy »

For reference - can you provide a sample of how you're currently checking if a process is running over SNMP?
Former Nagios Employee
CFT6Server
Posts: 506
Joined: Wed Apr 15, 2015 4:21 pm

Re: Monitoring Log Server Process

Post by CFT6Server »

I would be using the check_xi_service_snmp_linux_process check command. Then the $ARG1$ will be using -n 'process_name'. I've taken this from the linux snmp wizard and just modify it for the process name.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Monitoring Log Server Process

Post by tmcdonald »

Do you have NRPE installed on the LS server? If so, a simple bash script to check the output of service elasticsearch status and service logstash status would probably suffice.
Former Nagios employee
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Monitoring Log Server Process

Post by WillemDH »

I can recommend using this plugin to monitor a combination of a given process:
- count
- % memory usage
- % cpu usage

https://github.com/willemdh/check_lin_process

Download the latest version on GitHub and use -A to average the CPU.

Code: Select all

COMMAND: /usr/local/nagios/libexec/check_nrpe -H nlsnode -c check_lin_process -a '-p java -w 70 -c 80 -A'
OUTPUT: OK: java {CPU: 42%}{Memory: 71%}{Count: 4}} | java_cpu=42 java_mem=71 java_count=4
I'm using it for the java and the httpd process.

Grtz
You do not have the required permissions to view the files attached to this post.
Nagios XI 5.8.1
https://outsideit.net
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Monitoring Log Server Process

Post by rkennedy »

Much wow, nice plugin @WillemDH!

@CFT6Server - let us know if this works for you.
Former Nagios Employee
CFT6Server
Posts: 506
Joined: Wed Apr 15, 2015 4:21 pm

Re: Monitoring Log Server Process

Post by CFT6Server »

We are trying to stay away from agents as we are monitoring all devices in the enterprise without agents. This is what I was feared, but perhaps we cannot get this via just snmp and must use the NRPE client...
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Monitoring Log Server Process

Post by hsmith »

What about check_by_ssh with a simple bash script?
Former Nagios Employee.
me.
Locked