Monitoring Java Program on a Windows PC

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.
mdomanski
Posts: 23
Joined: Thu Dec 15, 2016 11:17 am

Re: Monitoring Java Program on a Windows PC

Post by mdomanski »

maybe You don't have installed nrpe plugin on Your server

if not ... download nrpe package from Nagios Addon Projects - https://www.nagios.org/downloads/nagios-core-addons/ , then extract and install

Code: Select all

wget https://github.com/NagiosEnterprises/nrpe/releases/download/nrpe-3.1.0/nrpe-3.1.0.tar.gz
tar xzf nrpe-3.1.0.tar.gz
cd nrpe-3.1.0
./configure
make all
make install-plugin
Nisbo
Posts: 8
Joined: Sun Jun 04, 2017 7:50 am

Re: Monitoring Java Program on a Windows PC

Post by Nisbo »

file or folder not found

EDIT: I will install it
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Monitoring Java Program on a Windows PC

Post by dwhitfield »

Ok, great, let us know if you have any additional issues!
Nisbo
Posts: 8
Joined: Sun Jun 04, 2017 7:50 am

Re: Monitoring Java Program on a Windows PC

Post by Nisbo »

It works on the command line :)

Code: Select all

root@FHEM2:/tmp/nrpe-3.1.0# /usr/local/nagios/libexec/check_nrpe -H 192.168.178.52 -t 30 -c check_process -a process="javaw.exe" "filter=command_line like 'RepeaterReader.jar'"
OK: all processes are ok.|'javaw.exe state'=1;0;0 'count'=1;0;0
with a fake name it fails as expected

Code: Select all

root@FHEM2:/tmp/nrpe-3.1.0# /usr/local/nagios/libexec/check_nrpe -H 192.168.178.52 -t 30 -c check_process -a process="javaw.exe" "filter=command_line like 'Repeater1Reader.jar'"
CRITICAL: No processes found|'count'=0;0;0
now I have to find out how to configure the service

thx @all :)
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Monitoring Java Program on a Windows PC

Post by avandemore »

Thanks for using Nagios! If you have further issues, please open a new thread or ticket.
Previous Nagios employee
Locked