Re: [Nagios-users] Re : Re : a reboot switch or router

2008-07-16 Thread Larry Low
whyReload is part of OLD-CISCO-SYSTEM-MIB


Larry Low
9237 E Via de Ventura, Ste 250
Scottsdale, AZ  85258
Office: 480.385.7045
E-mail: [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>'

Telesphere Networks, Inc

From: Kermito le kermit [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 16, 2008 6:40 AM
To: Larry Low
Subject: Re : [Nagios-users] Re : a reboot switch or router


 hello,

warmStart and coldStart traps can be send when i activate snmp on router again, 
is not restart in this case, for whyReload i search method to put this on 
snmptt but no MIB give me this (not trap like coldstart)

help me please



- Message d'origine ----
De : Larry Low <[EMAIL PROTECTED]>
À : "nagios-users@lists.sourceforge.net" 
Envoyé le : Mardi, 15 Juillet 2008, 19h43mn 53s
Objet : Re: [Nagios-users] Re : a reboot switch or router
There is a Cisco proprietary trap that comes in as cisco.0.0 which indicates a 
reload has been initiated.

There are also the warmStart and coldStart traps that indicate the snmp engine 
has restarted.  Again with Cisco there is a proprietary whyReload portion of 
these traps that indicate why the last reload occurred.


Larry Low
9237 E Via de Ventura, Ste 250
Scottsdale, AZ  85258
Office: 480.385.7045
E-mail: [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>'

Telesphere Networks, Inc

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kermito le kermit
Sent: Tuesday, July 15, 2008 3:15 AM
To: Brian A. Seklecki
Cc: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Re : a reboot switch or router

hello all,

DISMAN-EVENT-MIB::sysUpTimeInstance, give time but there are trap snmp to say 
the system reboot before reboot

thanks for your help.




- Message d'origine 
De : Brian A. Seklecki <[EMAIL PROTECTED]>
À : Ange AMBEMOU <[EMAIL PROTECTED]>
Cc : nagios-users@lists.sourceforge.net
Envoyé le : Vendredi, 11 Juillet 2008, 12h45mn 17s
Objet : Re: [Nagios-users] a reboot switch or router



On Fri, 11 Jul 2008, Ange AMBEMOU wrote:

>
>  helo,
>
> how know switch or router are reboot and  send notifiction.
>

Use the check_snmp check on DISMAN-EVENT-MIB::sysUpTimeInstance

$ snmpwalk -v2c -c foo hv00 |more

SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (32732343) 3 days,
18:55:23.43

~BAS

> i explain  if  in config of my router check period is 10mn  and between to 
> check the router be  down after up the next check see only the router is up. 
> how make alert to say the
> router down immediatly
>
> sorry for my bad english :)
>
> thanks.
>
>
>
> _
> Envoyé avec Yahoo! Mail.
> Une boite mail plus intelligente.
>


Envoyé avec Yahoo! 
Mail<http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http:/us.rd.yahoo.com/evt=52423/*http:/fr.docs.yahoo.com/mail/overview/index.html>.
Une boite mail plus intelligente.


Envoyé avec Yahoo! 
Mail<http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http:/us.rd.yahoo.com/evt=52423/*http:/fr.docs.yahoo.com/mail/overview/index.html>.
Une boite mail plus intelligente.
-
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=100&url=/___
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] Re : a reboot switch or router

2008-07-15 Thread Larry Low
There is a Cisco proprietary trap that comes in as cisco.0.0 which indicates a 
reload has been initiated.

There are also the warmStart and coldStart traps that indicate the snmp engine 
has restarted.  Again with Cisco there is a proprietary whyReload portion of 
these traps that indicate why the last reload occurred.


Larry Low
9237 E Via de Ventura, Ste 250
Scottsdale, AZ  85258
Office: 480.385.7045
E-mail: [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>'

Telesphere Networks, Inc

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kermito le kermit
Sent: Tuesday, July 15, 2008 3:15 AM
To: Brian A. Seklecki
Cc: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Re : a reboot switch or router

hello all,

DISMAN-EVENT-MIB::sysUpTimeInstance, give time but there are trap snmp to say 
the system reboot before reboot

thanks for your help.




- Message d'origine 
De : Brian A. Seklecki <[EMAIL PROTECTED]>
À : Ange AMBEMOU <[EMAIL PROTECTED]>
Cc : nagios-users@lists.sourceforge.net
Envoyé le : Vendredi, 11 Juillet 2008, 12h45mn 17s
Objet : Re: [Nagios-users] a reboot switch or router



On Fri, 11 Jul 2008, Ange AMBEMOU wrote:

>
>  helo,
>
> how know switch or router are reboot and  send notifiction.
>

Use the check_snmp check on DISMAN-EVENT-MIB::sysUpTimeInstance

$ snmpwalk -v2c -c foo hv00 |more

SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (32732343) 3 days,
18:55:23.43

~BAS

> i explain  if  in config of my router check period is 10mn  and between to 
> check the router be  down after up the next check see only the router is up. 
> how make alert to say the
> router down immediatly
>
> sorry for my bad english :)
>
> thanks.
>
>
>
> _
> Envoyé avec Yahoo! Mail.
> Une boite mail plus intelligente.
>


Envoyé avec Yahoo! 
Mail<http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http:/us.rd.yahoo.com/evt=52423/*http:/fr.docs.yahoo.com/mail/overview/index.html>.
Une boite mail plus intelligente.
-
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=100&url=/___
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] OSPF

2008-07-15 Thread Larry Low
It is the address of the neighbor.  If you did a show ip ospf neighbor on a 
Cisco router it would be the “Address” field.


Larry Low
9237 E Via de Ventura, Ste 250
Scottsdale, AZ  85258
Office: 480.385.7045
E-mail: [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>'

Telesphere Networks, Inc

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kermito le kermit
Sent: Tuesday, July 15, 2008 7:14 AM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] OSPF





hello

when i use plugin i have this :

 ./check_ospf.0.1.pl -H 10.1.5.13 -p 12.10.1.2
CRITICAL - 12.10.1.2  is not in neighbor table.


what is  -p option a see peer ???


tthanks


- Message d'origine 
De : Alex Dehaini <[EMAIL PROTECTED]>
À : Ange AMBEMOU <[EMAIL PROTECTED]>; Nagios Users Mailinglist 

Envoyé le : Vendredi, 11 Juillet 2008, 11h32mn 05s
Objet : Re: [Nagios-users] OSPF

Yes it is. Check the nagiosexchange site for this plugin.

Lex
On Fri, Jul 11, 2008 at 10:29 AM, Ange AMBEMOU <[EMAIL PROTECTED]<mailto:[EMAIL 
PROTECTED]>> wrote:
helo all,

i want to know if is possible to nagios to check the OSPF on router thanks




Envoyé avec Yahoo! 
Mail<http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http:/us.rd.yahoo.com/evt=52423/*http:/fr.docs.yahoo.com/mail/overview/index.html>.
Une boite mail plus intelligente.

-
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<mailto: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



--
Alex Dehaini
Developer
Team - www.konolabs.com<http://www.konolabs.com>
Site - www.alexdehaini.com<http://www.alexdehaini.com>
Email - [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>


Envoyé avec Yahoo! 
Mail<http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http:/us.rd.yahoo.com/evt=52423/*http:/fr.docs.yahoo.com/mail/overview/index.html>.
Une boite mail plus intelligente.


Envoyé avec Yahoo! 
Mail<http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http:/us.rd.yahoo.com/evt=52423/*http:/fr.docs.yahoo.com/mail/overview/index.html>.
Une boite mail plus intelligente.
-
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=100&url=/___
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] Does NDOUtils works with Nagio 3.0.x ?

2008-06-26 Thread Larry Low
I'm running it without too much problems (~3 minute start) with the 
event_broker_options of 36865 which is BROKER_RETENTION_DATA | 
BROKER_STATUS_DATA | BROKER_PROGRAM_STATE.  That's with 900 hosts and 7300 
services (1000-2000 checks are only passive, others are active/passive).

From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of Jason [EMAIL PROTECTED]
Sent: Thursday, June 26, 2008 6:13 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Does NDOUtils works with Nagio 3.0.x ?

Hi all,

Has anyone tried using NDOUtils with Nagios 3.0.x? Does it work fine?

According to my fren who used NDOUtils 1.4b7 on Nagios 3.0.1, accessing the
mysql db to look at the stored info took a long time. Sometimes, it would hang.

Thanks.




-
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

-
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] Relaunch of NagiosExchange.org

2008-04-01 Thread Larry Low
Nice :)


Larry Low
4150 N Drinkwater Blvd., 5th Floor
Scottsdale, AZ  85251
Office: 480.385.7045
E-mail: [EMAIL PROTECTED]'

Telesphere Networks, Inc


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Streb
Sent: Tuesday, April 01, 2008 8:28 AM
To: Nagios Users Mailinglist
Subject: [Nagios-users] Relaunch of NagiosExchange.org

Hi List,

as we announced on the NagiosConference in 2007, NagiosExchange.org is now
completeley relaunched and moved to a new infrastructure.

The previous projects and users are completely imported and we will
recategorize the projects in the near future.
Now there is a newsletter you can subscribe to and wich will inform you
about changes in the selected categories.

We hope you enjoy the new style and performance at
http://www.nagiosexchange.org

Best Regards,

Michael
--
Michael Streb
Senior Consultant

NETWAYS GmbH | Deutschherrnstr. 47a | D-90429 Nürnberg
Tel: +49 911 92885-0 | Fax: +49 911 92885-77
GF: Julian Hein | AG Nürnberg HRB18461

http://www.netways.de | [EMAIL PROTECTED]

** NETWAYS Nagios Konferenz 2008 - http://www.nagioskonferenz.de **


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
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

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
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] Can Cacti poll passively via Nagios client?

2008-03-19 Thread Larry Low
There are two ways I've used to accomplish this.  The first method I used was 
having Cacti poll data then use a RRD check plugin to get the last data and 
alert if it triggered an alarm.  The latest method I've used which needs some 
additional work is to use the Cacti plugin Thold to trigger a breach of a 
threshold.  I think use Nagios to access the mySQL database and check the thold 
table if the alert is triggered or not (check_cacti_thold).  Placing your 
database somewhere both systems can access will get you to where you want.

The main reason I do this is because Cacti provides a much more "time" reliable 
polling mechanism unlike Nagios's scheduling.


Larry Low

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Max
Sent: Wednesday, March 19, 2008 2:26 PM
To: Nagios Users Mailinglist
Subject: Re: [Nagios-users] Can Cacti poll passively via Nagios client?

On Wed, Mar 19, 2008 at 5:20 PM, Roger <[EMAIL PROTECTED]> wrote:
> Is it possible to use Cacti to poll via passive checks on servers?
>
> Since Nagios has a problem with a high numbers of active checks, I'm hoping
> to use Cacti's poller to tell servers buried behind firewalls to check
> neighboring internal devices and then report back to the centralized Cacti
> servers in my colo.
>
> Any thoughts on this?

You could use Cacti to poll, as a part of each check you do, have it
append to a file, a database, some type of persistent storage, and
then have a another script that runs, either via cron or as a daemon,
that pulls events from the persistent store and submits them to Nagios
as passive checks using NSCA ... or have the checks themselves call
send_nsca to submit the checks to Nagios over the wire ...

I know that doesn't give you an all Cacti solution, but this is a
Nagios group :).

Have you thought about using distributed Nagios as another solution to
this problem?

Finally, if you make use of perfdata and use PNP or another graphing
framework add-on to Nagios, you can pretty much replace Cacti
altogether for graphing and reduce the double polling that happens
when Cacti and Nagios are checking the same sets of devices ...

- Max

-
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

-
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


[Nagios-users] Notification Macros to Determine How Long Last State Duration

2008-03-17 Thread Larry Low
Here is what I'm trying to figure out how to do.  I'm pretty sure with the 
current Nagios variables available this is not possible (3.0).

I have a perl script that is executed for notifications.  On notifications that 
are triggered from state changes I would like to print out how long the service 
was in a previous state before this new state occurred.

Example:

A) State is OK for 10 minutes (10 checks of ok separated by 1 minute)
B) State changes to CRITICAL
C) Notification triggered

LASTSERVICESTATECHANGE will be current time
LASTSERVICEOK will be 1 minute ago
LASTSERVICESTATE will be OK
LASTSERVICESTATECRITICAL will be current time

I'm thinking the problem is that LASTSERVICESTATECHANGE should be 10 minutes 
since LASTSERVICESTATE is OK.  Bug or misinterpretation of macro?

Thoughts?  Suggestions?


Larry Low
4150 N Drinkwater Blvd., 5th Floor
Scottsdale, AZ  85251
Office: 480.385.7045
E-mail: [EMAIL PROTECTED]'

Telesphere Networks, Inc



-
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


Re: [Nagios-users] check_hd problem {Disarmed} {Fraud?}

2008-03-06 Thread Larry Low
Or you can add
# nagios: -epn
to the top of the perl plugin.


Larry Low
4150 N Drinkwater Blvd., 5th Floor
Scottsdale, AZ  85251
Office: 480.385.7045
E-mail: [EMAIL PROTECTED]'

Telesphere Networks, Inc


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Domenico
Dig
Sent: Thursday, March 06, 2008 12:40 PM
To: Marc Powell; Nagios Users Mailinglist
Subject: Re: [Nagios-users] check_hd problem {Disarmed} {Fraud?}

I wont to thank you,
Your work around it' s a good solution

On 2/29/08, Marc Powell <[EMAIL PROTECTED]> wrote:
>
> On Feb 29, 2008, at 7:01 AM, Domenico Dig wrote:
>
> > Hi all
> > I'm having a problem with check_hd( the same problem with
> > check_winmem).
> >
> > With nagios server (debian & nagios 2.5) I try to check hd on
> > windows 2003, where i have installed snmp (
> > I have tested it with snmpwalk and it works, all mibs are shown) but
> > manually with:
> >
> > nagios:/# /usr/lib/nagios/plugins/check_hd 10.1.1.8 public 10 10 c
> > Critical  : no response
>
> FSS: Don't run plugins as root, nagios doesn't.
>
> > while trouth web interface I see the follow error
> >
> > **ePN failed to compile /usr/lib/nagios/plugins/check_hd: "Global
> > symbol "$PROGNAME" requires explicit package name at (eval 3) line 21,
>
> Nagios has been compiled with embedded perl support but this plugin
> isn't made to work with it.
> http://nagios.sourceforge.net/docs/2_0/embeddedperl.html
> . Either recompile without embedded perl, modify the plugin to 'fix'
> it or use the workaround below.
>
> > using this:
> > define command{
> >
> > command_name check_hd
> >
> > command_line $USER1$/check_hd $HOSTADDRESS$ public $ARG1$ $ARG2$
> > $ARG3$
> >
> > }
> >
>
> Using the following command_line will bypass use of the ePN for this
> plugin specifically --
>
> command_line /your/path/to/perl $USER1$/check_hd $HOSTADDRESS$ public
> $ARG1$ $ARG2$ $ARG3$
>
> --
> Marc
>
>
> -
> 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
>

-
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


-
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


Re: [Nagios-users] force check

2008-02-21 Thread Larry Low
Re-schedule the next check of this service

If active checks are disabled or the service is using a check_period that
would prevent it from being checked check the "Force Check" as well.

----
Larry Low
4150 N Drinkwater Blvd., 5th Floor
Scottsdale, AZ  85251
Office: 480.385.7045
E-mail: [EMAIL PROTECTED]'

Telesphere Networks, Inc

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Melanie Pfefer
> Sent: Thursday, February 21, 2008 10:26 AM
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] force check
> 
> Hello
> When changing config files, the service status may
> appear as "PENDING" in the web page.
> How to force nagios to check the availability of a
> service?
> 
> thanks
> 
> 
> 
>   ___
> Yahoo! Answers - Got a question? Someone out there knows the answer.
> Try it
> now.
> http://uk.answers.yahoo.com/
> 
> ---
> --
> 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


-
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


Re: [Nagios-users] Memory Usage for Process

2008-02-20 Thread Larry Low
If you want to use WMI from Linux look at Pegasus and wbemcli.


Larry Low
4150 N Drinkwater Blvd., 5th Floor
Scottsdale, AZ  85251
Office: 480.385.7045
E-mail: [EMAIL PROTECTED]'

Telesphere Networks, Inc


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Hari Sekhon
> Sent: Wednesday, February 20, 2008 11:16 AM
> To: [EMAIL PROTECTED]
> Cc: Harford, Ken; nagios-users@lists.sourceforge.net
> Subject: Re: [Nagios-users] Memory Usage for Process
> 
> [EMAIL PROTECTED] wrote:
> >
> > [EMAIL PROTECTED] wrote on 02/20/2008
> > 11:23:35 AM:
> >
> > > Are there any plugins that will monitor memory use of processes on
> a
> > > Windows system?
> > >
> > > Thanks
> > >
> > > Ken
> > >
> > > Ken Harford
> >
> >
> > http://www.nagiosexchange.org/Windows.49.0.html?&tx_netnagext_pi1
> >
> <http://www.nagiosexchange.org/Windows.49.0.html?&tx_netnagext_pi1>[p_v
> iew]=686
> >
> >
> > That claims to do exactly what you want. I haven't used it so I can't
> > say more than that.
> Had a quick look at that, it's very short, and you will need snmp on
> the
> windows hosts available. I think WMI would be a better choice here if
> you could write something to do this, otherwise you'd have to go and
> set
> up snmp on all the windows devices you wanted to monitor in this way
> and
> open up the firewalls too.
> 
> -h
> 
> --
> Hari Sekhon
> 
> 
> ---
> --
> 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


-
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


Re: [Nagios-users] Fping tweaks

2008-02-16 Thread Larry Low
I use a plugin I wrote called check_smokeping for that.  It is available on
nagiosexchange.

 



Larry Low

4150 N Drinkwater Blvd., 5th Floor

Scottsdale, AZ  85251

Office: 480.385.7045

E-mail: [EMAIL PROTECTED]'

 

Telesphere Networks, Inc

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Roger
Sent: Saturday, February 16, 2008 11:11 PM
To: Nagios Users Mailinglist
Subject: Re: [Nagios-users] Fping tweaks

 

On 2/16/08, Larry Low <[EMAIL PROTECTED]> wrote: 

I personally use Smokeping to monitor latency, packet loss, etc.  I then
have nagios check the RRD files for the data and alert on parameters.

Which check_rrdtool plugin do you use?  I've seen it referenced and googled
for it, but haven't been able to find it.

-
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

Re: [Nagios-users] Fping tweaks

2008-02-16 Thread Larry Low
I personally use Smokeping to monitor latency, packet loss, etc.  I then
have nagios check the RRD files for the data and alert on parameters.

 



Larry Low

4150 N Drinkwater Blvd., 5th Floor

Scottsdale, AZ  85251

Office: 480.385.7045

E-mail: [EMAIL PROTECTED]'

 

Telesphere Networks, Inc

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Roger
Sent: Saturday, February 16, 2008 9:21 AM
To: Nagios Users Mailinglist
Subject: [Nagios-users] Fping tweaks

 

What fping tweaks do you guys use on Nagios?

 

Primarily, this question is a general one (just to see what people check
with).

 

A bit more specifically, however, this question is designed to approach the
answer on which fping plugin switches / parameters people use to scale
Nagios checks to gazillions of hosts and across links that often become
quite saturated.

 

I'm struggling with this in many environments. I'm getting too many false
positives (when it's just network related) and the host is not actually
down.  (I've just gotta limp this along until we fix our point to point
solution between several of these sites.)

-
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

Re: [Nagios-users] Notification Woes

2008-02-15 Thread Larry Low
Just an FYI on what I did to get what I wanted to work:

Service created with a check_interval of 60 and retry_interval of 10 and
max_check_attempts of 1.

Event handler that is passed a value of 60 and 10.

Service escalation for first notification with a notification_interval of 10
(60 in service as it throws warnings otherwise because of the default
check_interval).

Service escalation for second notification with a notification_interval of
0.

Event handler setup to CHANGE_NORMAL_SVC_CHECK_INTERVAL to 60 on OK and 10
on non-OK.  If non-OK also SCHEDULE_SVC_CHECK in 10 minutes.

So if a passive or active check comes in and changes state from OK to
CRITICAL an alert is sent to first person, a check is scheduled in 10
minutes, and if still down on second check sends an email to second person.

I also created a flapping only contact to be added to service contact_group
so flapping is reported to second person as well.

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Larry Low
> Sent: Friday, February 15, 2008 12:27 PM
> To: 'Nagios Users Mailinglist'
> Subject: Re: [Nagios-users] Notification Woes
> 
> > -Original Message-
> > From: Thomas Guyot-Sionnest [mailto:[EMAIL PROTECTED]
> > Sent: Friday, February 15, 2008 2:42 AM
> > To: Larry Low
> > Cc: 'Nagios Users Mailinglist'
> > Subject: Re: [Nagios-users] Notification Woes
> >
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA1
> >
> > On 14/02/08 03:21 PM, Larry Low wrote:
> > > Service X actively checked every 60 minutes.
> > > Service X passively monitored through SNMP Traps.
> > >
> > > Service X receives CRITICAL passively.  E-mail to contact A.
> Modify
> > Service
> > > X to actively poll every 5 minutes till recovery.  Email B after
> 3rd
> > > CRITICAL (10-15 minute delay).
> > >
> > > I can't use retry_interval because I want contact A to be notified
> > all the
> > > time and retry_interval is only used on SOFT states.
> > >
> > > I was thinking of executing a change in polling interval with an
> > event
> > > handler.
> > >
> > > Any insight?
> > >
> > > I'm also curious on how flap alerts are handled under
> > serviceescalation.  I
> > > am assuming they are not.
> >
> > I'm not quite sure what you're trying, but a simpler solution might
> be
> > to have two services:
> >
> > 1 volatile service (passive, will notify on every trap received)
> > 1 active service (will have whichever max_check_attempt and
> > retry_interval you want, won't be affected by passive checks)
> >
> > If you need escalations on top of that you can define some.
> >
> >
> > Otherwise you're pretty much on your own. It's very difficult to
> > remotely understand every details of the logic you want (considering
> > there will be corner cases, etc). So basically understand how nagios
> > will react to each setting, or use something simpler as above ;)
> >
> > Thomas
> 
> Thanks for the input.  I would like to avoid having separate services
> for
> the active and passive as it is the main reason I even use Nagios (easy
> to
> make sure active and passive alerts keep status accurate for a
> service).
> 
> I am working on using an event handler to change the polling interval
> from
> 60 to 5 minutes on a non OK and 5 to 60 on an OK.  I'm not sure how
> well
> this will work with passive checks but it seems like the best solution
> for
> me.  I'm just worried about problems occurring and inconsistencies
> being
> created.
> 
> 
> > -BEGIN PGP SIGNATURE-
> > Version: GnuPG v1.4.6 (GNU/Linux)
> > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> >
> > iD8DBQFHtV536dZ+Kt5BchYRAkZDAKD8Fi8FFAw/a9r/bnqNkituvaauvgCdH8Xm
> > 1eFuhM38mouu96GAmLc87Ck=
> > =Y/Il
> > -END PGP SIGNATURE-
> 
> 
> ---
> --
> 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


-
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


Re: [Nagios-users] preventing hostup check, only service check

2008-02-15 Thread Larry Low
Or set your check_period to a timeperiod without any time in it.


Larry Low
4150 N Drinkwater Blvd., 5th Floor
Scottsdale, AZ  85251
Office: 480.385.7045
E-mail: [EMAIL PROTECTED]'

Telesphere Networks, Inc


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Kevin Menard
> Sent: Friday, February 15, 2008 12:44 PM
> To: [EMAIL PROTECTED]; nagios-users@lists.sourceforge.net
> Subject: Re: [Nagios-users] preventing hostup check, only service check
> 
> It's not something I've tried myself, but you could always just write a
> small command that returns status of OK all the time.  It'll obviously
> still
> be executed, but you'll never go into a warning or critical state.
> 
> --
> Kevin
> 
> Kevin Menard
> Servprise International, Inc.
> +1 508.892.3823 x308
> 
> 
> On 2/15/08 2:36 PM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> 
> > How do I prevent a host from doing a hostup check?
> > I just want to check services.
> > ping is blocked.
> >
> >
> >
> > -
> 
> > 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
> 
> 
> ---
> --
> 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


-
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


Re: [Nagios-users] mail notifications

2008-02-15 Thread Larry Low
If /var/log/maillog shows the message being sent to all three recipients I
would suggest try sending a test message from the server itself.

'echo test | mail [EMAIL PROTECTED]'

It's possible you need to modify your notification command or your servers
smtp server to make sure the from address is proper and the forward/reverse
DNS of the server is proper.


Larry Low
4150 N Drinkwater Blvd., 5th Floor
Scottsdale, AZ  85251
Office: 480.385.7045
E-mail: [EMAIL PROTECTED]'

Telesphere Networks, Inc


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Nicholas Thompson
> Sent: Friday, February 15, 2008 12:31 PM
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] mail notifications
> 
> Hello all,
> 
> I am having some trouble getting Nagios to send out emails to the
> contacts I have specified.  I have 3 contacts that it should be going
> to, all with the same email domain and only 1 of the 3 are getting it.
> I have had the users check their spam traps and nothing, and when I
> look
> at /var/log/maillog it shows that all three recipients ate getting the
> messages sent.  Anyone have any ideas? Anything from extra
> troubleshooting tips to even a solution I would be grateful for.
> Thanks
> ahead of time!
> 
> Nick~
> 
> 
> ---
> --
> 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


-
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


Re: [Nagios-users] Notification Woes

2008-02-15 Thread Larry Low
> -Original Message-
> From: Thomas Guyot-Sionnest [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 15, 2008 2:42 AM
> To: Larry Low
> Cc: 'Nagios Users Mailinglist'
> Subject: Re: [Nagios-users] Notification Woes
> 
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> On 14/02/08 03:21 PM, Larry Low wrote:
> > Service X actively checked every 60 minutes.
> > Service X passively monitored through SNMP Traps.
> >
> > Service X receives CRITICAL passively.  E-mail to contact A.  Modify
> Service
> > X to actively poll every 5 minutes till recovery.  Email B after 3rd
> > CRITICAL (10-15 minute delay).
> >
> > I can't use retry_interval because I want contact A to be notified
> all the
> > time and retry_interval is only used on SOFT states.
> >
> > I was thinking of executing a change in polling interval with an
> event
> > handler.
> >
> > Any insight?
> >
> > I'm also curious on how flap alerts are handled under
> serviceescalation.  I
> > am assuming they are not.
> 
> I'm not quite sure what you're trying, but a simpler solution might be
> to have two services:
> 
> 1 volatile service (passive, will notify on every trap received)
> 1 active service (will have whichever max_check_attempt and
> retry_interval you want, won't be affected by passive checks)
> 
> If you need escalations on top of that you can define some.
> 
> 
> Otherwise you're pretty much on your own. It's very difficult to
> remotely understand every details of the logic you want (considering
> there will be corner cases, etc). So basically understand how nagios
> will react to each setting, or use something simpler as above ;)
> 
> Thomas

Thanks for the input.  I would like to avoid having separate services for
the active and passive as it is the main reason I even use Nagios (easy to
make sure active and passive alerts keep status accurate for a service).

I am working on using an event handler to change the polling interval from
60 to 5 minutes on a non OK and 5 to 60 on an OK.  I'm not sure how well
this will work with passive checks but it seems like the best solution for
me.  I'm just worried about problems occurring and inconsistencies being
created.


> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iD8DBQFHtV536dZ+Kt5BchYRAkZDAKD8Fi8FFAw/a9r/bnqNkituvaauvgCdH8Xm
> 1eFuhM38mouu96GAmLc87Ck=
> =Y/Il
> -END PGP SIGNATURE-


-
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


Re: [Nagios-users] Notification Woes

2008-02-14 Thread Larry Low
Another question with scenarios:

Passive checks set as HARD states
Service set to retry 3 times
Passive CRITICAL received.
Active check returns CRITICAL.

What state does this active check cause?  I assume it stays in a HARD state?


Larry Low
4150 N Drinkwater Blvd., 5th Floor
Scottsdale, AZ  85251
Office: 480.385.7045
E-mail: [EMAIL PROTECTED]'

Telesphere Networks, Inc


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Larry Low
> Sent: Thursday, February 14, 2008 1:22 PM
> To: 'Nagios Users Mailinglist'
> Subject: [Nagios-users] Notification Woes
> 
> Service X actively checked every 60 minutes.
> Service X passively monitored through SNMP Traps.
> 
> Service X receives CRITICAL passively.  E-mail to contact A.  Modify
> Service
> X to actively poll every 5 minutes till recovery.  Email B after 3rd
> CRITICAL (10-15 minute delay).
> 
> I can't use retry_interval because I want contact A to be notified all
> the
> time and retry_interval is only used on SOFT states.
> 
> I was thinking of executing a change in polling interval with an event
> handler.
> 
> Any insight?
> 
> I'm also curious on how flap alerts are handled under
> serviceescalation.  I
> am assuming they are not.
> 
> 
> Larry Low
> 4150 N Drinkwater Blvd., 5th Floor
> Scottsdale, AZ  85251
> Office: 480.385.7045
> E-mail: [EMAIL PROTECTED]'
> 
> Telesphere Networks, Inc
> 
> 
> 
> 
> ---
> --
> 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


-
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


Re: [Nagios-users] snmp v3 on 3600

2008-02-14 Thread Larry Low
Does the Nagios server have 161 into the firewall allowed?


Larry Low
4150 N Drinkwater Blvd., 5th Floor
Scottsdale, AZ  85251
Office: 480.385.7045
E-mail: [EMAIL PROTECTED]'

Telesphere Networks, Inc


> -Original Message-
> From: Brian Loe [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 14, 2008 1:30 PM
> To: Larry Low
> Cc: Nagios Users Mailinglist
> Subject: Re: [Nagios-users] snmp v3 on 3600
> 
> On Thu, Feb 14, 2008 at 10:09 AM, Larry Low <[EMAIL PROTECTED]>
> wrote:
> > Here is a simple authNoPriv setup.  The snmp-server user will not
> show up on
> >  the config but is stored in a private config in flash.  'show snmp
> user' can
> >  be used to get info.
> >
> >  snmp-server group  v3 auth access 
> >  snmp-server user   v3 auth md5 
> >
> >  You will probably want to do more to lock down access as RW is
> available
> >  with those commands.
> 
> I've done this with no luck... chasing a firewall issue as I'm only
> getting timeouts.
> 
> Anything not obvious about how the firewall should be configured (out
> of my control in this environment)? This is an ISP router  and the
> firewall has UDP 161 opened up going out from Nagios server to the
> router only.


-
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


[Nagios-users] Notification Woes

2008-02-14 Thread Larry Low
Service X actively checked every 60 minutes.
Service X passively monitored through SNMP Traps.

Service X receives CRITICAL passively.  E-mail to contact A.  Modify Service
X to actively poll every 5 minutes till recovery.  Email B after 3rd
CRITICAL (10-15 minute delay).

I can't use retry_interval because I want contact A to be notified all the
time and retry_interval is only used on SOFT states.

I was thinking of executing a change in polling interval with an event
handler.

Any insight?

I'm also curious on how flap alerts are handled under serviceescalation.  I
am assuming they are not.

----
Larry Low
4150 N Drinkwater Blvd., 5th Floor
Scottsdale, AZ  85251
Office: 480.385.7045
E-mail: [EMAIL PROTECTED]'

Telesphere Networks, Inc




-
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


Re: [Nagios-users] snmp v3 on 3600

2008-02-14 Thread Larry Low
Here is a simple authNoPriv setup.  The snmp-server user will not show up on
the config but is stored in a private config in flash.  'show snmp user' can
be used to get info.

snmp-server group  v3 auth access 
snmp-server user   v3 auth md5 

You will probably want to do more to lock down access as RW is available
with those commands.

Careful with this as it has crashed a few 12.3 routers I've used (3 out of
700).


Larry Low
4150 N Drinkwater Blvd., 5th Floor
Scottsdale, AZ  85251
Office: 480.385.7045
E-mail: [EMAIL PROTECTED]'

Telesphere Networks, Inc

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Brian Loe
> Sent: Thursday, February 14, 2008 7:53 AM
> To: Nagios Users Mailinglist
> Subject: [Nagios-users] snmp v3 on 3600
> 
> Anyone have a snmp v3 config for a 3600 they'd be willing to share?
> 
> I'm needing to monitor a multilink connection...have never configured
> v3 on any IOS platform.
> 
> ---
> --
> 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


-
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


Re: [Nagios-users] No Email Notifications

2008-02-05 Thread Larry Low
/usr/bin/printf, /usr/bin/mail should be after the pipe


Larry Low
4150 N Drinkwater Blvd., 5th Floor
Scottsdale, AZ  85251
Office: 480.385.7045
E-mail: [EMAIL PROTECTED]'

Telesphere Networks, Inc


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Gregory Wong
> Sent: Tuesday, February 05, 2008 3:34 PM
> To: Patrick Morris
> Cc: nagios-users@lists.sourceforge.net
> Subject: Re: [Nagios-users] No Email Notifications
> 
> In /usr/bin there is mail and printf. Should I be using /usr/bin/mail
> or
> /usr/bin/printf before the notification string?
> 
> 
> On 2/5/08 5:24 PM, "Patrick Morris" <[EMAIL PROTECTED]> wrote:
> 
> > On Tue, 05 Feb 2008, Gregory Wong wrote:
> >
> >> Hi Everyone,
> >>
> >> I am having some problems getting email notifications on a new
> Nagios server
> >> I just built. I have only setup PING and SMTP checks to see if
> everything is
> >> working properly. The Event Log on the web interface shows the
> following
> >> message:
> >>
> >> [02-05-2008 17:14:02] Warning: Attempting to execute the command
> >> "/usr/bin/mail/printf "%b" "* Nagios 2.6 *\n\nNotification
> Type:
> >> PROBLEM\nHost: SMTP\nState: DOWN\nAddress: \nInfo: PING
> CRITICAL
> >> - Packet loss = 100%\n\nDate/Time: Tue Feb 5 17:14:02 EST 2008\n" |
> -s "Host
> >> DOWN alert for SMTP!" " resulted in a return code of
> 127. Make
> >> sure the script or binary you are trying to execute actually
> exists...
> >
> > Have you done what the error message suggests, and looked to see if
> > /usr/bin/mail/printf actually exists?
> >
> > Betchya it doesn't.
> 
> 
> ---
> --
> 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


-
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


Re: [Nagios-users] Disable/Enable Service Checks based on Host State

2008-02-05 Thread Larry Low
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:nagios-
> users-
> > [EMAIL PROTECTED] On Behalf Of Larry Low
> > Sent: Tuesday, February 05, 2008 2:15 PM
> > To: nagios-users@lists.sourceforge.net
> > Subject: Re: [Nagios-users] Disable/Enable Service Checks based on
> Host
> > State
> >
> > Anyone have any ideas how to tackle this problem?  Most of my active
> > checks
> > are run very rarely (60 minutes) so if one is checked while the host
> is
> > down
> > it takes longer than I would like to see a recovery.  I want to
> reduce
> > unnecessary e-mail alerts too (recoveries of said services).
> >
> 
> It's a strange request. Maybe you need to explain better why you think
> you need to do this or what you're trying to accomplish. If nagios is
> allowed to continue its service checks, it'll recognize the host
> recovery with the first service check after it does recover. This is
> part of the core design of nagios.

Host A is detected down.  I perform simple ICMP checks for this.  Checking
services for this host is pointless as they are going to fail.  I would
simply like active service checks to be halted until the host recovers.  The
host recovery is handled by the host checks which will run every retry
interval.  There is no need to check services to detect recovery.

To prevent any possible problems with the host not being detected on its
recovery I will simply reschedule checks for all services in 5 minutes from
the recovery.

> 
> --
> Marc
> 
> ---
> --
> 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


-
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


Re: [Nagios-users] Disable/Enable Service Checks based on Host State

2008-02-05 Thread Larry Low
Anyone have any ideas how to tackle this problem?  Most of my active checks
are run very rarely (60 minutes) so if one is checked while the host is down
it takes longer than I would like to see a recovery.  I want to reduce
unnecessary e-mail alerts too (recoveries of said services).


Larry Low
4150 N Drinkwater Blvd., 5th Floor
Scottsdale, AZ  85251
Office: 480.385.7045
E-mail: [EMAIL PROTECTED]'

Telesphere Networks, Inc


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Larry Low
> Sent: Monday, January 14, 2008 4:59 PM
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] Disable/Enable Service Checks based on Host
> State
> 
> I want Nagios to refrain from performing active service checks while a
> host
> is down and re-enable them on its recovery.  The only way I can think
> of
> doing this is with event handlers except I will run into the problem of
> re-enabling a service someone may have manually disabled in the web
> interface.
> 
> I am running Nagios 3.0rc1.
> 
> Any ideas?
> 
> 
> Larry Low
> 4150 N Drinkwater Blvd., 5th Floor
> Scottsdale, AZ  85251
> Office: 480.385.7045
> E-mail: [EMAIL PROTECTED]'
> 
> Telesphere Networks, Inc
> 
> 
> 
> 
> ---
> --
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/market
> place
> ___
> 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


-
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


Re: [Nagios-users] Is Embedded Perl + Nagios::Plugin worth it?

2008-02-05 Thread Larry Low
I currently use ePN for all my active checks (though most are only every 60
minutes since I rely on passive means).  The only thing I run outside of ePN
is my notification script as I haven't had the urge or need to rewrite it to
load under the ePN.  I don't use the Nagios::Plugin CPAN module though, just
the utils.pm.

I have seen many reports of memory leaks but I've yet to see any on this or
any earlier deployment.

Time Frame  Services Checked
<= 1 minute:613 (10.0%)
<= 5 minutes:   1702 (27.8%)
<= 15 minutes:  1878 (30.7%)
<= 1 hour:  4281 (70.0%)
Since program start:    4281 (70.0%)


Larry Low
4150 N Drinkwater Blvd., 5th Floor
Scottsdale, AZ  85251
Office: 480.385.7045
E-mail: [EMAIL PROTECTED]'

Telesphere Networks, Inc


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Max
> Sent: Tuesday, February 05, 2008 1:02 PM
> To: nagios-users@lists.sourceforge.net
> Subject: Re: [Nagios-users] Is Embedded Perl + Nagios::Plugin worth it?
> 
> Hi Jonathan,
> 
> Yes and yes.  You will notice a huge decrease in load if you move to
> ePN, just make sure you code to the Plugin standards for ePN and make
> sure you scope variables properly so you don't have memory leaks in
> your code (same situation as if you were writing code for mod_perl).
> 
> I think there is a  pretty solid group of people using ePN, if
> anything my hope is that future releases will add the option of
> enabling other embedded interpreters at compile time (Lua, ruby,
> python, PHP) the way the Net-SNMP project, RRDtool,  and others do :).
> 
> - Max
> 
> On Feb 5, 2008 2:08 PM, Jonathan Call <[EMAIL PROTECTED]> wrote:
> > I've got one server that is getting tanked right now.  (Load average
> in
> > the 50's) Is it worth it to rewrite the many perl scripts I have to
> use
> > Embedded Perl and the Nagios::Plugin CPAN module?
> >
> > I'm speaking in terms of performance and also in terms of future
> Nagios
> > releases/compatibility.
> >
> > Jonathan
> >
> >
> > This email message is intended for the use of the person to whom it
> has been sent, and may contain information that is confidential or
> legally protected. If you are not the intended recipient or have
> received this message in error, you are not authorized to copy,
> distribute, or otherwise use this message or its attachments. Please
> notify the sender immediately by return e-mail and permanently delete
> this message and any attachments. Verio, Inc. makes no warranty that
> this email is error or virus free.  Thank you.
> >
> > -
> 
> > 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
> >
> 
> ---
> --
> 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


-
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


Re: [Nagios-users] Check Hsrp

2008-02-05 Thread Larry Low
You need to use -t hsrp as well.  Note it will return ok on standby and
active and only critical on other states.  I did this on purpose as it was
to be used in conjunction with trap processing.

 



Larry Low

4150 N Drinkwater Blvd., 5th Floor

Scottsdale, AZ  85251

Office: 480.385.7045

E-mail: [EMAIL PROTECTED]'

 

Telesphere Networks, Inc

 

From: Larry Low [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 05, 2008 12:40 PM
To: 'nagios-users@lists.sourceforge.net'
Subject: RE: [Nagios-users] Check Hsrp

 

You need to specify an interface by the ifIndex.  HSRP groups are per
interface.  I haven't tested the HSRP portion of the code very extensively
so let me know if you run into any more problems.

 



Larry Low

4150 N Drinkwater Blvd., 5th Floor

Scottsdale, AZ  85251

Office: 480.385.7045

E-mail: [EMAIL PROTECTED]'

 

Telesphere Networks, Inc

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John
Duraisw
Sent: Tuesday, February 05, 2008 10:56 AM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Check Hsrp

 

Hello All,
I am trying to check hsrp on 6509 with the following, and I am running into
problems. Please let me know what I am doing wrong here.

[EMAIL PROTECTED] ~]# ./check_ifoperstatus.0.7.pl -H 10.31.1.8 -C ubetcha
--hsrpgrp 10Usage:
  check_ifoperstatus.pl -H  [-C ] -k 
  check_ifoperstatus.pl [-h | --help]
  check_ifoperstatus.pl [-V | --version]

Thanks for your help,

-john

-
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

Re: [Nagios-users] Check Hsrp

2008-02-05 Thread Larry Low
You need to specify an interface by the ifIndex.  HSRP groups are per
interface.  I haven't tested the HSRP portion of the code very extensively
so let me know if you run into any more problems.

 

----

Larry Low

4150 N Drinkwater Blvd., 5th Floor

Scottsdale, AZ  85251

Office: 480.385.7045

E-mail: [EMAIL PROTECTED]'

 

Telesphere Networks, Inc

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John
Duraisw
Sent: Tuesday, February 05, 2008 10:56 AM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Check Hsrp

 

Hello All,
I am trying to check hsrp on 6509 with the following, and I am running into
problems. Please let me know what I am doing wrong here.

[EMAIL PROTECTED] ~]# ./check_ifoperstatus.0.7.pl -H 10.31.1.8 -C ubetcha
--hsrpgrp 10Usage:
  check_ifoperstatus.pl -H  [-C ] -k 
  check_ifoperstatus.pl [-h | --help]
  check_ifoperstatus.pl [-V | --version]

Thanks for your help,

-john



-
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

Re: [Nagios-users] APC or Triplite links anyone ?

2008-01-30 Thread Larry Low
I just threw up my check_ups script that you can use on the Tripplites.  I’ll 
throw up my check_apc_ups one too.

 

http://www.nagiosexchange.org/Misc.54.0.html? 
<http://www.nagiosexchange.org/Misc.54.0.html?&tx_netnagext_pi1%5bp_view%5d=1230>
 &tx_netnagext_pi1[p_view]=1230

 

----

Larry Low

4150 N Drinkwater Blvd., 5th Floor

Scottsdale, AZ  85251

Office: 480.385.7045

E-mail: [EMAIL PROTECTED]'

 

Telesphere Networks, Inc

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ennis Ibarra
Sent: Wednesday, January 30, 2008 2:09 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] APC or Triplite links anyone ?

 

Can anybody point me to a "decent" howto or some example on how to setup and 
use check_apc_ups.pl plugin for APC UPSs?

Or options to monitor APCs and Triplite UPSs if you have found any that's worth 
checking.

Any help is appreciated.



__
Ennis Ibarra - NSASr

 

-
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

[Nagios-users] Disable/Enable Service Checks based on Host State

2008-01-14 Thread Larry Low
I want Nagios to refrain from performing active service checks while a host
is down and re-enable them on its recovery.  The only way I can think of
doing this is with event handlers except I will run into the problem of
re-enabling a service someone may have manually disabled in the web
interface.

I am running Nagios 3.0rc1.

Any ideas?


Larry Low
4150 N Drinkwater Blvd., 5th Floor
Scottsdale, AZ  85251
Office: 480.385.7045
E-mail: [EMAIL PROTECTED]'

Telesphere Networks, Inc




-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
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] Downtime scheduling

2007-11-02 Thread Larry Low
You probably have to rewrite 04:00-01:00 to 00:00-01:00,04:00-24:00.

 



Larry Low

4150 N Drinkwater Blvd., 5th Floor

Scottsdale, AZ  85251

Office: 480.385.7045

E-mail: [EMAIL PROTECTED]'

 

Telesphere Networks, Inc

 

From: Jerad Riggin [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 02, 2007 12:05 PM
To: Larry Low
Cc: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Downtime scheduling

 

Thanks for the reply.  Here is what I did..


define timeperiod{
timeperiod_name maintenance
alias   Maintenance period
sunday  04:00-01:00
monday  04:00-01:00 
tuesday 04:00-01:00
wednesday   04:00-01:00
thursday04:00-01:00
friday  04:00-01:00
saturday04:00-01:00
}

And on the host check template I put maintenance in as the
notification/check schedule.  Will this work? 



On 11/2/07, Larry Low <[EMAIL PROTECTED]> wrote:

Timeperiods is the best idea.  You can either use the notification_period or
check_period depending on your end needs.

 

----

Larry Low

4150 N Drinkwater Blvd., 5th Floor

Scottsdale, AZ  85251

Office: 480.385.7045

E-mail: [EMAIL PROTECTED]'

 

Telesphere Networks, Inc

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jerad
Riggin
Sent: Friday, November 02, 2007 11:59 AM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Downtime scheduling

 

What is the best way to allow for a 1-4AM outage on a few hosts?  A cron job
that will schedule it every night, or through time periods?  


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser. 
Download your FREE copy of Splunk now >> http://get.splunk.com/
___ 
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 

 

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/___
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] Downtime scheduling

2007-11-02 Thread Larry Low
Timeperiods is the best idea.  You can either use the notification_period or
check_period depending on your end needs.

 



Larry Low

4150 N Drinkwater Blvd., 5th Floor

Scottsdale, AZ  85251

Office: 480.385.7045

E-mail: [EMAIL PROTECTED]'

 

Telesphere Networks, Inc

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jerad
Riggin
Sent: Friday, November 02, 2007 11:59 AM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Downtime scheduling

 

What is the best way to allow for a 1-4AM outage on a few hosts?  A cron job
that will schedule it every night, or through time periods?  

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/___
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] Manual only check and file copy

2007-10-31 Thread Larry Low
1) Use a time schedule that has nothing but the name and alias defined.  I
use this myself for a couple services.

2) Copy a file?


Larry Low
4150 N Drinkwater Blvd., 5th Floor
Scottsdale, AZ  85251
Office: 480.385.7045
E-mail: [EMAIL PROTECTED]'

Telesphere Networks, Inc


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
> Sent: Wednesday, October 31, 2007 12:02 PM
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] Manual only check and file copy
> 
> I would like to have two things that an administrator could do with my
> Nagios monitoring system.
> 
> 1)  I would like to be able to launch a check manually only.  I know I
> can
> disable active checks then reschedule a check and disable it again.
> This
> looks really ugly.  Is there another way to do this that would be more
> simple?
> 
> 2)  I would like to be able to copy a file to all members of a host
> group.
> 
> Thank you ahead of time for your help.
> 
> Will Y.
> 
> 
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> 
> 
> ---
> --
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> ___
> 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


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] Subject Line

2007-10-29 Thread Larry Low
Look at your notify commands.  (default notify-host-by-email and
notify-service-by-email)


Larry Low
4150 N Drinkwater Blvd., 5th Floor
Scottsdale, AZ  85251
Office: 480.385.7045
E-mail: [EMAIL PROTECTED]'

Telesphere Networks, Inc


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Mike Hawley
> Sent: Monday, October 29, 2007 1:38 PM
> To: 'Nagios Users'
> Subject: [Nagios-users] Subject Line
> 
> Hi guys and girls, can anyone let me know how I add a subject, and
> display
> the sent to (to:) line to the emails that leave the Nagios server.
> 
> I am running Nagios 3.0b5 on a OpenSuSe server, with Sendmail 8.13.
> 
> Thanks in advance.
> 
> Mike
> 
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.503 / Virus Database: 269.15.12/1097 - Release Date:
> 10/28/2007
> 1:58 PM
> 
> 
> 
> ---
> --
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> ___
> 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


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] ePN patch - testers wanted. [SEC=UNCLASSIFIED]

2007-10-22 Thread Larry Low
Check the SVN, I submitted a small patch for this.  You may have had a
better way to do it as I don't do heavy development.


Larry Low
4150 N Drinkwater Blvd., 5th Floor
Scottsdale, AZ  85251
Office: 480.385.7045
E-mail: [EMAIL PROTECTED]'

Telesphere Networks, Inc


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Monday, October 22, 2007 5:04 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] ePN patch - testers wanted. [SEC=UNCLASSIFIED]

Dear Folks,

I am writing to invite testing of a small patch for the embedded Perl
Nagios feature.

Currently (2.10/3.x) ePN, when a plugin is modified (without a restart)
refuses to run the modified plugin because compilation of the modified
plugin fails when Perl attempts to redefine the modified plugins
subroutines in the package corresponding to the modified plugin. The
only work around is to restart Nagios.

The patch deletes the Perl package (and therefore all the subroutines it
contains) before the modified plugin is recompiled (the plugin and the
package are therefore compiled into a nonexistent namespace).

I would prefer to only send the patch to people who are 

1 familiar with the ePN tradeoffs (the memory leak)

2 convinced that the ePN tradeoffs are outweighed by the benefits

3 have some experience with the memory footprint of the  ePN Nagios and

4 those who do not object to testing a potentially unstable release of
Nagios

I have been using the patch for my production system (195 hosts, 356
service checks) with out any problem that is obvious to me (custom Perl
plugins for SNMP checks of routers, spanning tree etc).

I am particuarly keen on knowing whether the memory leak is worse.

Please let me know privately if you are interested.

Yours sincerely.



Classification: UNCLASSIFIED

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] Nagios 3.0b5 - ePN and perl caching [SEC=UNCLASSIFIED]

2007-10-16 Thread Larry Low
I am posting this to the devel list to see if anyone has any answers.

I look through the code and I don't see how the package that is created for
the plugin is being uncached when the mtime changes.  Can someone point me
in the code where this is taking place.  The problem I am having is
definitely being caused by the package not being removed from memory.

Running perl 5.8.8


Larry Low
4150 N Drinkwater Blvd., 5th Floor
Scottsdale, AZ  85251
Office: 480.385.7045
E-mail: [EMAIL PROTECTED]'

Telesphere Networks, Inc


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Larry Low
Sent: Friday, October 12, 2007 10:56 AM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Nagios 3.0b5 - ePN and perl caching
[SEC=UNCLASSIFIED]

I guess the question is how to unload the perl package that the plugin is
wrapped in.

----
Larry Low
4150 N Drinkwater Blvd., 5th Floor
Scottsdale, AZ  85251
E-mail: [EMAIL PROTECTED]'

Telesphere Networks, Inc


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Larry Low
Sent: Friday, October 12, 2007 10:44 AM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Nagios 3.0b5 - ePN and perl caching
[SEC=UNCLASSIFIED]

I had been compiling without perl cache so that would explain why $delete
was being set to 1.  The problem must be in getting rid of the old cached
script.  I am digging deeper.


Larry Low
4150 N Drinkwater Blvd., 5th Floor
Scottsdale, AZ  85251
E-mail: [EMAIL PROTECTED]'

Telesphere Networks, Inc


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Larry Low
Sent: Friday, October 12, 2007 10:13 AM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Nagios 3.0b5 - ePN and perl caching
[SEC=UNCLASSIFIED]

Thanks Stanley,

Using my check_ifoperstatus script.  Available from
http://www.nagiosexchange.org/Networking.53.0.html?&tx_netnagext_pi1[p_view]
=1099

I've done a few minutes of debugging and the first problem I see is the
MTIME is
not being populated.  Here is my epn_leave-msgs.log.  I added
print LH "$filename - $mtime = ".$Cache{$filename}[MTIME]."\n";
while (my ($key,$value) = each %Cache) {
foreach (@$value) {
print LH "$key - $_\n";
}
}
right before it compares mtime and you will see below that MTIME is not
populated.

I also added a couple logs where MTIME is supposed to be set.
print LH "$mtime ";
$Cache{$filename}[MTIME]= $mtime
unless $delete ;
print LH $Cache{$filename}[MTIME]."\n";

You will see below that $mtime is fine but $Cache{$filename}[MTIME] is not.

I changed
$Cache{$filename}[MTIME]= $mtime
unless $delete ;
to
$Cache{$filename}[MTIME]= $mtime;
and the problem goes away.

I tested for $delete and it is being set to 1 every time.  What is calling
eval_file?  Is this from the nagios core?

** epn_leave-msgs.log
/opt/nagios/libexec/check_ifoperstatus.pl - 2.96796296296296 = 
2.96796296296296 
Fri Oct 12 10:00:29 2007 eval_file: successfully compiled
"/opt/nagios/libexec/check_ifoperstatus.pl -H  -C  -k 0 -I -N
Gi0/0 --cacti_database=cacti_2 --cacti_password=".
Fri Oct 12 10:00:29 2007 run_package:
"/opt/nagios/libexec/check_ifoperstatus.pl
-H  -C  -k 0 -I -N Gi0/0 --cacti_database=cacti_2
--cacti_password=" returning (0, "OK - Interface 'Gi0/0' is
'up(1)' -  (index 1)").

/opt/nagios/libexec/check_ifoperstatus.pl - 2.96796296296296 = 
/opt/nagios/libexec/check_ifoperstatus.pl - 
/opt/nagios/libexec/check_ifoperstatus.pl - HASH(0x9267264)
/opt/nagios/libexec/check_ifoperstatus.pl - 
/opt/nagios/libexec/check_ifoperstatus.pl - CODE(0x9276778)
2.96796296296296 
Fri Oct 12 10:00:59 2007 eval_file: syntax error in
/opt/nagios/libexec/check_ifoperstatus.pl: "Subroutine print_help redefined
at
(eval 9) line 295,".
**

 Dest.gov.au> writes:

> 
> Dear Larry, 
> 
> There are debugging hooks in p1.pl that would be useful to enable. 
> 
> If you are interested in helping deal with this problem please would you
> 
> 1 Back up your original copy of p1.pl (path is specified in nagios.cfg
> IIRC) 
> 
> 2 Change the DEBUG_LEVEL to 
> 
> use constant  DEBUG_LEVEL => LEAVE_MSG | CACHE_DUMP ; 
> 
> 3 Change the DEBUG_LOG_PATH to something appropriate for your system eg 
> 
> use constantDEBUG_LOG_PATH => '/tmp/' ; 
> 
> 4 Make p1.pl still compiles (perl -c p1.pl should be nag free; $? == 0) 
> 
> 5 Restart Nagios 
> 
> (IIRC, all this is documented in POD f

Re: [Nagios-users] Nagios 3.0b5 - ePN and perl caching [SEC=UNCLASSIFIED]

2007-10-12 Thread Larry Low
I guess the question is how to unload the perl package that the plugin is
wrapped in.


Larry Low
4150 N Drinkwater Blvd., 5th Floor
Scottsdale, AZ  85251
E-mail: [EMAIL PROTECTED]'

Telesphere Networks, Inc


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Larry Low
Sent: Friday, October 12, 2007 10:44 AM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Nagios 3.0b5 - ePN and perl caching
[SEC=UNCLASSIFIED]

I had been compiling without perl cache so that would explain why $delete
was being set to 1.  The problem must be in getting rid of the old cached
script.  I am digging deeper.


Larry Low
4150 N Drinkwater Blvd., 5th Floor
Scottsdale, AZ  85251
E-mail: [EMAIL PROTECTED]'

Telesphere Networks, Inc


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Larry Low
Sent: Friday, October 12, 2007 10:13 AM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Nagios 3.0b5 - ePN and perl caching
[SEC=UNCLASSIFIED]

Thanks Stanley,

Using my check_ifoperstatus script.  Available from
http://www.nagiosexchange.org/Networking.53.0.html?&tx_netnagext_pi1[p_view]
=1099

I've done a few minutes of debugging and the first problem I see is the
MTIME is
not being populated.  Here is my epn_leave-msgs.log.  I added
print LH "$filename - $mtime = ".$Cache{$filename}[MTIME]."\n";
while (my ($key,$value) = each %Cache) {
foreach (@$value) {
print LH "$key - $_\n";
}
}
right before it compares mtime and you will see below that MTIME is not
populated.

I also added a couple logs where MTIME is supposed to be set.
print LH "$mtime ";
$Cache{$filename}[MTIME]= $mtime
unless $delete ;
print LH $Cache{$filename}[MTIME]."\n";

You will see below that $mtime is fine but $Cache{$filename}[MTIME] is not.

I changed
$Cache{$filename}[MTIME]= $mtime
unless $delete ;
to
$Cache{$filename}[MTIME]= $mtime;
and the problem goes away.

I tested for $delete and it is being set to 1 every time.  What is calling
eval_file?  Is this from the nagios core?

** epn_leave-msgs.log
/opt/nagios/libexec/check_ifoperstatus.pl - 2.96796296296296 = 
2.96796296296296 
Fri Oct 12 10:00:29 2007 eval_file: successfully compiled
"/opt/nagios/libexec/check_ifoperstatus.pl -H  -C  -k 0 -I -N
Gi0/0 --cacti_database=cacti_2 --cacti_password=".
Fri Oct 12 10:00:29 2007 run_package:
"/opt/nagios/libexec/check_ifoperstatus.pl
-H  -C  -k 0 -I -N Gi0/0 --cacti_database=cacti_2
--cacti_password=" returning (0, "OK - Interface 'Gi0/0' is
'up(1)' -  (index 1)").

/opt/nagios/libexec/check_ifoperstatus.pl - 2.96796296296296 = 
/opt/nagios/libexec/check_ifoperstatus.pl - 
/opt/nagios/libexec/check_ifoperstatus.pl - HASH(0x9267264)
/opt/nagios/libexec/check_ifoperstatus.pl - 
/opt/nagios/libexec/check_ifoperstatus.pl - CODE(0x9276778)
2.96796296296296 
Fri Oct 12 10:00:59 2007 eval_file: syntax error in
/opt/nagios/libexec/check_ifoperstatus.pl: "Subroutine print_help redefined
at
(eval 9) line 295,".
**

 Dest.gov.au> writes:

> 
> Dear Larry, 
> 
> There are debugging hooks in p1.pl that would be useful to enable. 
> 
> If you are interested in helping deal with this problem please would you
> 
> 1 Back up your original copy of p1.pl (path is specified in nagios.cfg
> IIRC) 
> 
> 2 Change the DEBUG_LEVEL to 
> 
> use constant  DEBUG_LEVEL => LEAVE_MSG | CACHE_DUMP ; 
> 
> 3 Change the DEBUG_LOG_PATH to something appropriate for your system eg 
> 
> use constantDEBUG_LOG_PATH => '/tmp/' ; 
> 
> 4 Make p1.pl still compiles (perl -c p1.pl should be nag free; $? == 0) 
> 
> 5 Restart Nagios 
> 
> (IIRC, all this is documented in POD format in p1.pl, so perldoc p1.pl
> should show 
> 
> ... blah blah 
> 
>   Extra logging is given by setting DEBUG_LEVEL to include 
> 
>LEAVE_MSG 
> 
>1 opens an extra output stream in the path given by the value of 
>DEBUG_LOG_PATH 
> 
>2 logs messages describing the success or otherwise of the plugin
> com- 
>pilation and the result of the plugin run. 
> 
>An example of such messages are 
> 
> Fri Apr 22 11:54:21 2005 eval_file: successfully compiled
> "/usr/local/nagios/libexec/check_bass ". 
> Fri Apr 22 11:54:21 2005 run_package:
> "/usr/local/nagios/libexec/check_bass " returning ("0", "BASS
> Transaction completed O

Re: [Nagios-users] Nagios 3.0b5 - ePN and perl caching [SEC=UNCLASSIFIED]

2007-10-12 Thread Larry Low
I had been compiling without perl cache so that would explain why $delete
was being set to 1.  The problem must be in getting rid of the old cached
script.  I am digging deeper.


Larry Low
4150 N Drinkwater Blvd., 5th Floor
Scottsdale, AZ  85251
E-mail: [EMAIL PROTECTED]'

Telesphere Networks, Inc


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Larry Low
Sent: Friday, October 12, 2007 10:13 AM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Nagios 3.0b5 - ePN and perl caching
[SEC=UNCLASSIFIED]

Thanks Stanley,

Using my check_ifoperstatus script.  Available from
http://www.nagiosexchange.org/Networking.53.0.html?&tx_netnagext_pi1[p_view]
=1099

I've done a few minutes of debugging and the first problem I see is the
MTIME is
not being populated.  Here is my epn_leave-msgs.log.  I added
print LH "$filename - $mtime = ".$Cache{$filename}[MTIME]."\n";
while (my ($key,$value) = each %Cache) {
foreach (@$value) {
print LH "$key - $_\n";
}
}
right before it compares mtime and you will see below that MTIME is not
populated.

I also added a couple logs where MTIME is supposed to be set.
print LH "$mtime ";
$Cache{$filename}[MTIME]= $mtime
unless $delete ;
print LH $Cache{$filename}[MTIME]."\n";

You will see below that $mtime is fine but $Cache{$filename}[MTIME] is not.

I changed
$Cache{$filename}[MTIME]= $mtime
unless $delete ;
to
$Cache{$filename}[MTIME]= $mtime;
and the problem goes away.

I tested for $delete and it is being set to 1 every time.  What is calling
eval_file?  Is this from the nagios core?

** epn_leave-msgs.log
/opt/nagios/libexec/check_ifoperstatus.pl - 2.96796296296296 = 
2.96796296296296 
Fri Oct 12 10:00:29 2007 eval_file: successfully compiled
"/opt/nagios/libexec/check_ifoperstatus.pl -H  -C  -k 0 -I -N
Gi0/0 --cacti_database=cacti_2 --cacti_password=".
Fri Oct 12 10:00:29 2007 run_package:
"/opt/nagios/libexec/check_ifoperstatus.pl
-H  -C  -k 0 -I -N Gi0/0 --cacti_database=cacti_2
--cacti_password=" returning (0, "OK - Interface 'Gi0/0' is
'up(1)' -  (index 1)").

/opt/nagios/libexec/check_ifoperstatus.pl - 2.96796296296296 = 
/opt/nagios/libexec/check_ifoperstatus.pl - 
/opt/nagios/libexec/check_ifoperstatus.pl - HASH(0x9267264)
/opt/nagios/libexec/check_ifoperstatus.pl - 
/opt/nagios/libexec/check_ifoperstatus.pl - CODE(0x9276778)
2.96796296296296 
Fri Oct 12 10:00:59 2007 eval_file: syntax error in
/opt/nagios/libexec/check_ifoperstatus.pl: "Subroutine print_help redefined
at
(eval 9) line 295,".
**

 Dest.gov.au> writes:

> 
> Dear Larry, 
> 
> There are debugging hooks in p1.pl that would be useful to enable. 
> 
> If you are interested in helping deal with this problem please would you
> 
> 1 Back up your original copy of p1.pl (path is specified in nagios.cfg
> IIRC) 
> 
> 2 Change the DEBUG_LEVEL to 
> 
> use constant  DEBUG_LEVEL => LEAVE_MSG | CACHE_DUMP ; 
> 
> 3 Change the DEBUG_LOG_PATH to something appropriate for your system eg 
> 
> use constantDEBUG_LOG_PATH => '/tmp/' ; 
> 
> 4 Make p1.pl still compiles (perl -c p1.pl should be nag free; $? == 0) 
> 
> 5 Restart Nagios 
> 
> (IIRC, all this is documented in POD format in p1.pl, so perldoc p1.pl
> should show 
> 
> ... blah blah 
> 
>   Extra logging is given by setting DEBUG_LEVEL to include 
> 
>LEAVE_MSG 
> 
>1 opens an extra output stream in the path given by the value of 
>DEBUG_LOG_PATH 
> 
>2 logs messages describing the success or otherwise of the plugin
> com- 
>pilation and the result of the plugin run. 
> 
>An example of such messages are 
> 
> Fri Apr 22 11:54:21 2005 eval_file: successfully compiled
> "/usr/local/nagios/libexec/check_bass ". 
> Fri Apr 22 11:54:21 2005 run_package:
> "/usr/local/nagios/libexec/check_bass " returning ("0", "BASS
> Transaction completed Ok.
> 
> "). 
> Fri Apr 22 11:55:02 2005 eval_file: successfully compiled
> "/usr/local/nagios/libexec/check_ad -D production.prod -S".
> 
> Fri Apr 22 11:55:02 2005 run_package:
> "/usr/local/nagios/libexec/check_ad -D foo.dom -S" returning ("0", "Ok.
> Expected 2 domain controllers [foo1 foo2] for "foo.dom.prod" domain from
> "1.1.2.3" DNS, found 8 [foo1 foo2 ..]
&g

Re: [Nagios-users] Nagios 3.0b5 - ePN and perl caching [SEC=UNCLASSIFIED]

2007-10-12 Thread Larry Low
Thanks Stanley,

Using my check_ifoperstatus script.  Available from
http://www.nagiosexchange.org/Networking.53.0.html?&tx_netnagext_pi1[p_view]
=1099

I've done a few minutes of debugging and the first problem I see is the
MTIME is
not being populated.  Here is my epn_leave-msgs.log.  I added
print LH "$filename - $mtime = ".$Cache{$filename}[MTIME]."\n";
while (my ($key,$value) = each %Cache) {
foreach (@$value) {
print LH "$key - $_\n";
}
}
right before it compares mtime and you will see below that MTIME is not
populated.

I also added a couple logs where MTIME is supposed to be set.
print LH "$mtime ";
$Cache{$filename}[MTIME]= $mtime
unless $delete ;
print LH $Cache{$filename}[MTIME]."\n";

You will see below that $mtime is fine but $Cache{$filename}[MTIME] is not.

I changed
$Cache{$filename}[MTIME]= $mtime
unless $delete ;
to
$Cache{$filename}[MTIME]= $mtime;
and the problem goes away.

I tested for $delete and it is being set to 1 every time.  What is calling
eval_file?  Is this from the nagios core?

** epn_leave-msgs.log
/opt/nagios/libexec/check_ifoperstatus.pl - 2.96796296296296 = 
2.96796296296296 
Fri Oct 12 10:00:29 2007 eval_file: successfully compiled
"/opt/nagios/libexec/check_ifoperstatus.pl -H  -C  -k 0 -I -N
Gi0/0 --cacti_database=cacti_2 --cacti_password=".
Fri Oct 12 10:00:29 2007 run_package:
"/opt/nagios/libexec/check_ifoperstatus.pl
-H  -C  -k 0 -I -N Gi0/0 --cacti_database=cacti_2
--cacti_password=" returning (0, "OK - Interface 'Gi0/0' is
'up(1)' -  (index 1)").

/opt/nagios/libexec/check_ifoperstatus.pl - 2.96796296296296 = 
/opt/nagios/libexec/check_ifoperstatus.pl - 
/opt/nagios/libexec/check_ifoperstatus.pl - HASH(0x9267264)
/opt/nagios/libexec/check_ifoperstatus.pl - 
/opt/nagios/libexec/check_ifoperstatus.pl - CODE(0x9276778)
2.96796296296296 
Fri Oct 12 10:00:59 2007 eval_file: syntax error in
/opt/nagios/libexec/check_ifoperstatus.pl: "Subroutine print_help redefined
at
(eval 9) line 295,".
**

 Dest.gov.au> writes:

> 
> Dear Larry, 
> 
> There are debugging hooks in p1.pl that would be useful to enable. 
> 
> If you are interested in helping deal with this problem please would you
> 
> 1 Back up your original copy of p1.pl (path is specified in nagios.cfg
> IIRC) 
> 
> 2 Change the DEBUG_LEVEL to 
> 
> use constant  DEBUG_LEVEL => LEAVE_MSG | CACHE_DUMP ; 
> 
> 3 Change the DEBUG_LOG_PATH to something appropriate for your system eg 
> 
> use constantDEBUG_LOG_PATH => '/tmp/' ; 
> 
> 4 Make p1.pl still compiles (perl -c p1.pl should be nag free; $? == 0) 
> 
> 5 Restart Nagios 
> 
> (IIRC, all this is documented in POD format in p1.pl, so perldoc p1.pl
> should show 
> 
> ... blah blah 
> 
>   Extra logging is given by setting DEBUG_LEVEL to include 
> 
>LEAVE_MSG 
> 
>1 opens an extra output stream in the path given by the value of 
>DEBUG_LOG_PATH 
> 
>2 logs messages describing the success or otherwise of the plugin
> com- 
>pilation and the result of the plugin run. 
> 
>An example of such messages are 
> 
> Fri Apr 22 11:54:21 2005 eval_file: successfully compiled
> "/usr/local/nagios/libexec/check_bass ". 
> Fri Apr 22 11:54:21 2005 run_package:
> "/usr/local/nagios/libexec/check_bass " returning ("0", "BASS
> Transaction completed Ok.
> 
> "). 
> Fri Apr 22 11:55:02 2005 eval_file: successfully compiled
> "/usr/local/nagios/libexec/check_ad -D production.prod -S".
> 
> Fri Apr 22 11:55:02 2005 run_package:
> "/usr/local/nagios/libexec/check_ad -D foo.dom -S" returning ("0", "Ok.
> Expected 2 domain controllers [foo1 foo2] for "foo.dom.prod" domain from
> "1.1.2.3" DNS, found 8 [foo1 foo2 ..]
> 
> "). 
> 
> .. blah blah 
> ) 
> 
> In my case I see 
> 
> [root  acisp057 bin]# perl -c p1.pl 
> p1.pl syntax OK 
> [root  acisp057 bin]# diff -c p1.pl.orig p1.pl 
> *** p1.pl.orig  2007-10-12 14:09:24.0 +1000 
> --- p1.pl   2007-10-12 14:09:56.0 +1000 
> *** 
> *** 10,22  
>   use constant  CACHE_DUMP  => 2 ; 
>   use constant  PLUGIN_DUMP => 4 ; 
> 
> ! use constant  DEBUG_LEVEL => 0 ; 
>   # use constantDEBUG_LEVEL => CACHE_DUMP ; 
>   # use constantDEBUG_LEVEL => LEAVE_MSG ; 
> ! # use constantDEBUG_LEVEL => LEAVE_MSG |
> CACHE_DUMP ; 
>   # use constantDEBUG_LEVEL => LEAVE_MSG |
> CACHE_DUMP | PLUGIN_DUMP ; 
> 
> ! use constant  DEBUG_LOG_PATH  => '/usr/local/nagios/var/' ; 
>   # use constantDEBUG_LOG_PATH  => './' ; 
>   use constant  LEAVE_MSG_STREAM=> DEBUG_LOG_

Re: [Nagios-users] Nagios 3.0b5 - ePN and perl caching [SEC=UNCLASSIFIED]

2007-10-11 Thread Larry Low
This is without making changes to the script.

Scenario:

1) ./configure --prefix=/opt/Nagios --enable-event-broker
--with-embedded-perl (I have tried --without-perlcache as well and have not
had time to sift through code to see if this is the actual problem)
2) Have an ePN script with sub print_help
3) Execute 1st check of ePN script, returns OK, no problem
4) Execute 2nd check of ePN script and ePN compile reports print_help
function is redeclared

If I compile without embedded-perl the problem does not exist.

I should probably post this to the devel list.


Larry Low

-Original Message-
From:  Dest.gov.au>
Subject: Re: Nagios 3.0b5 - ePN and perl caching [SEC=UNCLASSIFIED]
Newsgroups: gmane.network.nagios.user
Date: 2007-10-10 23:18:23 GMT (16 hours and 57 minutes ago)

Dear Larry,

I am writing to thank you for your letter and say, 

> -Original Message-

> Message: 9
> Date: Tue, 9 Oct 2007 17:01:41 -0700
> From: "Larry Low"  telesphere.com>
> Subject: [Nagios-users] Nagios 3.0b5 - ePN and perl caching
> 
> The problem I am having is with subroutines inside of perl scripts ran

> under the ePN.  If a subroutine is defined the next time the script or

> similar script is executed the ePN compile fails with a duplicate 
> subroutine reported as the problem.
> 
> I believe this problem does not exist under the 2.x code.

Do you mean that, after you change a plugin that Nagios is running, ePN
fails to compile the modified plugin with this (spurious) error code ?

If so, I am running 2.9 and have this problem.

Reluctantly I have found that the only way to deal with this is restart
Nagios after a plugin mod. 

It is a PITA. 

Patches welcome.

The 

> 
> 
> Larry Low


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] Nagios 3.0b5 - ePN and perl caching

2007-10-09 Thread Larry Low
The problem I am having is with subroutines inside of perl scripts ran under
the ePN.  If a subroutine is defined the next time the script or similar
script is executed the ePN compile fails with a duplicate subroutine
reported as the problem.

I believe this problem does not exist under the 2.x code.


Larry Low
4150 N Drinkwater Blvd., 5th Floor
Scottsdale, AZ  85251
E-mail: [EMAIL PROTECTED]'

Telesphere Networks, Inc




-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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