Re: [Nagios-users] Nagios - layered monitoring:

2009-04-24 Thread Daniel López
On Friday 24 April 2009 09:49:34 Jones, Stuart wrote:
 I'm running Nagios 3.1 on Ubuntu 8.1 monitoring routers and switches.
 Has anyone come up with a methodology of limiting the alerts when say
 the primary router at a site fails impacting visibility to switches etc
 beyond the primary router?

 Thx Stuart

You should use hosts and service dependencies.

check the docs at nagios.org for more info.


regards, 

dani

--
Crystal Reports #45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
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] parsing log files on remote hosts

2009-04-17 Thread Daniel López
On Friday 17 April 2009 16:35:08 kaouther mechri wrote:
 Hello All,

 I am seraching a way to parse some  application log files on remote hosts
 and grep for specific words, I need to add this as a nagios check.

 Can anyone help me
 kind regards
 kaouther

check_logfiles is really nice. 

You can define several patterns to search and define several exclude patterns 
per warning/critical/logfile. 

http://www.consol.com/opensource/nagios/check-logfiles


regards, 

Dani

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
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] check snmp

2008-11-18 Thread Daniel López
On Tuesday 18 November 2008 02:09:52 pm Melanie Pfefer wrote:
 hi

 I already listed the available oid using snmpwalk. I did not find any oid
 about snmp

 should I use just any oid?


i think you should use check_tcp to see if the port is available.

If you want to use check_snmp to check the snmp just ask for the Uptime.oid 
(or any oid as you say) as long as it replies the service is available.

greetings,

dani

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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


[Nagios-users] host with multiple addresses and check_nrpe

2008-10-30 Thread Daniel López
Hi all,


i've succesfully created a host with multiple addresses like this:

define host{
use server-sistemes
host_name   Cluster-correu
alias   Sun Cluster Correu
address host1,host2,host3
}

and check_host_alive returns ok if host1 answers. 

This works as expected in http://www.nagios.org/faqs/viewfaq.php?faq_id=146

Now, check_nrpe doesn't take host1 as the $HOSTADDRESS$ 
but host1,host2,host3.

** FRom faq_id=146 **
Nagios simply passes this address to plugins and external commands via the 
$HOSTADDRESS$ macro. You'll have to make sure that you host check command 
(and possibly service checks, etc.) can understand the format of your host's 
address in order to check it though. 

Does not check_nrpe handle correctly the list of addresses?

What we want to achieve is executing some checks through nrpe in either of 
hosts 1,2 or 3 (whatever that is alive) but not on the three because the 
result will be the same.

How could i handle this?

greetings and thanks in advance,

dani

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] host with multiple addresses and check_nrpe

2008-10-30 Thread Daniel López
On Thursday 30 October 2008 02:10:16 pm Marc Powell wrote:

  Does not check_nrpe handle correctly the list of addresses?

 No, it does not. Most of the standard nagios plugins wouldn't. They
 expect a single host address.

ooh, ok. 

  How could i handle this?

 Write a wrapper plugin that accepts multiple host addresses,
 determines the 'aliveness' of host 1, 2 and 3, runs check_nrpe against
 the one you're interested in and returns the results, including exit
 code to nagios?

Ok, thanks a lot, Mark, it's a solution. I'll have to do that. 

 Marc


Dani

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] get more debugging from nrpe?

2008-10-23 Thread Daniel López
On Thursday 23 October 2008 08:01:56 am Paul, Chris Y wrote:
 Hello nagios users.


hi

 I have an nrpe daemon working when I check remotely running check_nrpe
 manually, but as run from the nagios daemon, it is not returning
 anything and the service is stuck on PENDING.

latency, maybe?

 How do I get more debugging info from nrpe? I am running it with ___-d___ 
but
 only see startup and shutdown. I'm guessing because syslogd isn't
 configured to write info or debug anywhere I don't have root on this
 particular box so I have to go through someone else now I guess to get
 this syslog.conf change.. (right?)


it seems you started nrpe like this:

nrpe -c nrpe.cfg -d , didn't you?

then this -d options mean daemon. To enable debug edit nrpe.cfg, search for 
debug=0 and turn it into 1. Restart nrpe.

It doesn't have to do anything with syslog.

Otherwise, I misunderstood you, and I'm sorry.

I hope this helps.


Dani.
 Chris Paul

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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


[Nagios-users] solaris 10 zones check_procs

2008-07-02 Thread Daniel López
Hi everybody, 


we are having problems using check_procs in solaris 10 boxes (virtual zones), 
works very well in the global zone.

We are using pst3 and check_procs from nagios-plugins-1.4.12.

i have found a thread from early 2007:

http://forum.java.sun.com/thread.jspa?threadID=5112366messageID=9879024

and says:

Also keep in mind to not run the plugins in a Solaris Zone. The reason being 
is that the check_procs plugin requires access to /dev/kmem which is not 
allowed in a non global Solaris zone. 


Is there a way to make work check_procs from inside the virtual zones?


thanks in advance,


dani

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
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] Sidebar disappearing in Firefox

2008-07-01 Thread Daniel López

 Not that I know of, no. If a browser setting were causing it, surely I
 should see it all the time, and I don't - it's only an occasional
 visitor, and I've only seen it in Firefox, not Safari (though I do
 look at Nagios more with FF than Safari).  I'm quite prepared to
 believe it's a browser issue, but I'm wondering if anybody else has
 seen it.

it seems to me that the side bar is rolled up...

 did you press Av Pag o Re Pag keybord keys??


at least i happens to me all the time.

dani

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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] nrpe error - nrpe 1.9 - RHEL 5.2

2008-06-12 Thread Daniel López
On Thu June 12 2008 17:57:09 Tom Brown wrote:
 # ./check_nrpe -H xx0204 -c check_hpasm
 UNKNOWN - insufficient rights to call sudo /sbin/hpasmcli

 BUT nrpe is running as the user nagios

 $ ps auxwww | grep nrpe
 nagios   23963  0.0  0.0  10232   876 ?Ss   15:10   0:00
 /opt/nagios/bin/nrpe -c /opt/nagios/etc/nrpe.cfg -d

 and if i run the plugin exactly how its called from nrpe using the
 nagios user it works fine

 [EMAIL PROTECTED] ~]$ /opt/nagios/libexec/check_hpasm
 OK - Chassis Status OK

 so anyone got any thoughts on how to debug this?

Hi, 


I bet it's a sudo issue, maybe related to restrictions executing sudo outside 
a real tty. There was an option in sudoers config related to this. 

eventually try to use capture_plugin.pl ... it works nice.

regards, 

dani

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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] check_snmp_int.pl: over 100%?

2008-06-09 Thread Daniel López
On Sun June 8 2008 20:05:42 Ford, Andy wrote:

 I think my device has got erroneous info in it's reported ifSpeeds:

 RFC1213-MIB::ifSpeed.1 = Gauge32: 10
 RFC1213-MIB::ifSpeed.2 = Gauge32: 10
 RFC1213-MIB::ifSpeed.3 = Gauge32: 10
 RFC1213-MIB::ifSpeed.4 = Gauge32: 10
 RFC1213-MIB::ifSpeed.5 = Gauge32: 10
 RFC1213-MIB::ifSpeed.6 = Gauge32: 10
 RFC1213-MIB::ifSpeed.7 = Gauge32: 1
 RFC1213-MIB::ifSpeed.8 = Gauge32: 1

 Those can't be right for these kind of interfaces, can they?

 RFC1213-MIB::ifDescr.1 = STRING: eth-s1p1 Ethernet Layer Intel 10/100
 Ethernet
 RFC1213-MIB::ifDescr.2 = STRING: eth-s1p2 Ethernet Layer Intel 10/100
 Ethernet
 RFC1213-MIB::ifDescr.3 = STRING: eth-s1p3 Ethernet Layer Intel 10/100
 Ethernet
 RFC1213-MIB::ifDescr.4 = STRING: eth-s1p4 Ethernet Layer Intel 10/100
 Ethernet
 RFC1213-MIB::ifDescr.5 = STRING: eth-s4p1 Ethernet Layer Intel Gigabit
 Ethernet
 RFC1213-MIB::ifDescr.6 = STRING: eth-s4p2 Ethernet Layer Intel Gigabit
 Ethernet
 RFC1213-MIB::ifDescr.7 = STRING: eth-s4p3 Ethernet Layer Intel Gigabit
 Ethernet
 RFC1213-MIB::ifDescr.8 = STRING: eth-s4p4 Ethernet Layer Intel Gigabit
 Ethernet

 I wonder if I need to just multiply by 1,000 or something.


http://www.mg-soft.si/mgMibExplorer-samples/RFC1213-MIB.html#ifspeed

-- 1.3.6.1.2.1.2.2.1.5
ifSpeed OBJECT-TYPE
SYNTAX Gauge
ACCESS read-only
STATUS mandatory
DESCRIPTION
An estimate of the interface's current bandwidth
in bits per second.  For interfaces which do not
vary in bandwidth or for those where no accurate
estimation can be made, this object should contain
the nominal bandwidth.


dani

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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] check_snmp_int.pl: over 100%?

2008-06-05 Thread Daniel López
On Thu June 5 2008 17:30:24 Ford, Andy wrote:
 I'm trying to use check_snmp_int.pl (not standard, see
 http://nagios.manubulon.com/snmp_int.html) but when I try to get my
 results in percent form, I get over 100% results on at least on device:


 $./check_snmp_int.pl -HDEVICE -CXXX --name 'eth-s1p1 ' --perfcheck
 --perfspeed --warning=40,60  --critical=60,80 --prct
 eth-s1p1 Ethernet Layer Intel 10/100 Ethernet:UP (CRIT 180.3%/CRIT
 468.1%):(1 UP): CRITICAL


 Am I just using the options wrong?

try this:

check_cisco_int -H $HOSTADDRESS$ -C $USER4$ -B -u -r -f -n $ARG1$ -kY -w 
80,80 -c 90,90 -d 600


regards, 


dani

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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] Strange NRPE Problem...

2008-04-28 Thread Daniel López
On Mon April 28 2008 16:57:00 Gavin Williams wrote:
 The NRPE Demon is running under the Local System account - all my
 previous DB scripts have worked fine, so not sure why this one is any
 different...

 Not sure of any ways of explicitly testing it under the Local System
 account...

give a try ti Capture_Plugin

http://www.waggy.at/nagios/capture_plugin.htm

regards, 


Daniel López

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
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


[Nagios-users] notes_url $USERX$

2008-01-25 Thread Daniel López
Hi all, 


we are planning to migrate our nagios installation from one machine to another 
one and we noticed that we had a lot of things hardcoded in the 
configuration.

We would like to reference our wiki url in the notes_url so we can eventally 
migrate from one server to the other:

notes_url $USER11$/$HOSTNAME$

but this doesn't seem to work:

nagios.myhost.tld/nagios

and no the expected nagios.myhost.tld/wiki/nagios.

I suspect this could be due to restrictions in macros but not sure about that.

we are working with nagios 2.10.

Does anyone know how we could do this?

thanks in advance.

Dani

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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