Menu

#3 Plugin doesn't work in the Nagios Webinterface

open
None
4
2011-04-08
2010-08-09
Anonymous
No

Hello there,

I would like to use this Plugin but i have a problem.
I have tried the command from the example in this Readme and in the console it works, but only there. In the Webinterface it only show (null).
(See in the Screenshots)
So i need help, if i do something wrong.

Discussion

  • Nobody/Anonymous

    NagiosGUI and console

     
  • Nobody/Anonymous

    Hi,
    Did you have this issue solved?
    I am facing the same problem i.e. cannot display the output in web interface. Would you please help me.

    Thank You

     
  • Tobias Frech

    Tobias Frech - 2011-04-08
    • priority: 5 --> 4
    • assigned_to: nobody --> gropi
     
  • Nobody/Anonymous

    hi gropi,
    Could you please provide some documentation on how to use the newer version as you suggested.

    Thank You

     
  • Nobody/Anonymous

    Can you please type the command to display the count for AvailableConnectionCount . I am unable to monitor datasource properites using the plugin.

    Thank You
    lochan

     
  • Nobody/Anonymous

    I have used the following service definition:

    define service{
    use generic-service
    host_name host1
    service_description Jboss_Active_Thread
    check_command check_mbean_collector!jboss.system:type=ServerInfo!ActiveThreadCount!200!400
    contact_groups admins
    }

    while the commands.cfg contains the following command
    define command{
    command_name check_mbean_collector
    command_line $USER1$/check_mbean_collector -H $HOSTADDRESS$ -p 5566 -m $ARG1$ -a $ARG2$ -w $ARG3$ -c $ARG4$
    }

    This way i am able to plot Jboss_Active_thread in nagios and nagiosgraph.
    Hope this might help you a little.

    Lochan

     
  • Nobody/Anonymous

    define service{
    use generic-service
    host_name host1
    service_description Jboss AvailableConnectionCount
    check_command check_mbean_collector!jboss.jca:service=ManagedConnectionPool,name=your_jndi-name!AvailableConnectionCount!550:!400:
    contact_groups admins
    }

    Define a service like above for the host.
    Notice the ' : ' after the threshold values, this will generate warning message if AvailableConnectionCount < 500 and a critical message if it is < 400.
    You may adust the values according to you need.

    Lochan

     
  • Anonymous

    Anonymous - 2012-07-17

    Hey!.. I solved this problem with the next config.

    define command{
    command_name check_mbean_collector
    command_line $USER1$/check_mbean_collector -H $HOSTADDRESS$ -p 5566 $ARG1$
    }

    define service{
    use generic-service
    host_name servername
    service_description JBoss Active
    check_command check_mbean_collector!-m jboss.system:type=ServerInfo -a ActiveThreadCount -w 200 -c 400
    }

    Edit the script check_mbean_collector in the line 32 approx:

    # You may need to adjust this path to your local Nagios installation
    #use lib "/usr/lib/nagios/plugins";
    use lib "/usr/local/nagios/libexec";

    Tested on: Nagios® Core™ 3.4.1

     

    Last edit: Anonymous 2014-07-28

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.