How to monitor Java n different ports NagiosXI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Nags007
Posts: 58
Joined: Wed Mar 08, 2017 12:32 pm

How to monitor Java n different ports NagiosXI

Post 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.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: How to monitor Java n different ports NagiosXI

Post by cdienger »

Greetings,

There is a wizard to monitor tcp ports. Does this serve the need you have?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Nags007
Posts: 58
Joined: Wed Mar 08, 2017 12:32 pm

Re: How to monitor Java n different ports NagiosXI

Post 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.
You do not have the required permissions to view the files attached to this post.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: How to monitor Java n different ports NagiosXI

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Nags007
Posts: 58
Joined: Wed Mar 08, 2017 12:32 pm

Re: How to monitor Java n different ports NagiosXI

Post 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
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: How to monitor Java n different ports NagiosXI

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: How to monitor Java n different ports NagiosXI

Post 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
Former Nagios Employee
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: How to monitor Java n different ports NagiosXI

Post by mcapra »

Thanks @rkennedy!

@Nags007 let us know if you have additional questions.
Former Nagios employee
https://www.mcapra.com/
Locked