websphere

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.
ariarlet
Posts: 61
Joined: Wed Apr 22, 2015 11:04 am

websphere

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: websphere

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
ariarlet
Posts: 61
Joined: Wed Apr 22, 2015 11:04 am

Re: websphere

Post by ariarlet »

It is a good idea , but you may have servers with more than one service
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: websphere

Post 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?
ariarlet
Posts: 61
Joined: Wed Apr 22, 2015 11:04 am

Re: websphere

Post by ariarlet »

There is no way that this works just putting the name of the service?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: websphere

Post by tgriep »

Are you looking to see if a Websphere server is running and is functional?
Be sure to check out our Knowledgebase for helpful articles and solutions!
ariarlet
Posts: 61
Joined: Wed Apr 22, 2015 11:04 am

Re: websphere

Post by ariarlet »

I want to see if one of these services was running in x server
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: websphere

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
ariarlet
Posts: 61
Joined: Wed Apr 22, 2015 11:04 am

Re: websphere

Post 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.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: websphere

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked