Page 1 of 1

How to monitor Java n different ports NagiosXI

Posted: Tue Mar 28, 2017 4:08 am
by Nags007
Hi Team

I have added LINUX SERVER and i am able to see stats of CPU/MEMORY/DISKS.. etc.. I want to monitor application , which is using 4 ports and java is running.

I have the below result for the netstat

[root@ linux-nrpe-agent]# netstat -ntlp
========================================
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 :::8062 :::* LISTEN 20135/java
tcp 0 0 :::8063 :::* LISTEN 25450/java
tcp 0 0 :::8064 :::* LISTEN 45852/java
tcp 0 0 :::8052 :::* LISTEN 46149/java

How to monitor these java in different ports ? 8062, 63,64,52 ? How to add these ports for different applications ?

There is NO PORT option in Configuration wizard to check for different ports ?

[[email protected]]# ps -ef | grep java
==================================================
root 6820 61990 0 05:02 pts/0 00:00:00 grep java
http://xyz.com:9010/eureka --server.port=8062
http://http://ABC.com:9010/ --server.port=8063
http://ddt.com:9010/eureka --server.port=8064
http://xzdd.com:9010/eureka --server.port=8052

which option in Nagiosxi to monitor the 8062,8063,8064,8052 PORTS application..? where to configure.

Thanks,
Nag.

Re: How to monitor Java n different ports NagiosXI

Posted: Tue Mar 28, 2017 9:53 am
by cdienger
Greetings,

There is a wizard to monitor tcp ports. Does this serve the need you have?

Re: How to monitor Java n different ports NagiosXI

Posted: Thu Mar 30, 2017 12:50 am
by Nags007
Hi ,
I am facing the : Configuration verification failed for TCP for the ports, 8062,8063,8064.

Please find the attached snapshot.

Thank you,
Nag.

Re: How to monitor Java n different ports NagiosXI

Posted: Thu Mar 30, 2017 10:39 am
by cdienger
What version of XI is this? I tested with the same settings and had now issue. Do you get the same error with other wizards?

Try logging out of XI then log back in and go to Configurations > Core Configuration Manager > Quick Tools > Apply Configuration, and apply configuration. Do you get the same error?

Please provide a copy of /usr/local/nagios/var/nagios.log after reproducing the error if it is persisting and also the output of:

/usr/local/nagios/bin/nagios -v /usr/locall/nagios/etc/nagios.cfg

Re: How to monitor Java n different ports NagiosXI

Posted: Fri Mar 31, 2017 4:00 am
by Nags007
Hi,
I am using the Nagiosxi 5.4.3 VERSION. Nagios Core was not taking the input of ports. i have restarted the nagiosXI.

I am able to add the PORTS. I can see the output now.

Thanks for your help.

Regards,
Nag

Re: How to monitor Java n different ports NagiosXI

Posted: Fri Mar 31, 2017 11:12 am
by cdienger
Glad to help. Is there anything else related to this that we can help with or are we okay to lock the thread?

Re: How to monitor Java n different ports NagiosXI

Posted: Mon Apr 03, 2017 10:43 pm
by rkennedy
FWIW if you wanted to simply check that the ports are listening on the client side you can use this plugin I wrote ages ago - https://github.com/rcknag/nagios-plugin ... netstat.sh

Re: How to monitor Java n different ports NagiosXI

Posted: Tue Apr 04, 2017 11:08 am
by mcapra
Thanks @rkennedy!

@Nags007 let us know if you have additional questions.