Tomcat plugin notifications

This forum is intended for the discussion of Nagios plugin development. Feature requests, patches, bug fixes, and all types of development-related discussions are welcome!

NOTE: The SourceForge.net nagiosplug-devel mailing list has been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Tomcat plugin notifications

Postby Siddharth Hegde » Tue Sep 25, 2018 6:08 am

Hi,

I am using a tomcat plugin for alerts. It generates lots of alerts for memory usages which lot of times are false alerts and are usually fixed or recovered by next notification. How can I optimize it or change for it to send less false alerts.

server.cfg
Code: Select all
define service{
        use                             generic-service
        host_name                       server
        service_description             Tomcat
         contact_groups                  admins
        check_command                   check_tomcat!port!user!password!10%,10%!5%,5%
        }


Can I add max_check_attempts here or can I change setting of critical threshold for memory?

This server is hosting few services so I have to be cautious of it.

Regards,
Siddarth Hegde
Siddharth Hegde
 
Posts: 56
Joined: Mon Aug 07, 2017 4:19 am

Re: Tomcat plugin notifications

Postby scottwilkerson » Tue Sep 25, 2018 8:18 am

Yes you can like this, if you need more retries before alerting you can increase the max_check_attempts

Code: Select all
define service{
        use                             generic-service
        host_name                       server
        service_description             Tomcat
        max_check_attempts       5
        check_interval           5
        retry_interval           1
         contact_groups                  admins
        check_command                   check_tomcat!port!user!password!10%,10%!5%,5%
        }
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 12635
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Tomcat plugin notifications

Postby Siddharth Hegde » Wed Sep 26, 2018 5:43 am

Siddharth Hegde
 
Posts: 56
Joined: Mon Aug 07, 2017 4:19 am

Re: Tomcat plugin notifications

Postby scottwilkerson » Wed Sep 26, 2018 7:45 am

Siddharth Hegde wrote:Thanks @scottwilkerson


May we close the thread?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 12635
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Tomcat plugin notifications

Postby Siddharth Hegde » Wed Sep 26, 2018 7:58 am

Yes please
Siddharth Hegde
 
Posts: 56
Joined: Mon Aug 07, 2017 4:19 am

Re: Tomcat plugin notifications

Postby scottwilkerson » Wed Sep 26, 2018 9:53 am

Siddharth Hegde wrote:Yes please

Great!

Locking thread.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 12635
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises


Return to Nagios Plugin Development

Who is online

Users browsing this forum: No registered users and 4 guests