Tomcat plugin notifications

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.
Locked
Siddharth Hegde
Posts: 70
Joined: Mon Aug 07, 2017 4:19 am

Tomcat plugin notifications

Post by Siddharth Hegde »

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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Tomcat plugin notifications

Post by scottwilkerson »

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%
        }
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Siddharth Hegde
Posts: 70
Joined: Mon Aug 07, 2017 4:19 am

Re: Tomcat plugin notifications

Post by Siddharth Hegde »

scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Tomcat plugin notifications

Post by scottwilkerson »

Siddharth Hegde wrote:Thanks @scottwilkerson
May we close the thread?
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Siddharth Hegde
Posts: 70
Joined: Mon Aug 07, 2017 4:19 am

Re: Tomcat plugin notifications

Post by Siddharth Hegde »

Yes please
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Tomcat plugin notifications

Post by scottwilkerson »

Siddharth Hegde wrote:Yes please
Great!

Locking thread.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked