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.
Siddharth Hegde
Posts: 70 Joined: Mon Aug 07, 2017 4:19 am
Post
by Siddharth Hegde » Fri May 31, 2019 4:55 am
Hi,
client.cfg
Code: Select all
check_command = check_tomcat!80!user!password!10%,10%!5%,5%
I'm getting the following alert for the above
Code: Select all
WARNING: memory in use 210 MiB (1708 MiB): Warning: No tomcat connectors matched name =~ /-80$/
80 is suppose to be port number right?
Please help me understand and fix the issue
Regards,
Siddarth Hegde
Pitone_Maledetto
Posts: 69 Joined: Fri Jul 01, 2016 4:11 am
Location: Liverpool, United Kingdom
Post
by Pitone_Maledetto » Fri May 31, 2019 6:06 am
Hi Siddharth Hegde,
What version of Tomcat are you trying to check?
What plugin do you use? (there are few).
Regards
"It is impossible to work in information technology without also engaging in social engineering"
Jaron Lanier
Siddharth Hegde
Posts: 70 Joined: Mon Aug 07, 2017 4:19 am
Post
by Siddharth Hegde » Fri May 31, 2019 6:26 am
Hi
@Pitone_Maledetto
Tomcat version is 7
Plugin used
Code: Select all
https://exchange.nagios.org/directory/Plugins/Java-Applications-and-Servers/Apache-Tomcat/check_tomcat-2Epl/details
command.cfg
Code: Select all
#Check tomcat service
define command{
command_name check_tomcat
command_line /bin/sh -c "$USER1$/check_tomcat.pl -H $HOSTADDRESS$ -p $ARG1$ -l $ARG2$ -a $ARG3$ -w $ARG4$ -c $ARG5$"
}
Regards,
Siddarth Hegde
Pitone_Maledetto
Posts: 69 Joined: Fri Jul 01, 2016 4:11 am
Location: Liverpool, United Kingdom
Post
by Pitone_Maledetto » Fri May 31, 2019 6:46 am
Assuming check_tomcat.pl,v 1.4
Try to add the following to match all connectors:
or specify one e.g. -n http-8080
"It is impossible to work in information technology without also engaging in social engineering"
Jaron Lanier
Pitone_Maledetto
Posts: 69 Joined: Fri Jul 01, 2016 4:11 am
Location: Liverpool, United Kingdom
Post
by Pitone_Maledetto » Fri May 31, 2019 9:48 am
Skip -p since it is optional when not different from default value of 8080.
Is the plugin the latest version?
Have you set the -n has per above?
Please share again your updated command.
"It is impossible to work in information technology without also engaging in social engineering"
Jaron Lanier
cdienger
Support Tech
Posts: 5045 Joined: Tue Feb 07, 2017 11:26 am
Post
by cdienger » Fri May 31, 2019 1:29 pm
Also, make sure you can run the command directly:
/usr/local/nagios/libexec/check_tomcat.pl -H HOSTADDRESS -p 80 -l USER -a PASSWORD -w 10%,10% -c 5%,5%
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new
Privacy Policy .
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Mon Jun 03, 2019 7:07 am
Siddharth Hegde wrote: Thanks
@Pitone_Maledetto and
@cdienger
Tomcat seems to be working now. I removed the plugin and put it back and restarted both servers.
Regards,
Siddarth Hegde
Great!
Locking