Re: [Nagios-users-br] Tomcat e JBoss

2007-04-15 Thread Jose Oliveira
Olá Emerson

Voce precisa considerar que o tomcat, assim como o JBOSS, se comportam como
servidores HTTP.

Assim sendo, voce pode simplesmente usar o check_http, passando a porta HTTP
que JBOSS (ou tomcat) escuta.

O único risco que voce corre (eu corro este risco aqui) é a conexão do seu
servidor de J2EE com o Banco de dados.

Se esta der pala, a página estática não detecta.

Para voce cadastrar uma página dinâmica que acesse o Banco, provavelmente
seu pessoal de aplicação desenvolverá uma página que pedirá usuário e senha,
para estabelecer sessão...
Esta ainda não consegui resolver mas com já monitoro o banco de Dados com
outro serviço, a possibildiade de dar algum PAU neste nível que citei é bem
pequena...



Em 09/04/07, Émerson Brum [EMAIL PROTECTED] escreveu:


 Bom dia,

 Estou procurando há alguns dias uma forma de monitorar os serviços TomCat
 e
 JBoss. Já tentei fazer a isntalação do NRPE e NSCA e segui todos os passos
 mas não consigo coletar informações destes dois serviços em especial. A
 possibilidade de monitorar por SNMPWalks foi descartada, mesmo embora
 exista
 uma MIB que descreve que estes dois processos estão rodando.

 A única coisa que encontrei que talvez possa ser útil é:

 You can also write your own plugins to do custom monitoring. For
 instance,

 there's no plugin to check if Tomcat is up or down. You could simply write
 a
 script that

 loads a default jsp page on a remote Tomcat server and returns a success
 or
 failure status

 based on the presence or lack of a predefined text value (i.e Tomcat is
 up) on the page.

 (In such a case you would need to add a definition for this custom command
 in your

 checkcommand.cfg file which we have not touched)



 Porém eu não faço idéia de como posso criar um script que faça isto.
 Alguém
 já passou por alguma experiência como está e possa me dar uma luz?



 abraços





 Att.

 Émerson P. Brum







 As informacoes contidas neste e-mail e nos arquivos anexados podem ser
 informacoes confidenciais ou privilegiadas. Caso voce nao seja o
 destinatario correto, apague o conteudo desta mensagem e notifique o
 remetente imediatamente.
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 --
 [EMAIL PROTECTED] mailing list
 https://lists.sourceforge.net/lists/listinfo/nagios-users-br
 Wiki: http://nagios-br.sf.net/wiki




-- 

Abraços
JGeraldo
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
-- 
[EMAIL PROTECTED] mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users-br
Wiki: http://nagios-br.sf.net/wiki


Re: [Nagios-users-br] Envio de info para uma página Web

2007-04-15 Thread Thales Azevedo
Oi André,

Um participante da lista em inglês me sugeriu usar o comando wget:

Ainda não testei, pensei que o wget fosse só para pegar dados de uma página 
e não para colocar.

 Hi Thales

In other words you like to send notifications to a website and use this
for your helpdesk.
This is easy done if you use linux wget  command instead of mail


define command{
command_nameservice-notify
command_line/bin/wget 
http://www.yourdomein.com/yourpage.php?hostadres=$Hostaddresshoststatus=$Hoststatusservicestatus=$SERVICESTATE
}


Good luck


Sjaak



Thales Azevedo wrote:

 Hi everybody,

 I am lookink for a plugin (or notification command ) that permit
 send variables ( $Hostaddress, $Hoststatus,  $SERVICESTATE and etc )
 to a homepage ( ASP application ). The objective is to open a ticket
 to helpdesk application automatically.

 It is possible use the check_http plugin ?

 Thanks in Advance,

 Thales Azevedo
 Rio de Janeiro - Brazil




- Original Message - 
From: André Luiz [EMAIL PROTECTED]
To: nagios-users-br [EMAIL PROTECTED]
Sent: Monday, April 02, 2007 3:22 AM
Subject: Re: [Nagios-users-br]Envio de info para uma página Web


Em Qua, 2007-03-21 às 23:07 -0300, Thales Azevedo escreveu:

 Pessoal,

 Preciso fazer um script para , como comando de notoficação , enviar 
 algumas variáveis para uma home page onde roda um programa ASP. Ou seja 
 com os parâmetros de notificação ( $HOSTNAME, $HOSTSTAUS e etc...) 
 preencher um tipo de forma em uma url. O comando contrário do wget é o 
 wput , mas ele funciona para servidores FTP. Alguém conhece alguma solução 
 ? Um script perl, um programa em C ou qualquer coisa semelhante. Com isso 
 pretendo abrir um ticket automático na nossa ferramenta de help-desk.

 Obrigado,

 Thales Azevedo,
 Rio de Janeiro - Brasil
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share 
 your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV


Explendido!... estou a procura da mesma solução!... utilizo Request
Tracker (RT) para abertura de Tikets. Tenho algumas idéias aqui mas não
sei se funcionam ex: da um insert no banco com as infomações dos
alertas
do Nagios a partir de um E-mail local /var/spool/mail.

Que ideia  louca essa minha!... deve dar problemas no Banco depois!...
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
-- 
[EMAIL PROTECTED] mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users-br
Wiki: http://nagios-br.sf.net/wiki


-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.26/746 - Release Date: 4/4/2007 
13:09



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
-- 
[EMAIL PROTECTED] mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users-br
Wiki: http://nagios-br.sf.net/wiki


Re: [Nagios-users-br] Adicionando centenas de hosts e serviços

2007-04-15 Thread Jose Oliveira
Vinicius

Aqui onde trabalho temos 200 hosts e 750 serviços, aproximadamente.

A primeira implantação foi sofrida mas demos conta...



Em 15/03/07, Vinícius de Figueiredo [EMAIL PROTECTED] escreveu:

 Fala galera,

 Estou implementando um servidor Nagios onde trabalho e vou adicionar
 pelo menos uns 200 servidores e seus serviços. Vocês conhecem algum
 script ou ferramenta qualquer que ajude nessa tarefa? Configurar os
 .CFGs manualmente chega a ser impossível em ambientes grandes. Alguém
 administra um Nagios em ambientes com centenas de hosts e sei lá
 quantos serviços? Qualquer dica sobre como adicionar e manter essas
 configurações é bem vinda.

 Abraço.

 Vinícius.

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 --
 [EMAIL PROTECTED] mailing list
 https://lists.sourceforge.net/lists/listinfo/nagios-users-br
 Wiki: http://nagios-br.sf.net/wiki




-- 

Abraços
JGeraldo
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
-- 
[EMAIL PROTECTED] mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users-br
Wiki: http://nagios-br.sf.net/wiki


[Nagios-users-br] Comunidade Nagios-BR

2007-04-15 Thread Alessandro Fernandes Martins
Amigos,

Com a finalidade de expandir o nosso grupo de usuários, o Ethan
(criador do Nagios) me cedeu o host: br.nagioscommunity.org com o
objetivo de ser uma referência pt_BR do Nagios e consequentemente
ajudar na divulgação do Projeto Nagios.

Portanto, gostaria de pedir aos usuários interessados para entrar em
contato comigo em particular para podemos iniciar os trabalhos.

Algumas premissas do projeto são:

- Ser referência na nossa língua (pt_BR);
- Blog;
- Wiki;
- Criação de um time de tradução da nova versão do Nagios (3.X) e documentação;
- Extinção do Wiki na SF (nagios-br.sf.net).

Atenciosamente,

-- 
Alessandro Martins
http://www.martins.eng.br

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
-- 
[EMAIL PROTECTED] mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users-br
Wiki: http://nagios-br.sf.net/wiki


Re: [Nagios-users] Need help for Nagios configuration

2007-04-15 Thread Anthony Montibello

hi,

Nagios is capable of monitoring many things,
your best option is to Read The Documentation.
then review the existing plugins that are out there.
(review the official plugins, and Nagios Exchange)

Basically nagios can check anything you want as long as you get can print
output and return the proper exit code.

For windows I recomend NC_Net (since I made it)
but there is also NS_CLient++, SNMP traps, NRPE
and several other ways to check against a windows box.
(once again check nagios Exchange)

Good Luck,
TOny  (author of NC_Net)


On 4/14/07, Mukta Sharma [EMAIL PROTECTED] wrote:


Hi,

I have installed and configured Nagios on my laptop which has Fedora as
virtual machine and it is working fine. But as I have installed on virtual
machine so i added windows wireless adapter IP address and vmware IP address
as the host. I am running the PING and HTTP service for both the host and
also added some services like CurrentLoad, CurrentUsers and Total processes
for the localmachine and all these services are working fine.

So can anyone please tell me what extra services i can add for these
particular hosts and if possible the syntax of adding those services.


Thanks and Regards,

Mukta Sharma
M.S Student, Computer Science.
The George Washington University

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Nagios-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Nagios-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Need help for Nagios configuration

2007-04-15 Thread Hugo van der Kooij
On Sat, 14 Apr 2007, Mukta Sharma wrote:

 So can anyone please tell me what extra services i can add for these 
 particular hosts and if possible the syntax of adding those services.

Nagios is all about monitoring services. If you have to ask others which 
services to monitor I would say these services do not need to be monitored 
because they are not important to you. If they were important you could 
name them to us.

If it is for educational purposes one should study the manuals. Read some 
bits of the tons of extra monitoring script available from nagios exchange 
and the archives of this mailinglist.

There is no substitute for learning things by finding information yourself 
and building things.

Hugo.

-- 
[EMAIL PROTECTED]   http://hugo.vanderkooij.org/
This message is using 100% recycled electrons.

Some men see computers as they are and say Windows
I use computers with Linux and say Why Windows?
(Thanks JFK, for the insight.)

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Nagios-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Plugin for HP Proliant Hardware Health Monitoring

2007-04-15 Thread Gerhard Lausser
Hi Jamie and list,

that broken link will be corrected tomorrow (i need the typo3 guy to publish
the corrected page). In the meantime please use
http://www.consol.de/fileadmin/opensource/Nagios/check_hpasm-1.1.tgz

Sorry for the inconvenience,
Gerhard 

 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] Im 
 Auftrag von James E. Pratt
 Gesendet: Samstag, 14. April 2007 13:19
 An: [EMAIL PROTECTED]
 Betreff: Re: [Nagios-users] Plugin for HP Proliant Hardware 
 Health Monitoring
 
 Would love to check this out - anyone able to download it? I 
 keep getting Page cannot be displayed on the download link, 
 and can't get email to Gerhard either, as it keeps timing 
 out/deferring on his mail server...
 
 :( 
 
 Regards,
 jamie
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Gerhard Lausser
 Sent: Friday, April 13, 2007 1:02 PM
 To: [EMAIL PROTECTED]
 Subject: [Nagios-users] Plugin for HP Proliant Hardware 
 Health Monitoring
 
 Hi,
 
 i make a plugin, which checks the state of CPUs, fans, power 
 supplies, fans and memory modules of HP Proliant servers with 
 the hpasm software installed.
 Maybe it is useful for some of you.
 http://www.consol.com/opensource/nagios/check-hpasm
 
 Greetings from Munich,
 Gerhard
 
 --
 ---
 Take Surveys. Earn Cash. Influence the Future of IT Join 
 SourceForge.net's Techsay panel and you'll get the chance to 
 share your opinions on IT  business topics through brief 
 surveys-and earn cash 
 http://www.techsay.com/default.php?page=join.phpp=sourceforge
 CID=DEVDEV
 ___
 Nagios-users mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 ::: Please include Nagios version, plugin version (-v) and OS 
 when reporting any issue. 
 ::: Messages without supporting info will risk being sent to /dev/null
 


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Nagios-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Service dependencies not disabling notifications

2007-04-15 Thread C. Bensend

Hey folks,

   I could swear I've asked this before, but neither Google nor the
mailing list archives showed any posts.  My apologies if this is
indeed a repeat, my memory flakes out sometimes.

   I have a v2.8 installation on an OpenBSD machine.  It was built
from source, not installed via packages/ports.

   I have another OpenBSD machine called electron:


# 'electron' host definition
define host{
use generic-host
host_name   electron
alias   OpenBSD workstation - electron
address electron.bennyvision.com
check_command   check-host-alive
max_check_attempts  15
notification_interval   0
notification_period none
notification_optionsd,u,r
contact_groups  admins-email
}


It's just a workstation, I don't care as much if it's offline as if it's
online and something's broken, hence the 'notification_period 0'. I have
three services set up, that are checked via NRPE:


# Service definition
define service{
use generic-service
host_name   electron
service_description clamd
is_volatile 0
check_period24x7
max_check_attempts  6
normal_check_interval   3
retry_check_interval1
contact_groups  admins-email
notification_interval   240
notification_period 24x7
notification_optionsw,u,c,r
check_command   check_procs_nrpe!1:1!clamd }

# Service definition
define service{
use generic-service
host_name   electron
service_description freshclam
is_volatile 0
check_period24x7
max_check_attempts  6
normal_check_interval   3
retry_check_interval1
contact_groups  admins-email
notification_interval   240
notification_period 24x7
notification_optionsw,u,c,r
check_command   check_procs_nrpe!1:1!freshclam }

# Service definition
define service{
use generic-service
host_name   electron
service_description freshclam log
is_volatile 0
check_period24x7
max_check_attempts  6
normal_check_interval   3
retry_check_interval1
contact_groups  admins-email
notification_interval   240
notification_period 24x7
notification_optionsw,u,c,r
check_command   check_freshclam_log_nrpe
}


Basically, I'm checking to make sure clamd and freshclam are running, and
that freshclam is actually updating it's log file, respectively. These all
work just fine, NRPE is executing the checks, it all works. I get notified
just fine if I kill a service or NRPE, and I get the recovery emails as
well when I start them back up.  Yay.

However, I want to set up service dependencies for NRPE on this and all my
other hosts, so if something weird happens to it, I don't get spanked by a
gazillion alerts for each service.  This shouldn't be that difficult, but
I cannot for the life of me get service dependencies working as I think
they should.

I have three service dependencies set up for electron:


# Servicedependency definition
define servicedependency{
host_name   electron
service_description nrpe
dependent_host_name electron
dependent_service_description   clamd
execution_failure_criteria  w,u,c,p
notification_failure_criteria   w,u,c,p
}

# Servicedependency definition
define servicedependency{
host_name   electron
service_description nrpe
dependent_host_name electron
dependent_service_description   freshclam
execution_failure_criteria  w,u,c,p
notification_failure_criteria   w,u,c,p
}

# Servicedependency definition
define servicedependency{
host_name   electron
service_description nrpe
dependent_host_name electron
dependent_service_description   freshclam log
execution_failure_criteria  w,u,c,p
notification_failure_criteria   w,u,c,p
}


nagios -v is happy with this, it does not complain about any config
errors.  However, if I kill NRPE on electron, I get an alert for
each of the supposedly 

Re: [Nagios-users] Service dependencies not disabling notifications

2007-04-15 Thread Thomas Guyot-Sionnest
On 15/04/07 10:38 PM, C. Bensend wrote:
 Hey folks,
 
 
 
 nagios -v is happy with this, it does not complain about any config
 errors.  However, if I kill NRPE on electron, I get an alert for
 each of the supposedly dependent services.  I am absolutely at a
 loss to see why.
 
 I have been through /nagios/docs/xodtemplate.html#servicedependency a
 gazillion times - what in the heck am I missing?  No matter what options I
 give for *_failure_criteria, I cannot get the dependency to NOT alert me
 when NRPE is down on electron.
 
 This is driving me nuts.  If someone could point out where I'm going
 wrong, I'd _really_ appreciate it.

Take a very close look at the output of nagios -v. It happened to me
in the past that making a small error in the servicedependency
definitions would make Nagios discard them as Lame service dependency
without counting it in the warning/error count. This is logged at the
top and discarded before Nagios enters the objects verification step.

This is likely your problem. Maybe this should cause Nagios to die
instead of skipping part of the configuration

Thomas

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Service dependencies not disabling notifications

2007-04-15 Thread C. Bensend

 Take a very close look at the output of nagios -v. It happened to me
 in the past that making a small error in the servicedependency
 definitions would make Nagios discard them as Lame service dependency
 without counting it in the warning/error count. This is logged at the
 top and discarded before Nagios enters the objects verification step.

 This is likely your problem. Maybe this should cause Nagios to die
 instead of skipping part of the configuration

Thanks for the suggestion, Thomas, but I don't see any problems:


Nagios 2.8
Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org)
Last Modified: 03-08-2007
License: GPL

Reading configuration data...

Running pre-flight check on configuration data...

Checking services...
Checked 77 services.
Checking hosts...
Checked 12 hosts.
Checking host groups...
Checked 4 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Checked 2 contacts.
Checking contact groups...
Checked 2 contact groups.
Checking service escalations...
Checked 0 service escalations.
Checking service dependencies...
Checked 64 service dependencies.
Checking host escalations...
Checked 0 host escalations.
Checking host dependencies...
Checked 0 host dependencies.
Checking commands...
Checked 73 commands.
Checking time periods...
Checked 5 time periods.
Checking extended host info definitions...
Checked 11 extended host info definitions.
Checking extended service info definitions...
Checked 0 extended service info definitions.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors:   0

Things look okay - No serious problems were detected during the pre-flight
check


:(

Benny


-- 
I've said it before and I'll say it again: If I ever catch a spammer,
I will hang him upside down with rusty barbed wire by his nether-regions
over a pit of rabid lawyers who haven't eaten in days...
  -- Benjamin A. Shelton



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null