Nagios Plugin [.sh] not working


 
Thread Tools Search this Thread
Operating Systems Linux Nagios Plugin [.sh] not working
# 1  
Old 02-26-2013
Nagios Plugin [.sh] not working

Hello.

I am working on setup a nagios plugin for monitor tomcat instance from tomcat manager.

This is a script file downloaded from
PHP Code:
http://exchange.nagios.org/directory/Plugins/Java-Applications-and-Servers/Apache-Tomcat/check_TomcatApplication/details 
This is working fine when executed as shell by passing variables

PHP Code:
[root@monitor ~]# ./check_TomcatApplication --user admin --password password --host 192.168.11.15 --port 8080 --appname DEMO_32

OKApplication DEMO_32 is running
Now when i configured this as a nagios command in command.cfg this is not working.

PHP Code:
define command{
       
command_name check_TomcatApplication
       command_line $USER1
$/check_TomcatApplication --user $USER13$ --password $USER14$ --host $HOSTADDRESS$ --port $ARG1$ --appname $ARG2$
       } 
Below is the lines added in services.cfg of nagios to add the same for host

PHP Code:
# check Tomcat Status
define service{
        use                            
generic-service
        host_name                      hostname
        service_description            Tomcat Status
        is_volatile                    0
        check_period                   24x7
        max_check_attempts             3
        normal_check_interval          3
        retry_check_interval           1
        contact_groups                 winadmins
        notification_interval          120
        notification_period            24x7
        notification_options           w
,u,c,r
        check_command               check_TomcatApplication
!8080!DEMO_32 
But on UI it says application is not running.

Please help me to figure out this issue
# 2  
Old 02-26-2013
Is it collecting? Maybe between it is 'not running'?
# 3  
Old 02-27-2013
I checked the both parallely but shell script on bash shows exact status of the instance where as when add the same as nagios command it says not running. So might be i am missing something while creating nagios command for this plugin.
# 4  
Old 02-27-2013
The setup seems crazy complex. Maybe you can review this as a checklist; it seems very detailed: Complete Nagios Configuration and NRPE addon Configuration
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Check_by_ssh plugin (nagios users)

Hi Everyone, I need help from the nagios users out there. I have setup a new service using the check_by_ssh plugin and is executing the script on the remote server but I wonder what am I missing because is not picking up the returning values of my script. Basically the script on the remote host... (1 Reply)
Discussion started by: arizah
1 Replies

2. Emergency UNIX and Linux Support

[Solved] Java Plugin not working w/Firefox 7 on Solaris x86

I upgraded my server to Firefox version 7.0.1 and created a symbolic link to /usr/jdk/instances/jdk1.6.0/jre/lib/i386/libnpjp2.so in the /usr/lib/firefox/plugins directory. According to the directions from the mozilla site, this should work. But whenever i attempt to access an app that requires... (0 Replies)
Discussion started by: goose25
0 Replies

3. Ubuntu

Voice plugin not working!

Hi, I am using Ubuntu 10.04. I installed Google talk voice and video plug-in. But audio is not working for me and video is working fine. So can I do some tweaking to enable it again? Note that I have just Mozilla Firefox with me (0 Replies)
Discussion started by: nixhead
0 Replies

4. Infrastructure Monitoring

Nagios plugin check_local_mrtgtraf

Hi, Can somebody direct me to these plugin for nagios check_local_mrtgtraf check_snmp Documentation says it's a part of the latest plugin release but i have installed it and it seems it is not. I do have done search but couldn't find any link from where i can download these. Thanks in... (1 Reply)
Discussion started by: uxadmin007
1 Replies

5. Infrastructure Monitoring

google talk notification on Nagios is not working

Hi i have installed Nagios 3.0.6 on Centos 5.2 also to configure it i have installed Centreon, my problem is the following , i have created a user for Nagios on google talk and using an script from the web trying to send notification for host status and services. i have tested the script using... (0 Replies)
Discussion started by: pokker67
0 Replies

6. Infrastructure Monitoring

Nagios plugin 1-wire temperature 1.0 (Default branch)

Nagios plugin 1-wire temperature uses a 1-wire sensor to measure temperature and returns WARNING or CRITICAL if it is too low or high. License: GNU General Public License v2 Changes: First and inititial version http://feedads.googleadservices.com/~at/FPTKN1wjxsDHIgakUf3w1zqACIQ/i ... (0 Replies)
Discussion started by: Linux Bot
0 Replies

7. BSD

Java plugin not working with Firefox 3

Hi, I use FreeBSD 7.1-RELEASE with Firefox 3.0.5 and am having some trouble getting the Java VM working. I have tried both the diablo-jre16 and diablo-jdk16 ports with the javavmwrapper installed. I tried the diablo ports installed individually and together, and have tried installing them... (1 Reply)
Discussion started by: whetphish
1 Replies

8. Solaris

Nagios NRPE plugin won't install

Hi have a Solaris 9 box and I'm trying to install Nagios on it. I've installed the GCC compiler as well as OpenSSL and OpenSSH. When I run the # ./configure for the nrpe plugin it executes without any obvious errors. However, when I run the # make install afterwards if fails with the... (0 Replies)
Discussion started by: soliberus
0 Replies
Login or Register to Ask a Question