Page 1 of 2

websphere

Posted: Wed Jun 03, 2015 11:33 am
by ariarlet
Hello

How I can verify that a service is running or was booted from nagios .

The closest thing I found is http check , but it can happen that the web service responds but not.

Thanks

Re: websphere

Posted: Wed Jun 03, 2015 11:47 am
by abrist
You can use check_procs:

Code: Select all

Examples:
 check_procs -w 2:2 -c 2:1024 -C portsentry
  Warning if not two processes with command name portsentry.
  Critical if < 2 or > 1024 processes

 check_procs -w 10 -a '/usr/local/bin/perl' -u root
  Warning alert if > 10 processes with command arguments containing
  '/usr/local/bin/perl' and owned by root
Or check_services:

Code: Select all

check_services - 0.01.1

Usage: check_services -p egrep_patern_to_find_in_procs[,...]
Usage: check_services -h (help)
Usage: check_services -V (version)
Or use one of the many plugins on the exchange:
https://exchange.nagios.org/index.php?o ... ck_service
https://exchange.nagios.org/index.php?o ... ck_process

Re: websphere

Posted: Thu Jun 04, 2015 10:42 am
by ariarlet
It is a good idea , but you may have servers with more than one service

Re: websphere

Posted: Thu Jun 04, 2015 12:54 pm
by jdalrymple
Will you have a predictable number?

Code: Select all

check_procs -w 10:100 -c 9:1000 -C websphere
This will provide a warning alert if you have fewer than 10 or more than 100 websphere processes, and it will provide a critical alert if you have fewer than 9 or more than 1000.

Would this work?

Re: websphere

Posted: Tue Jun 09, 2015 11:44 am
by ariarlet
There is no way that this works just putting the name of the service?

Re: websphere

Posted: Tue Jun 09, 2015 3:21 pm
by tgriep
Are you looking to see if a Websphere server is running and is functional?

Re: websphere

Posted: Wed Jun 10, 2015 9:52 am
by ariarlet
I want to see if one of these services was running in x server

Re: websphere

Posted: Wed Jun 10, 2015 11:25 am
by tgriep
Take a look at the link below to the Exchange site for plugins that monitor a Websphere server. Would one of these work for you?
https://exchange.nagios.org/index.php?o ... =websphere

Re: websphere

Posted: Wed Jun 10, 2015 11:40 am
by ariarlet
yes, , That page I've looked but did not have what I want. That is whether the application of this fucionando was good, distinctly whether the service is running or stopped.

Re: websphere

Posted: Wed Jun 10, 2015 12:55 pm
by tgriep
Depending on the OS that is hosting your Websphere application, you could install Nagios Remote Plugin Executor "NRPE" on your remote system and then you could use the check_procs or check_services plugins to check to see if the service is running from the XI system.

Here is a link to the instructions for installing NRPE.
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
What is the Operation System that is hosting your Websphere application?