Re: [Nagios-users] check-nt Windows 2003 Server

2006-07-11 Thread jeff vier
On Tue, 2006-07-11 at 17:08 +0200, REMY Julien wrote:
> What does this software ?

The software's spouse?



(what are you asking?)

> -Message d'origine-
> De : Randal, Phil [mailto:[EMAIL PROTECTED] 
> Envoyé : mardi 11 juillet 2006 16:50
> À : REMY Julien; nagios-users@lists.sourceforge.net
> Objet : RE: [Nagios-users] check-nt Windows 2003 Server
> 
> Nobody told my Windows 2003 servers that!
> 
> pnsClient.exe works fine on Win 2003.  If you're on SP1, disable DEP for
> pnsclient.exe.
> 
> Cheers,
> 
> Phil
> 
> --
> Phil Randal
> Network Engineer
> Herefordshire Council
> Hereford, UK  
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] 
> > [mailto:[EMAIL PROTECTED] On Behalf 
> > Of REMY Julien
> > Sent: 11 July 2006 15:48
> > To: nagios-users@lists.sourceforge.net
> > Subject: Re: [Nagios-users] check-nt Windows 2003 Server
> > 
> > after researches on Internet, check_nt and ntclient are 
> > compatible only with Windows NT, 2000 and XP but not with 
> > Windows 2003.
> > 
> > Is there a solution?
> > 
> > Thanks
> > 
> > -Message d'origine-
> > De : REMY Julien 
> > Envoyé : mardi 11 juillet 2006 16:17
> > À : nagios-users@lists.sourceforge.net
> > Objet : [Nagios-users] check-nt Windows 2003 Server
> > 
> > Hello
> > 
> > I want to view the free space in my servers in Windows 2000 
> > and 2003. I configure the services.cfg file. That functions 
> > with the Windows 2000 servers but that isn't functions with 
> > the Windows 2003 Server.
> > 
> > The error message is : « connexion refusée » (refused connection).
> > 
> > In my checkcommands.cfg file : 
> > 
> > # 'check_nt' command definition
> > define command {
> > command_name  check-nt-disk
> > command_line  $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 
> > -v USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$
> > }
> > 
> > Why ?
> > 
> > Thank you very much
> > 
> > 
> > 
> > --
> > ---
> > Using Tomcat but need to do more? Need to support web 
> > services, security?
> > Get stuff done quickly with pre-integrated technology to make 
> > your job easier
> > Download IBM WebSphere Application Server v.1.0.1 based on 
> > Apache Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&;
> > dat=121642
> > ___
> > 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
> > 
> 
> 
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> 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


signature.asc
Description: This is a digitally signed message part

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
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] Network Monitoring?

2006-06-26 Thread jeff vier
On Mon, 2006-06-26 at 13:00 -0500, Pavleck, Jeremy D. wrote:
> Greetings,
>  This may be an odd question, considering my title is Network Engineer -
> but I'm the monitoring guy, and am going to setup a new instance of
> nagios dedicated to the network side of things - so simple question,
> what should I monitor as a general rule on each switch? Router?

Here we monitor:
CPU Load
IOS Version
Input Errors
Ping
SNMP Traps
Uptime
Various interface statuses
All interfaces' bandwidth via MRTG


signature.asc
Description: This is a digitally signed message part
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
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] Switch Port Monitoring

2006-06-23 Thread jeff vier
On Fri, 2006-06-23 at 16:55 +0100, Robert Jackson wrote:
> Anyone like to share how they monitor switch ports?
> 
> I have a series of switches that I would like to monitor the ports for.
> However
> I would only want to see the overall switch as a host and the switch
> ports as
> host services.
> 
> Is this possible, anyone know how to do this?

I use MRTG (which has the lovely benefit of exciting graphs) and then I
wrote a plugin that checks all of a host's RRD files (created by MRTG)
sequentially and compares them against a threshold.


signature.asc
Description: This is a digitally signed message part
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
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] Further differentiating between Acknowledged and Un-acknowledged problems

2006-06-23 Thread jeff vier
On Fri, 2006-06-23 at 17:45 +0200, Friedrich Clausen wrote:
> Thanks!
> 
> That works, how did you do that BTW?

read the source - there are all sorts of undocumented filters.

> Fred.
> 
> Sloane, Robert Raymond wrote:
> > try the following URL in place of the current "Service Problems" in
> > side.html:
> > 
> > http://nagioshost/nagios/cgi-bin/status.cgi?host=all&type=detail&service
> > statustypes=61&serviceprops=10&hostprops=10
> > 
> > you may have to play with the arguments to get exactly what you want.
> 
> 
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> 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


signature.asc
Description: This is a digitally signed message part
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
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 last check time for passive service checks

2006-06-06 Thread jeff vier
On Tue, 2006-06-06 at 12:59 -0500, Ben Grommes wrote:
> I'm using Nagios 2.3.1.  I'm not using NSCA, but instead my own program that
> submits PROCESS_SERVICE_CHECK_RESULT commands to the external command file. 

It sounds like your program isn't formatting the time correctly.

P.S.  top-posting is poor form.

> > -Original Message-
> > From: jeff vier [mailto:[EMAIL PROTECTED] 
> > Sent: Tuesday, June 06, 2006 12:57 PM
> > To: Ben Grommes
> > Cc: nagios-users@lists.sourceforge.net
> > Subject: Re: [Nagios-users] no last check time for passive 
> > service checks
> > 
> > On Tue, 2006-06-06 at 12:40 -0500, Ben Grommes wrote:
> > > The status cgi does not display the last check time for a passive 
> > > service check as far as I can tell.  Does anybody know why nagios 
> > > doesn't use the time when the passive service check was 
> > processed as the last check time?
> > > It would be useful to know in the status cgi when the last passive 
> > > service check result was processed from the status cgi.
> > 
> > Mine does.
> > 
> > What version of Nagios are you using?
> > 
> > Are these passive checks via NSCA or manually through the cgi?
> > 
> > If the former, what version of NSCA?
> > 
> 


signature.asc
Description: This is a digitally signed message part
___
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 last check time for passive service checks

2006-06-06 Thread jeff vier
On Tue, 2006-06-06 at 12:40 -0500, Ben Grommes wrote:
> The status cgi does not display the last check time for a passive service
> check as far as I can tell.  Does anybody know why nagios doesn't use the
> time when the passive service check was processed as the last check time?
> It would be useful to know in the status cgi when the last passive service
> check result was processed from the status cgi.

Mine does.

What version of Nagios are you using?

Are these passive checks via NSCA or manually through the cgi?

If the former, what version of NSCA?


signature.asc
Description: This is a digitally signed message part
___
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] basic config (client side)

2006-06-06 Thread jeff vier

Please always reply to the list so that others may benefit from your
experience.

On Tue, 2006-06-06 at 09:06 -0700, Winn Johnston wrote:
> impossible, it is in production, and works. I just
> want to know what is the deal with the etc/ directory
> in the /nagios directory?

Who knows?  A "normal" installation puts it where you tell it.

How did you install it?  What OS?  What version of Nagios?  What files
are in these directories you mentioned?

You didn't give near enough information for further assistance.

--jeff

P.S.  Top-posting is poor form.

> --- jeff vier <[EMAIL PROTECTED]> wrote:
> 
> > On Tue, 2006-06-06 at 08:37 -0700, Winn Johnston
> > wrote:
> > > I have noticed we have two nagios config
> > directories.
> > > One exists in /usr/local/nagios (which seems to
> > hold
> > > the config files for the server side) and
> > /etc/nagios
> > > (which seems to hold the config files for the
> > client
> > > side) now i know installs can differ greatly, so
> > this
> > > maybe an impossible question for anyone to answer,
> > but
> > > i figured i would give it a shot. The
> > > /usr/local/nagios has an etc/ directory in it, and
> > the
> > > /etc/nagios has no etc/ directory. So am i right
> > in
> > > assuming that the /usr/local/nagios directory is
> > the
> > > server side config, to be used on the main
> > monitoring
> > > server?
> > 
> > If it was me, I would say delete all that junk and
> > install it from
> > source, then you'll know for sure.
> > 
> 
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 


signature.asc
Description: This is a digitally signed message part
___
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] basic config (client side)

2006-06-06 Thread jeff vier
On Tue, 2006-06-06 at 08:37 -0700, Winn Johnston wrote:
> I have noticed we have two nagios config directories.
> One exists in /usr/local/nagios (which seems to hold
> the config files for the server side) and /etc/nagios
> (which seems to hold the config files for the client
> side) now i know installs can differ greatly, so this
> maybe an impossible question for anyone to answer, but
> i figured i would give it a shot. The
> /usr/local/nagios has an etc/ directory in it, and the
> /etc/nagios has no etc/ directory. So am i right in
> assuming that the /usr/local/nagios directory is the
> server side config, to be used on the main monitoring
> server?

If it was me, I would say delete all that junk and install it from
source, then you'll know for sure.


signature.asc
Description: This is a digitally signed message part
___
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] Working Yet

2006-06-06 Thread jeff vier
On Tue, 2006-06-06 at 14:32 +, Josh Konkol wrote:
> Is this Mail List working yet?
> 
> Sorry for this.

It appears to be.


signature.asc
Description: This is a digitally signed message part
___
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] multiple timeperiods?

2006-06-06 Thread jeff vier
On Tue, 2006-06-06 at 07:58 +0200, Hugo van der Kooij wrote:
> > > > Is there any way to put multiple timeperiods in a contact's
> > > > service_notification_period/host_notification_period?
> > > >
> > > > Or, some other way that I'm not visualizing?
> > >
> > > How about creating templates and merging them together to form the config?
> > > Should not be too hard to write and it can be flexed to your needs.
> >
> > Wouldn't a timeperiod template's definition for, say, monday just be
> > overridden by a timeperiod definition, instead of added-to?
> 
> I am not referring to nagios templates. Merge config files as you see fit
> based on crontab entries.
> 
> Just create your config files but leave the changing parts out of it. Then
> put those part in other files. (As many as you need) and automate to
> change the changing parts as often as required.
> 
> That is how I would do it.

Ah, I see what you're saying.

Maybe I should just beg/pay someone to patch in support for contacts
having multiple timeperiods :)


signature.asc
Description: This is a digitally signed message part
___
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] multiple timeperiods?

2006-06-05 Thread jeff vier
On Mon, 2006-06-05 at 22:38 +0200, Hugo van der Kooij wrote:
> > Is there any way to put multiple timeperiods in a contact's
> > service_notification_period/host_notification_period?
> >
> > Or, some other way that I'm not visualizing?
> 
> How about creating templates and merging them together to form the config?
> Should not be too hard to write and it can be flexed to your needs.

Wouldn't a timeperiod template's definition for, say, monday just be
overridden by a timeperiod definition, instead of added-to?


signature.asc
Description: This is a digitally signed message part
___
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] multiple timeperiods?

2006-06-05 Thread jeff vier
I'm driving myself mad with the amount of editing I'm having to do to
put people 'on-call'

Is there any way to put multiple timeperiods in a contact's
service_notification_period/host_notification_period?

Or, some other way that I'm not visualizing?

Right now, I pretty much have to have a timeperiod defined for each
schedule.  I'd much rather be able to have a person's normal schedule,
then append an "on-call" timeperiod, as well, instead of having to
edit-in the on-call times to a person's individual timeperiod.

Any help would be appreciated.


signature.asc
Description: This is a digitally signed message part
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] check_snmp_storage.pl

2006-06-01 Thread jeff vier
On Thu, 2006-06-01 at 16:51 -0500, Shah, Maunir wrote:
> This is related to check_snmp_storage.pl email I sent earlier.  I'm
> running into problems related to this script.  It works fine when I run
> the script from Nagios to check remote disk space on any Solaris 10 box.
> But I get this error when I check disk space for Solaris 8 or 9
> 
> ERROR: Description/Type table : No response from remote host
> 
> About you hanging this on your office wall sure go ahead and waste a
> paper.

My obvious point was, replying having deleted all context is not useful
in any way.

A mailing list is not a one-on-one conversation (where such behaviour is
*still* poor form), and context is vital to a useful posting.

Additionally, top-posting is poor form, and will get you ignored by many
members of the list.

> -Original Message-
> From: jeff vier [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, June 01, 2006 2:50 PM
> To: Shah, Maunir
> Cc: nagios-users@lists.sourceforge.net
> Subject: Re: [Nagios-users] check_snmp_storage.pl
> 
> On Thu, 2006-06-01 at 14:23 -0500, Shah, Maunir wrote:
> > Other boxes run Solaris 8 and 9.
> 
> Indeed they do!
> 
> What a fabulous contribution to my world, as it related to Nagios usage.
> 
> I think I might print that out and hang it on my office wall.
> 
> --jeff
> 
> P.S. What could you possibly be talking about?
> *** IMPORTANT MESSAGE 
> **
> This transmission may contain information that is privileged, confidential
> and/or exempt from disclosure under applicable law. If you are not the 
> intended
> recipient, you are hereby notified that any disclosure, copying, 
> distribution, 
> or use of the information contained herein (including any reliance thereon) 
> is 
> STRICTLY PROHIBITED. If you received this transmission in error, please 
> immediately contact the sender and destroy the material in its entirety, 
> whether
> in electronic or hard copy format. Thank you.
> 


signature.asc
Description: This is a digitally signed message part
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] check_snmp_storage.pl

2006-06-01 Thread jeff vier
On Thu, 2006-06-01 at 14:23 -0500, Shah, Maunir wrote:
> Other boxes run Solaris 8 and 9.

Indeed they do!

What a fabulous contribution to my world, as it related to Nagios usage.

I think I might print that out and hang it on my office wall.

--jeff

P.S. What could you possibly be talking about?


signature.asc
Description: This is a digitally signed message part


Re: [Nagios-users] Service Groups

2006-05-31 Thread jeff vier
On Wed, 2006-05-31 at 08:54 -0600, markham breitbach wrote:
> Yes, Nagios 1.x can also be setup to use service groups something like
> this:

That's a hostgroup, not a servicegroup.

> hostgroups.cfg
> 
> define hostgroup{
>  hostgroup_namerouters
>  alias Routers for the Network
>  contact_groupspager-guys
>  members   router1, router2, router3
> }
> 
> services.cfg
> 
> define service{
>  hostgroup_name routers
>  useping-template
> }
> 
> You will then be able to manage all routers as a single group and your
> config file becomes much more manageable.
> 
> -M
> 
> 
> At 05:03 AM 5/31/2006, Marco Ramos wrote:
> 
> > Hi,
> > 
> > On Wed, 2006-05-31 at 11:34 +0100, Oliver Marshall wrote:
> > > Does Nagios support service groups ? I want to create a group
> > called
> > 
> > Nagios 2.x does, Nagios 1.x doesn't.
> > 
> > http://nagios.org/development/changelog.php
> > 
> > HTH,
> > Marco Ramos
> > 
> > > "Fil Print Servers" which contains all the servers that perform
> > file and
> > > print duties. That service group would then have a group of
> > commands
> > > associated with it, so that any server that's part of that group
> > also
> > > inherits these services ?
> > > 
> > > I'm finding that most of my servers fall in to one of four groups,
> > each
> > > group sharing similar services.
> > > 
> > > Olly
> > > 
> > > 
> > > ---
> > > All the advantages of Linux Managed Hosting--Without the Cost and
> > Risk!
> > > Fully trained technicians. The highest number of Red Hat
> > certifications in
> > > the hosting industry. Fanatical Support. Click to learn more
> > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid7521&bid$8729&dat1642 
> > > ___
> > > 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
> > > 
> > 
> > 
> > 
> > ---
> > All the advantages of Linux Managed Hosting--Without the Cost and
> > Risk!
> > Fully trained technicians. The highest number of Red Hat
> > certifications in
> > the hosting industry. Fanatical Support. Click to learn more
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 
> > ___
> > 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
> --- All the
> advantages of Linux Managed Hosting--Without the Cost and Risk! Fully
> trained technicians. The highest number of Red Hat certifications in
> the hosting industry. Fanatical Support. Click to learn more
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 
> ___ 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


signature.asc
Description: This is a digitally signed message part


RE: [Nagios-users] Reloading nagios config

2006-05-24 Thread jeff vier
On Wed, 2006-05-24 at 09:53 -0500, Marc Powell wrote:
> > And when you get "weirdness" with your CGIs the phrase you'll be
> looking
> > for is 'zombie processes'.
> That should only occur on restart, when a new daemon is started, not
> reload since the currently running daemon is maintained.

"should", perhaps.

It's bitten me.

Any zombies would maintain the old config, no?

I can say, for sure, I have seen it with my server here.
I've gotten out of the habit of using reload long ago, so, perhaps it's
fixed, but it also seems logical to me that it could cause the zombie
problem.


signature.asc
Description: This is a digitally signed message part


Re: [Nagios-users] status.cgi mixing services up?

2006-05-24 Thread jeff vier
On Wed, 2006-05-24 at 16:45 +0200, [EMAIL PROTECTED] wrote:
> Hi gang,
> 
> I have found a slightly disturbing behaviour in status.cgi: Sometimes it 
> duplicates the status of a service onto another. I discovered this once 
> and can since reproduce it using the reload button of my browser. This 
> is Nagios 2.3.1 and NRPE 2.5.1.

Stop nagios.

Kill all the zombie processes.

Start nagios.


signature.asc
Description: This is a digitally signed message part


Re: [Nagios-users] Reloading nagios config

2006-05-24 Thread jeff vier
On Wed, 2006-05-24 at 13:32 +0100, Oliver Marshall wrote:
> For the sake of google, using Mandriva (and prob loads others), you can
> do this to reload the nagios config files;
> 
> /etc/init.d/nagios reload

And when you get "weirdness" with your CGIs the phrase you'll be looking
for is 'zombie processes'.

Just for future reference.


signature.asc
Description: This is a digitally signed message part


Re: [Nagios-users] blagging

2006-05-22 Thread jeff vier
On Mon, 2006-05-22 at 13:03 -0700, Jason Martin wrote:
> > > > > So, who fancies creating a virtual machine for me running linux with
> > > > > Nagios installed, with a web-based front-end to manage Nagios with, 
> > > > > all
> > > > > configured to be compatible with a windows based agent ?
> > > >
> > > > How many tens of thousands of dollars are you offering, again?
> > > 
> > > Wow, you running a discount week or something? That seems a tad cheap
> > > given the requirements.
> So what are the requirements again? Install a stock Linux
> distribution, install Nagios, install plugins, install a stock web
> config gui tool, and install the client portion of the windows
> agents?  

If you believe in your heart that it will be that simple...well...bless
you, and good luck.

You've apparently never done consulting work.


signature.asc
Description: This is a digitally signed message part


Re: [Nagios-users] blagging

2006-05-22 Thread jeff vier
On Mon, 2006-05-22 at 15:41 -0400, Jim Perrin wrote:
> On 5/22/06, jeff vier <[EMAIL PROTECTED]> wrote:
> > On Mon, 2006-05-22 at 20:13 +0100, Oliver Marshall wrote:
> > > So, who fancies creating a virtual machine for me running linux with
> > > Nagios installed, with a web-based front-end to manage Nagios with, all
> > > configured to be compatible with a windows based agent ?
> >
> > How many tens of thousands of dollars are you offering, again?
> 
> Wow, you running a discount week or something? That seems a tad cheap
> given the requirements.

I didn't put a ceiling on it, I just wanted to aim him at the correct
ballpark.

I figure 7 (* $10K) is a bare-minimum.  *I* wouldn't take it, but
someone might.

Get up over $100K, and I would at least think about it.


signature.asc
Description: This is a digitally signed message part


Re: [Nagios-users] blagging

2006-05-22 Thread jeff vier
On Mon, 2006-05-22 at 20:13 +0100, Oliver Marshall wrote:
> So, who fancies creating a virtual machine for me running linux with
> Nagios installed, with a web-based front-end to manage Nagios with, all
> configured to be compatible with a windows based agent ?

How many tens of thousands of dollars are you offering, again?


signature.asc
Description: This is a digitally signed message part


Re: Re(2): [Nagios-users] Abnormal Program Termination

2006-05-16 Thread jeff vier
On Tue, 2006-05-16 at 17:23 -0400, Robert Snyder wrote:
> On Tue, May 16, 2006, jeff vier wrote:
> 
> >Stop Nagios.
> >
> >Kill all the zombie Nagios processes.
> >
> >Start Nagios.
> >
> >Done.
> 
> Thanks. That did the trick. 
> 
> What is the best way to update nagios once you have made changes to
> the .cfg files. I had been using stop/start. But I am guessing that is
> what gave me all the zombie processes. Is it better form to just use the
> reload and force-reload commands?

I wrote some extra logic into the init script to wait for the processes
to die (echoing a dot every second it waits..).

If it doesn't die efficiently, I open another SSH session and manually
kill -9 the hung process(es).

I don't know if reload would work or not, though.


signature.asc
Description: This is a digitally signed message part


Re: [Nagios-users] Abnormal Program Termination

2006-05-16 Thread jeff vier
On Tue, 2006-05-16 at 16:51 -0400, Robert Snyder wrote:
> I have a very strange situation going on with my reports. 
> 
> When I go to the Service Detail screen, sometimes the number of services
> listed for each host is different. I can reload the page and then the
> missing services return to the list. 

Stop Nagios.

Kill all the zombie Nagios processes.

Start Nagios.

Done.


signature.asc
Description: This is a digitally signed message part


RE: [Nagios-users] Minor timeperiods question.

2006-05-11 Thread jeff vier
On Thu, 2006-05-11 at 16:46 -0400, James E. Pratt wrote:
> The first one - 24:00 is midnight. (00:01 is 12:01am etc etc)

Right, but isn't "00:00" the same thing as "24:00"?

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of jeff vier
> Sent: Thursday, May 11, 2006 4:41 PM
> To: nagios-users
> Subject: [Nagios-users] Minor timeperiods question.
> 
> The question is the midnight minute.
> 
> Which is correct?
> 
> define timeperiod {
> timeperiod_name thirdshift
> alias   Third Shift
> sunday  23:00-24:00
> monday  00:00-08:00,23:00-24:00
> tuesday 00:00-08:00,23:00-24:00
> wednesday   00:00-08:00,23:00-24:00
> thursday00:00-08:00,23:00-24:00
> friday  00:00-08:00
> }
> 
> 
> OR
> 
> define timeperiod {
> timeperiod_name thirdshift
> alias   Third Shift
> sunday  23:00-23:59
> monday  00:00-08:00,23:00-23:59
> tuesday 00:00-08:00,23:00-23:59
> wednesday   00:00-08:00,23:00-23:59
> thursday00:00-08:00,23:00-23:59
> friday  00:00-08:00
> }
> 
> 
> Thanks.


signature.asc
Description: This is a digitally signed message part


[Nagios-users] Minor timeperiods question.

2006-05-11 Thread jeff vier
The question is the midnight minute.

Which is correct?

define timeperiod {
timeperiod_name thirdshift
alias   Third Shift
sunday  23:00-24:00
monday  00:00-08:00,23:00-24:00
tuesday 00:00-08:00,23:00-24:00
wednesday   00:00-08:00,23:00-24:00
thursday00:00-08:00,23:00-24:00
friday  00:00-08:00
}


OR

define timeperiod {
timeperiod_name thirdshift
alias   Third Shift
sunday  23:00-23:59
monday  00:00-08:00,23:00-23:59
tuesday 00:00-08:00,23:00-23:59
wednesday   00:00-08:00,23:00-23:59
thursday00:00-08:00,23:00-23:59
friday  00:00-08:00
}


Thanks.


signature.asc
Description: This is a digitally signed message part


Re: R: [Nagios-users] acknowledge

2006-05-11 Thread jeff vier
On Thu, 2006-05-11 at 18:21 +0200, Hugo van der Kooij wrote:
> On Thu, 11 May 2006, jeff vier wrote:
> 
> > On Thu, 2006-05-11 at 17:01 +0200, Marco Borsani wrote:
> > > Well...
> > >
> > > I try link you suggested me, but I do not understand how it can help 
> > > me
> >
> > You said "My target is to reduce the number of CRITICAL flags on the
> > Nagios Web Page."
> 
> Come to think of it. I find this a rather peculiar target. I would say
> solving the problem is your target and getting all green accross the board
> with Nagios is the way to show it.
> 
> Just getting everything green without solving the problem sounds rather
> shortsighted to me. Why bother to perform the checks? Just show some
> greenish static pictures and everyone is happy. I bet you can even reduce
> staff.

For us, the problem is that with over 6,000 services and 5 different
teams (Software, Networking, Infrastructure, Unix Administration, and
Internal Development) all working with the same monitoring system,
having the screens in the NOC showing problems that are already being
actively worked on would be horribly annoying.

For instance, the Network Team sees an alert about a router being down -
before the router goes to Hard Down, though, 4 services get to a Soft
Critical.  They are on the problem and dealing with it, so they Ack it.
The Software Team doesn't need to keep staring at the problem on the
projectors at the front of the NOC, so such filtering allows a much more
useful front screen.

Not to mention, over here, that router is very likely at a client site,
and they powered it off (either on accident or just without telling us)
and we CAN'T fix it ourselves.

And what about Downtime?  We have Windows servers that need updates and
whatnot - when they're in Downtime and go all-red, the NOC doesn't need
to see that crap.

And what about hardware failures on a primary server that gets
temporarily swapped with an on-site spare?  We don't need to see all-red
spare servers for a week before they're replaced.

Not to mention, our NOC is a "show piece" when the execs are touring
clients around to show them how we watch the services we provide them.
Having a bunch of Red/Yellow/Orange up there is no good, if we can help
it.

When we were <10 people (3 years ago) and worked in a room with no
windows, this wasn't necessary (only about 600 or 800 services then,
too).  Now we're over thirty (closer to forty) people, a
partially-glass-walled, tiered NOC and have the aforementioned 6,000+
services (and another thousand or so going in in the next month with
more clients coming on board).

So, it's all an issue of scale and what the needs of the individual team
(or teams) need and want.

Of course, it would just be easier if everything just stayed green,
though :)


signature.asc
Description: This is a digitally signed message part


Re: R: R: [Nagios-users] acknowledge

2006-05-11 Thread jeff vier
On Thu, 2006-05-11 at 17:30 +0200, Marco Borsani wrote:
> -}On Thu, 2006-05-11 at 17:01 +0200, Marco Borsani wrote:
> -}> Well...
> -}> 
> -}> I try link you suggested me, but I do not understand how it 
> -}can help me
> -}
> -}You said "My target is to reduce the number of CRITICAL flags 
> -}on the Nagios Web Page."
> -}
> -}I'm giving you a quick, easy, and "correct" way to accomplish this.
> 
> Yes, but I still see them in the box "Service Status Tools?

Without some minor CGI hacking, yes.


signature.asc
Description: This is a digitally signed message part


Re: R: [Nagios-users] acknowledge

2006-05-11 Thread jeff vier
On Thu, 2006-05-11 at 17:01 +0200, Marco Borsani wrote:
> Well...
> 
> I try link you suggested me, but I do not understand how it can help me

You said "My target is to reduce the number of CRITICAL flags on the
Nagios Web Page."

I'm giving you a quick, easy, and "correct" way to accomplish this.

> By the way, does anyone may give me any information regarding acknowledge
> procedure and its purpose?

We don't understand what you're asking here, exactly.

Acknowledging a problem allows Nagios to continue checking the service
until it recovers, but doesn't send alerts.  the implication is that you
(or whoever) is Acknowledging that they know about the problem, and are
working on it.  Hence the name.

Does that answer your question?


signature.asc
Description: This is a digitally signed message part


Re: [Nagios-users] acknowledge

2006-05-11 Thread jeff vier
On Thu, 2006-05-11 at 11:13 +0200, ThomasC. wrote:
> Marco Borsani a écrit :
> 
> > I have several services in CRITICAL state, I disabled checks and
> > notifications because I know that those will remain in that condition for a
> > long period. 
> > Is there anything that I can do to change their status? My target is to
> > reduce the number of CRITICAL flags on the Nagios Web Page.
> What i do when i am in your situation, i send a passive check for 
> service(submit passive check result for this service) from the web 
> interface and add a comment.

My solution here is to change the default web page to filter out Ack'd
and Downtime'd hosts and services.

I think that's a lot more "correct" a solution, personally.  I would not
like people falsely changing the state of services or hosts.

Not to mention, such a false submission would be over-ridden by the
active service check within 3-5 minutes.

https://yournagioshost/nagios/cgi-bin/status.cgi?host=all&hoststatustypes=15&hostprops=10&servicestatustypes=28&serviceprops=10&sorttype=1&sortoption=6


signature.asc
Description: This is a digitally signed message part


Re: [Nagios-users] Security vulnerability

2006-05-05 Thread jeff vier
On Fri, 2006-05-05 at 09:57 -0500, Sloane, Robert Raymond wrote:
> I assume everyone has already seen this?
> 
> http://www.frsirt.com/english/advisories/2006/1662  

Not that exact alert, but yes, and it's been dealt with in development.

v2.3 and v1.4 of Nagios core have the fix.


signature.asc
Description: This is a digitally signed message part


Re: [Nagios-users] restart http with ssl certificate pass

2006-04-19 Thread jeff vier
On Wed, 2006-04-19 at 10:54 +0200, ThomasC. wrote:
> What is expect?

Man, if only some evil genius could come up with a way of searching
through web sites for an arbitrary word or phrase that interested me.

If it were me, I would call it an Engine of Searching.


signature.asc
Description: This is a digitally signed message part


Re: [Nagios-users] E-mail Message

2006-04-12 Thread jeff vier
On Wed, 2006-04-12 at 10:24 -0300, Hugo Rebello wrote:
> We cannot install two SMTP server on the same network, so I need 
> configure the Nagios to use my main SMTP server.

Why?
That's insanity.


signature.asc
Description: This is a digitally signed message part


Re: [Nagios-users] distributed servers - how to tell which one executed a check?

2006-04-11 Thread jeff vier
On Tue, 2006-04-11 at 14:21 -0700, Trask wrote:
> I haven't seen anything in the docs about this...  I am hoping to have
> an indication somewhere of which distributed nagios server executed
> the last check.
> 
> A little background into my setup:
> - 4 nagios servers (all running 2.2 now)
> - nag1, nag2 and nag3 at each office/colo
> - nag4 is the central server receiving passive check info and serving
> as a fallback if one of the other 3 fail (and also importantly, the
> visual interface to all the checks).
> 
> These are glued together with some homebrew scripts to ease management
> of the distributed setup.  My goal is to be able to see which of these
> servers executed the last check.
> 
> As a stop-gap measure I modified p1.pl to prepend the nagios server's
> hostname to the plugins output.  This is an acceptable solution for
> the perl scripts, but that doesn't include any of the other (non-perl)
> plugins.
> 
> Anyone accomplish this already or have an idea of how to do this?

What I do is set $USER32$ to the geographic location (say, UK or DE),
then my distributed submit script (via nsca) sends '$USER32$ -
$HOSTOUTPUT$' (or '$USER32$ - $SERVICEOUTPUT$') for the output instead
of just the output.

Works like a charm.


signature.asc
Description: This is a digitally signed message part


Re: [Nagios-users] Oreon Project?

2006-04-07 Thread jeff vier
On Fri, 2006-04-07 at 16:59 -0400, Andrew Cruse wrote:
> I was perusing nagiosexchange.org and ran across the Oreon Project
> (http://www.oreon-project.org/index-en.html).  Has anyone given this a
> shot?  Comments?  It looks amazing from the screenshots, but it seems to
> be a pretty young project so I'm concerned it might still be pretty
> buggy...

I tried it, but it didn't support v2.x

And all the comments and variables and such were in French, so I
couldn't efficiently hack it.

So I'm writing my own using the NDO Utils DB as a feed.


signature.asc
Description: This is a digitally signed message part


Re: [Nagios-users] Error when starting nagios

2006-04-07 Thread jeff vier
On Fri, 2006-04-07 at 08:52 -0400, Sameka Prather wrote:
> Hello Again Jeff,
> 
> I do apologize for the delay in my response.
> I ran the the nagios script with -x and this was the output.  I still
> unclear to me why I get the error.   Any ideas would be greatly
> appreciated. See below

> + su -l apache -c
> 'touch /usr/local/nagios/var/nagios.log /usr/local/nagios/var/status.sav' 
> This account is currently not available.


What shell is your apache account?
I'm betting it's /bin/true or /bin/false or the login is locked or
something.


signature.asc
Description: This is a digitally signed message part


Re: [Nagios-users] To monitor hosts in my network.

2006-04-05 Thread jeff vier
On Wed, 2006-04-05 at 19:11 +0530, rash wrote:
> 
> Imagine this scenario where there are 1000's of m/cs running across
> different networks..Its going to be quite a tedious task to manually
> enter  the host information eventhough each host could be using
> different services.. 
> May be hosts across different network need different services to be
> monitored then there should be a easier way to specify all the hosts
> under one network right?

So write a script to write the configs for you.


signature.asc
Description: This is a digitally signed message part


[Nagios-users] Event broker causing graph gaps?

2006-03-31 Thread jeff vier
I've experimented with the cause/effect relationship of the NDO utils
running as the event broker, and I can say positively that it is
"causing" my service graphs to have lots of gaps for checks that write
metrics to RRD files.

I'm honestly at a loss as to why, though.

The load hasn't gone up on the nagios server (if anything, it's gone
down a bit).

The MySQL backend is very comfy (low load, again).

All rrd writes are done *within* the plugin (both with an apan wrapper
and custom scripts).

Yet, the checks appear to be happening (alerts are still going out,
etc).

Definitely perplexing.  Any ideas?


signature.asc
Description: This is a digitally signed message part


Re: [Nagios-users] Error when starting nagios

2006-03-31 Thread jeff vier
On Fri, 2006-03-31 at 07:34 -0500, Sameka Prather wrote:
> I am not sure what you mean.  Do you want me to add -s to the first
> line in the script #! -x?  So that line would look like #! /bin/sh -x.

without the space after the #!, yes.

#!/bin/sh -x

a quick google search found:
http://www.injunea.demon.co.uk/pages/page213.htm


signature.asc
Description: This is a digitally signed message part


Re: [Nagios-users] won't start as daemon

2006-03-30 Thread jeff vier
On Thu, 2006-03-30 at 19:32 -0500, James Nachlin wrote:
> I'm having this crazy problem.  `nagios -v nagios.cfg` says there are no 
> errors in the config file.  Nagios will run in the foreground (`nagios 
> nagios.cfg`).  But `nagios -d nagios.cfg` does nothing.  No nagios in 
> background.  No nagios in foreground.  No error messages.  Nothing.
> 
> This is Nagios 2.0 running in CentOS on the 2.6.9 kernel.  I'm issuing 
> these commands as root.
> 
> Any ideas, thoughts, musings, or insights appreciated.

what does the log tell you?


signature.asc
Description: This is a digitally signed message part


Re: [Nagios-users] Error when starting/restarting nagios

2006-03-30 Thread jeff vier
On Thu, 2006-03-30 at 15:46 -0500, Sameka Prather wrote:
> Hello,
> 
> When I start nagios I get the following error but it seem to start fine.
> Starting network monitor: nagios
> This account is currently not available.
>   PID TTY   TIME CMD
> 2953?  00:00:00 nagios
> 
> Can any one tell me what this mean?  Like I said, is working fine but I
> get this error when I restart or start the service.

Same answer as the last time you asked (11 minutes ago).


signature.asc
Description: This is a digitally signed message part


Re: [Nagios-users] Error when starting nagios

2006-03-30 Thread jeff vier
On Thu, 2006-03-30 at 15:35 -0500, Sameka Prather wrote:
> When I start nagios I get the following error but it seem to start fine.
> Starting network monitor: nagios
> This account is currently not available.
>   PID TTY   TIME CMD
> 2953?  00:00:00 nagios
> 
> Can any one tell me what this mean?  Like I said, is working fine but I
> get this error when I restart or start the service.

Add " -x" to your #! line and look at where it's happening in the
script.


signature.asc
Description: This is a digitally signed message part


Re: [Nagios-users] NRPE: Unable to read output Problems

2006-03-30 Thread jeff vier
On Thu, 2006-03-30 at 11:30 +0100, Sandeep Narasimha Murthy wrote:
> Hi all,
> 
> I installed a new script in a remote server but on trying to invoke it
> from my Nagios host with the command : 
> 
> ./check_nrpesun -H 192.168.5.10  -p 5666 -t 5 -c check_wlheap
> 
> I get a "NRPE: Unable to read output " message.
> 
> Now, before anybody suggests that I check the file and directory
> permissions, I have already done that and confirmed and reconfirmed that
> the script has the proper permissions. :)
> 
> I have a number of scripts running on this remote server and all of them
> run fine except for this one. All have the same permissions and are
> configured Ok in the nrpe.cfg.
> 
> Is there anything else I should check for ?

Something is dumping to stderr.

The quick way to find out what that is is to add " 2>&1" to the end of
the problem command in your nrpe.cfg and run the check by hand (from the
nagios server).


signature.asc
Description: This is a digitally signed message part


Re: [Nagios-users] which nagios config gui are you using?

2006-03-30 Thread jeff vier
On Wed, 2006-03-29 at 16:08 -0500, L. Mark Stone wrote:
> > vim. does vim count as a gui?
> Nope.  emacs counts as gui, but not vim.

Them's fightin' words in my neck 'o the woods! ;)


signature.asc
Description: This is a digitally signed message part


Re: [Nagios-users] per host custom macros

2006-03-29 Thread jeff vier
On Wed, 2006-03-29 at 12:06 -0600, jeff vier wrote:
> 
> > define host {
> > use generic-host
> > host_name myhost.mydomain.com
> > alias myhost
> > address 1.2.3.4
> > 
> > custom_macro FOOPROPERTY=AA:BB:CC:DD
> > custom_macro BARVALUE=BigImportantValue
> > 
> > hostgroups all_foo,all_bar
> > }
> 

> > define command {
> > command_name check_foo
> > command_line $USER1$/check_foo -f $FOOPROPERTY$
> > }
> 
> You've pretty much exactly described $ARG1$, $ARG2$, ... $ARGn$

I'm sorry - I misspoke.

You've *almost* described $ARGn$.

My apologies.

Just hack in another property.
shouldn't be a big deal.

then it'd just be, like,

...
host_macro1 BLAH
host_macro2 FOO
...


signature.asc
Description: This is a digitally signed message part


Re: [Nagios-users] per host custom macros

2006-03-29 Thread jeff vier
On Wed, 2006-03-29 at 12:55 -0500, David Mansfield wrote:

> Something like:
> 
> define host {
>   use generic-host
>   host_name myhost.mydomain.com
>   alias myhost
>   address 1.2.3.4
> 
>   custom_macro FOOPROPERTY=AA:BB:CC:DD
>   custom_macro BARVALUE=BigImportantValue
> 
>   hostgroups all_foo,all_bar
> }
> 
> With:
> 
> define hostgroup {
>   name all_foo
>   alias all_foo
> }
> 
> define service {
>   hostgroup_name all_foo
>   check_command check_foo
> }
> 
> And finally, the payoff:
> 
> define command {
>   command_name check_foo
>   command_line $USER1$/check_foo -f $FOOPROPERTY$
> }

You've pretty much exactly described $ARG1$, $ARG2$, ... $ARGn$


signature.asc
Description: This is a digitally signed message part


Re: [Nagios-users] Apologies for multiple posts

2006-03-28 Thread jeff vier
On Tue, 2006-03-28 at 14:00 -0500, Travis wrote:
> Deepest apologies for multiple posts to the mailing list. Subject:
> Nagios / SNMP Traps.. I kept getting a bounce back claiming that the
> message was returned because it was reported as SPAM. ? ? ? 
> 
> Anyway, I would have never posted the same message multiple times had
> I known that it was getting through. 

Those bounce-backs are almost certainly from individual users who do not
understand mailing lists.

I flag THEM as Spam, personally.


signature.asc
Description: This is a digitally signed message part


Re: [Nagios-users] POLL: nagios integration with other tools

2006-03-16 Thread jeff vier
On Thu, 2006-03-16 at 10:24 -0500, Jim Perrin wrote:
> I've been using nagios heavily for about a year now and have been
> quite pleased with it. It monitors nearly every aspect of the servers
> I'm responsible for, but in the interest of never sitting still, I've
> been looking to see what tools have been integrated with nagios. A
> post on the rt (bestpractical) mailing list has a patch for 1.x to
> open rt tickets etc, and I wanted to see what others are doing with
> customizations. Has anyone combined nagios with an asset management
> system, bugzilla, etc. How do others on the list work with nagios, and
> how does it fit into your environment?

Let's see.

Wrote a new (for me, better) MRTG RRD checker.  Notifies on any
interface over-threshold (some of our switches have hundreds and
hundreds of interfaces - individual watching wouldn't be practical).

Integrated support for Trading Technologies' SuperGuardian Agent (This
probably doesn't mean much unless you're a derivative market trading
firm).

minor link-in to an internal asset management system (lets you pull up
serial numbers, contract numbers, purchase information, etc, etc).

probably some other stuff I've forgotten.


signature.asc
Description: This is a digitally signed message part


Re: [Nagios-users] NRPE: Unable to read output

2006-03-16 Thread jeff vier
On Thu, 2006-03-16 at 04:45 -0800, satish kumar wrote:
> Hi,
>  
> I am getting this message when i try to run a perl script on a nagios
> server requesting via check_nrpe for remote server running with
> nrpe.The script is on the remote server.Please help me it is
> immediate.
 
is it any particular script?

The first thing I would do is add " 2>&1" to the end of your command
definition in nrpe.cfg.

This will echo back stderr, which will tell you what's wrong (with Perl,
almost certainly a missing library).



signature.asc
Description: This is a digitally signed message part


Re: [Nagios-users] check_ssh_login ?

2006-03-15 Thread jeff vier
On Wed, 2006-03-15 at 15:44 -0500, John P. Rouillard wrote:
> In message <[EMAIL PROTECTED]>,
> jeff vier writes:
> >I need to check if I can log into a specific account on a system via
> >SSH, but due to the nature of the system (tunneled to a serial console),
> >I am unable to set up a key pair.
> 
> Replace your serial consoles with something like a Cyclades that
> allows use of public keys.

it's an off-site hosted box for a side-project of mine.

This isn't enterprise-level stuff (and I can't influence changes
directly).

> I don't think check_by_ssh is going to work since the ssh->serial
> connection will probably not permit execution of a script and the
> return of the exit code without a lot of work. Also it has no real
> interactive support and it should like you need that.

that's a good point.
I was envisioning it functioning like, as you said below, an expect
wrapper or something similar.

In the mean time, I'm forcing myself to be satisfied with just checking
that I can connect to the SSH server at all.

> >does anyone have a solution with existing tools?
> An expect wrapper around ssh should do the trick and it can negotiate
> the login prompt on the serial port as well.

I don't want to actually log in, I just want to see that I'm prompted
for the username with the correct hostname.

So, yeah, I think we're on the same page.


signature.asc
Description: This is a digitally signed message part


[Nagios-users] check_ssh_login ?

2006-03-15 Thread jeff vier
I need to check if I can log into a specific account on a system via
SSH, but due to the nature of the system (tunneled to a serial console),
I am unable to set up a key pair.

check_ssh only verifies that the system is answering to SSH requests
(which doesn't help me, the serial console host almost certainly
responds).

check_by_ssh is *close*, but provides no method of passing a password
via the command line (which, yes, is a ghetto method of doing things,
but you would still have to know the login to the system, and it *is
different*), and it requires a remote command to execute.

So, before I delve into hacking this functionality into check_by_ssh,
does anyone have a solution with existing tools?


signature.asc
Description: This is a digitally signed message part


RE: [Nagios-users] nagios not notifying by email [RESOLVED]

2006-02-27 Thread jeff vier
On Mon, 2006-02-27 at 15:30 -0600, Ryan Wilcox wrote:
> error existed between chair and keyboard... thanks for your suggestions
> marc, it made me think of something that i didn't check before my
> inquiry.

what was it, for people searching the archives in the future?


> >> -Original Message-
> >> From: [EMAIL PROTECTED] [mailto:nagios-users-
> >> [EMAIL PROTECTED] On Behalf Of Marc Powell
> >> Sent: Monday, February 27, 2006 1:53 PM
> >> To: nagios-users@lists.sourceforge.net
> >> Subject: RE: [Nagios-users] nagios not notifying by email
> >> 
> >> 
> >> 
> >> > -Original Message-
> >> > From: [EMAIL PROTECTED]
> [mailto:nagios-users-
> >> > [EMAIL PROTECTED] On Behalf Of Ryan Wilcox
> >> > Sent: Monday, February 27, 2006 10:36 AM
> >> > To: nagios-users@lists.sourceforge.net
> >> > Subject: RE: [Nagios-users] nagios not notifying by email
> >> >
> >> > I am having a similar type problem... I have searched around,
> didn't
> >> > find anything that was exactly the same. Here are my settings:
> >> >
> >> > enable_notifications=1
> >> > retain_state_information=1
> >> >
> >> > Notifications were working fine in our 1.x build, after I upgraded
> to
> >> > 2.x my email, pager, etc., notifications stopped working.
> >> >
> >> > Viewing my event log, I see that the notifications are actually
> >> getting
> >> > logged, however they are not being sent to the recipients. Thinking
> >> > about this more, it sounds like a linux problem not my nagios
> configs?
> >> >
> >> > Any help would be greatly appreciated.
> >> 
> >> What have you tried to diagnose or correct the problem before coming
> >> here?
> >> 
> >> It appears that your host and service definitions are probably OK if
> >> you're seeing notification attempts in nagios.log.
> >> 
> >> Did you verify you're using the correct (new) macros in your
> >> notification command?
> >> 
> >> Have you tried running your notification command from the command
> line
> >> as the nagios user, substituting in appropriate text for the macros?
> >> What happens?
> >> 
> >> Have you looked in your mail server logs to determine if it sees the
> >> notification attempt? Queues the mail? Attempts to deliver it?
> Bounces
> >> it?
> >> 
> >> Have you tried 'echo'ing your notification command to a file to
> verify
> >> that it has the correct syntax and format?



signature.asc
Description: This is a digitally signed message part


Re: [Nagios-users] TXT Message a sell phone

2006-02-24 Thread jeff vier
On Fri, 2006-02-24 at 15:30 -0600, Joe Jackson wrote:
> Jeff,
>   What i mean is that, Nagios will send mail to my internal Exchange
> address, however it wont send to any address outside of my internal
> domain.

your mail server has to allow relaying from your Nagios server.

>  
> On 2/24/06, Joe Jackson <[EMAIL PROTECTED]> wrote: 
> Is it permitted? Yes
>  
> Is it configured to do so? Most likley not.
>  
> I am not new to Linux however i am not that versed in it, so i
> need to know what i need to configure in this Linux box to
> make it relay through Exchange. If you guys can't tell me (do
> to rules/restrictions on this list) please tell me where i can
> find it. 
> 
>  
> Thanks,
> Joe
>  
> On 2/24/06, Paul Lathrop <[EMAIL PROTECTED]> wrote: 
> Joe,
> 
> The problem you are having lies *outside* of Nagios.
> You need to
> configure the local system (where Nagios is installed)
> to properly send 
> oubound mail through the Exchange server.
> 
> Joe Jackson wrote:
> > Derek,
> >   That is pretty much what i though, but i guess i
> have something goofed up.
> > It will send mail enternal to our domain/exchange
> server, but nothing out 
> > side of our domain, (i.e. Vtext.com). Is there a way
> inside Nagios to tell
> > it to send all out bound mail through our Exchange
> server? 
> >
> >
> > On 2/24/06, Derek J. Balling < [EMAIL PROTECTED]>
> wrote:
> >
> >>Well, if you're just trying to send it via e-mail,
> you can send it 
> >>like any other e-mail message. Nagios basically
> injects its e-mail 
> >>into its local MTA on that box, which is configured
> however you set
> >>it up (and that's a little outside the scope of this
> list, but 
> >>relaying to offsite domains like Verizon should be a
> factory config 
> >>pretty much).
> >>
> >>cheers,
> >>D
> >>
> >>On Feb 24, 2006, at 3:13 PM, Joe Jackson wrote:
> >>
> >>
> >>>Derek,
> >>>  Thanks for your comments. I think you pretty much
> understand what 
> >>>I am trying to do, but just to clarify; I would
> like to be able to
> >>>send messages to cell phones..Right, well our
> corporate cell 
> >>>carrier is Virizon, if you don't already know, you
> can send an SMS 
> >>>text message to a Verizon cell phone by sending an
> SMTP e-mail to
> >>>the phone number like this: (cell Phone-Number)@
> vtext.com, now is
> >>>there a way to make Nagios send mail to that
> number? I noticed that 
> >>>there is no where in Nagios (unless i missed it
> some where) to 
> >>>setup SMTP gateway information, so sending e-mail
> to outside e-mail
> >>>addresses isn't possible, please correct if i am
> wrong. 
> >>>
> >>>Thanks,
> >>>Joe
> >>> 
> >>>
> >>>On 2/24/06, Derek J. Balling <[EMAIL PROTECTED]>
> wrote: Cell
> >>>Phone != Alphanumeric Pager 
> >>>
> >>>Lots of cell providers simply don't provide IXO/TAP
> service.
> >>>
> >>>And, as you point out, e-mailing to an e-mail
> address is all well and 
> >>>good unless your report is "Core Router Down", then
> you might find 
> >>>out about it, several times, after you've repaired
> it. :-)
> >>>
> >>>You want to investigate using enterprise-level SMS
> services. We're in 
> >>>the process right now of doing some of that
> research ourselves, and 
> >>>so would be interested to hear from others.
> >>>
> >>>D
> >>>
> >>>On Feb 24, 2006, at 3:02 PM, Andrew Cruse wrote: 
> >>>
> >>>
> >From the FAQ:
> http://www.nagios

RE: [Nagios-users] Internal Server Error on Nagios 2.0

2006-02-21 Thread jeff vier

always cc the list so others may learn by your experiences.

On Tue, 2006-02-21 at 15:15 -0500, Pete Shelfo wrote:
> Can you point me in a direction, give me ideas or possibly recommend a
> web resource?

what happens when you run the status.cgi from the command line as the
apache user?

is this error happening with *all* cgis, or just this one?

'Premature end of script headers' *almost always* means the cgi is
throwing an error (before completing headers the browser can
understand).

The best place to start is pasting in the error, in quotes, into google:
http://www.google.com/search?q=%22Premature+end+of+script+headers%22

> -Original Message-
> From: jeff vier [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, February 21, 2006 11:18 AM
> To: Pete Shelfo
> Cc: nagios-users@lists.sourceforge.net
> Subject: Re: [Nagios-users] Internal Server Error on Nagios 2.0
> 
> On Tue, 2006-02-21 at 11:10 -0500, Pete Shelfo wrote:
> > I recently tried to fire up a new Nagios server running on RedHat 4
> > Enterprise (fully patched).  Everything works fine, pre-flight passed,
> > http is correct, web page displays; however, whenever I access a CGI
> > link on the left hand page I get the following error:
> 
> I think if you made the font bigger we could help more.
> 
> It's a common problem, but it has many (simple) solutions.  This is an
> apache-related problem, not Nagios, though.  You'll find it.


signature.asc
Description: This is a digitally signed message part


Re: [Nagios-users] Internal Server Error on Nagios 2.0

2006-02-21 Thread jeff vier
On Tue, 2006-02-21 at 11:10 -0500, Pete Shelfo wrote:
> I recently tried to fire up a new Nagios server running on RedHat 4
> Enterprise (fully patched).  Everything works fine, pre-flight passed,
> http is correct, web page displays; however, whenever I access a CGI
> link on the left hand page I get the following error:

I think if you made the font bigger we could help more.

It's a common problem, but it has many (simple) solutions.  This is an
apache-related problem, not Nagios, though.  You'll find it.


signature.asc
Description: This is a digitally signed message part


Re: [Nagios-users] Återkalla meddelande: number of notifications?

2006-02-15 Thread jeff vier
On Wed, 2006-02-15 at 09:46 +0100, [EMAIL PROTECTED] wrote:
> Kvam Lennart skulle vilja återkalla meddelandet, number of
> notifications?.

Dies ist eine englische Mailingliste. Und wir moechten, dass es so
bleibt.
Vielen Dank fuer Ihr Verstaendnis.

C'est une liste anglaise d'expédition.  Et nous la préférons pour rester de 
cette façon.
Merci de la compréhension.

Ciò è una lista inglese spedire.  E la preferiamo per rimanere quel senso.
Grazie per capire.

Esta é uma lista cujo o idioma inglês é obrigatório, e preferimos manter desta 
maneira.
Grato pela vossa compreensão. 

Esto es una lista inglesa el enviar.  Y la preferimos para permanecer esa 
manera.
Gracias por entender.

これは英国の郵送のリストである。そしてそういう風に とどまるために私達はそれを好む。
理解のためにあなたに感謝し なさい。

이것은 영국 우송 명부 이다.  그리고 저 방법을 체재 하기 위하여 우리는 그것을 좋아한다.
이해를 위해 너를 감사 하십시요.

这是一张英国邮寄名单。并且我们更喜欢它留下那样。
谢 谢了解。

This is an English mailing list.  And we prefer it to stay that way.
Thank you for understanding.


signature.asc
Description: This is a digitally signed message part


Re: [Nagios-users] Major notification problem

2006-02-08 Thread jeff vier
On Wed, 2006-02-08 at 00:57 +0100, [EMAIL PROTECTED] wrote:
> When i try in commandline with:  /bin/mail -s TEST
> [EMAIL PROTECTED] Its working like charm! but i need to press "ctrl"+
> d to send it!

what about:
  echo "test message" | /bin/mail -s TEST [EMAIL PROTECTED]
?

You need to study up on pipes, stdin, stdout, etc.  Standard Unix
concepts.



signature.asc
Description: This is a digitally signed message part


Re: [Nagios-users] host info web page

2006-02-02 Thread jeff vier
On Thu, 2006-02-02 at 13:50 +0100, Toto Capuccino wrote:
> Hi,
> 
> Is there's a way to get ride of the text "There are additional notes
> for this host" that is displayed  on the host information ?

The fastest way would be to remove your serviceextinfo definition.

;)

Just hack the line in the source of the cgi that's displaying it and
recompile.


signature.asc
Description: This is a digitally signed message part


Re: [Nagios-users] Wildcard Host Negation

2006-01-19 Thread jeff vier

Please always CC the nagios-users list.

On Thu, 2006-01-19 at 11:30 -0500, Patrick Rutkowski wrote:
> I just tried this
> 
> define service{
> use generic-ping
> host_name   *,!checkpoint2,!google
> }
> 
> and I got an error:
> 
> Reading configuration data...
> 
> Error: Could not find host '*'
> 
> Error: Could not expand hostgroups and/or hosts specified in service (config 
> fi\
> le '/etc/nagios/services.cfg', line 176)
> 
> Do you have any advice?

Do you have use_regexp_matching turned on?
Do you have use_true_regexp_matching turned off?

(if not, make those adjustments and try it again)

Are you using Nagios v2.x?


signature.asc
Description: This is a digitally signed message part


Re: [Nagios-users] Wildcard Host Negation

2006-01-12 Thread jeff vier
On Thu, 2006-01-12 at 15:50 -0500, Patrick Rutkowski wrote:
> I have a service in services.cfg to ping all hosts:
> 
> define service {
> use  generic-ping
> host_name   *
> }
> 
> This makes life a lot easer when I add new hosts, which is often.
> However, some hosts do not respond to pings, and this is expected. Is
> there a way that I can tell nagios to "ping all hosts, but not hosts
> x, y, and z"

host_name   *,!server-x,!server-y,!server-z

This works in 2.x only, I believe.


signature.asc
Description: This is a digitally signed message part


Re: [Nagios-users] Plugin for CVS service

2006-01-12 Thread jeff vier
On Thu, 2006-01-12 at 19:32 +0530, Yogesh Hasabnis wrote:
> Hi All,
> 
> Is there any plugin available to check the CVS service running on some
> host on the network ? Or has anybody used any other way to monitor the
> status of the cvs service using nagios ?

check_tcp


signature.asc
Description: This is a digitally signed message part


RE: [Nagios-users] 2.0 upgrade, passive checks problem

2006-01-04 Thread jeff vier
On Wed, 2006-01-04 at 09:00 -0500, Andrew Laden wrote:
> check_period = none
> active_check_enabled = 1
>  
> used to work, now you have to use
>  
> check_period = 24x7
> active_checks_enabled = 0

Huh.
I never thought to set mine up the "old way", I've always done it as you
described as the "new way".

By what you're describing, though, I wish it worked the "old
way"...sounds a lot cleaner (I do hate the passive icons for
actively-checked-elsewhere services).



signature.asc
Description: This is a digitally signed message part