Page 2 of 2
Re: Monitoring Java Program on a Windows PC
Posted: Mon Jun 05, 2017 3:31 pm
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
Re: Monitoring Java Program on a Windows PC
Posted: Mon Jun 05, 2017 4:39 pm
by Nisbo
file or folder not found
EDIT: I will install it
Re: Monitoring Java Program on a Windows PC
Posted: Mon Jun 05, 2017 4:55 pm
by dwhitfield
Ok, great, let us know if you have any additional issues!
Re: Monitoring Java Program on a Windows PC
Posted: Mon Jun 05, 2017 4:57 pm
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

Re: Monitoring Java Program on a Windows PC
Posted: Mon Jun 05, 2017 4:59 pm
by avandemore
Thanks for using Nagios! If you have further issues, please open a new thread or ticket.