Re: [Nagios-users] removing and installing nagios

2010-01-22 Thread liyas m
got it from here
http://nagios.org/

On Sat, Jan 23, 2010 at 4:52 AM, Robert Wolfe  wrote:

>  Did you install the Nagios software from source or from packages?
>
>
>
> *From:* liyas m [mailto:liyasmac...@gmail.com]
> *Sent:* Friday, January 22, 2010 3:40 PM
> *To:* nagios-users@lists.sourceforge.net
> *Subject:* Re: [Nagios-users] removing and installing nagios
>
>
>
> i use apt-get remove nagios-text and apt-get remove --purge nagios-text
> but still does not work
> the old version 1.3 is still there.
>
>  On Thu, Jan 21, 2010 at 6:17 PM, Assaf Flatto  wrote:
>
> liyas m wrote:
> > DEar all,
> >
> >  I have installed nagios 3.2 on my server for student project and
> >  everything worked fine until i run apt-get nagios-text. After that the
> > version appeared on the server is Nagios 1.3 not 3.2 which is very
> >  strange. I tried to reinstalled but still the old version appear
> >  although the engine shown by nagios -c is 3.2
> >
> >  Nagios Core 3.2.0
> >  Copyright (c) 2009 Nagios Core Development Team and Community
> > Contributors
> >  Copyright (c) 1999-2009 Ethan Galstad
> >  Last Modified: 08-12-2009
> >  License: GPL
> >
> >  How do I remove the old version ? Thank you for your help.
> >
> >  Regards,
> > Liyas
>
> if you installed with apt - you can try apt-get purge nagios-text .
> that will remove the package installed .
> As for returning to  the source installed software - you might have to
> rerun the configure / make process to make sure the newer files are
> installed and used .
>
> or you can use the blunt force method and rm every file related to
> nagios - but i wouldn't recommend it  , only as a last resort .
>
>
> Assaf
>
>
> --
> Throughout its 18-year history, RSA Conference consistently attracts the
> world's best and brightest in the field, creating opportunities for
> Conference
> attendees to learn about information security's most important issues
> through
> interactions with peers, luminaries and emerging and established companies.
> http://p.sf.net/sfu/rsaconf-dev2dev
> ___
> 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
>
>
>
--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev___
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] removing and installing nagios

2010-01-22 Thread liyas m
On Sat, Jan 23, 2010 at 5:48 AM, Terry L. Inzauro  wrote:

> On 01/22/2010 02:39 PM, liyas m wrote:
> > i use apt-get remove nagios-text and apt-get remove --purge nagios-text
> > but still does not work
> > the old version 1.3 is still there.
> >
> >
> > On Thu, Jan 21, 2010 at 6:17 PM, Assaf Flatto  > > wrote:
> >
> > liyas m wrote:
> > > DEar all,
> > >
> > >  I have installed nagios 3.2 on my server for student project and
> > >  everything worked fine until i run apt-get nagios-text. After
> > that the
> > > version appeared on the server is Nagios 1.3 not 3.2 which is very
> > >  strange. I tried to reinstalled but still the old version appear
> > >  although the engine shown by nagios -c is 3.2
> > >
> > >  Nagios Core 3.2.0
> > >  Copyright (c) 2009 Nagios Core Development Team and Community
> > > Contributors
> > >  Copyright (c) 1999-2009 Ethan Galstad
> > >  Last Modified: 08-12-2009
> > >  License: GPL
> > >
> > >  How do I remove the old version ? Thank you for your help.
> > >
> > >  Regards,
> > > Liyas
> > if you installed with apt - you can try apt-get purge nagios-text .
> > that will remove the package installed .
> > As for returning to  the source installed software - you might have
> to
> > rerun the configure / make process to make sure the newer files are
> > installed and used .
> >
> > or you can use the blunt force method and rm every file related to
> > nagios - but i wouldn't recommend it  , only as a last resort .
> >
> > Assaf
> >
>
> If, by helping you, are we enabling you to cheat? If the answer is yes, you
> had better stop reading this and figure out your
> issue on your own (by reading the apt docs...hint...hint)
>
>
> What OS/version is this?
>
> -
> If the OS is Debian Lenny (This may/may not work in Ubuntu):
> -
>
> Fist find which nagios packages are installed. Install apt-show-versions.
>  I recommend using aptitude has it has greater
> package dependency handling abilities and saftey guards.
>
>
> [15:27:28 r...@jenna:~]# aptitude install apt-show-versions
>
>
>


> Second, invoke apt-show-versions and parse the output using grep.
>
> [15:29:28 r...@jenna:~]# apt-show-versions  | grep nagios
> nagios-images/lenny uptodate 0.4
> nagios-nrpe-plugin/lenny uptodate 2.12-1
> nagios-plugins/lenny uptodate 1.4.12-5
> nagios-plugins-basic/lenny uptodate 1.4.12-5
> nagios-plugins-standard/lenny uptodate 1.4.12-5
> nagios3/lenny uptodate 3.0.6-4~lenny2
> nagios3-common/lenny uptodate 3.0.6-4~lenny2
> nagios3-doc/lenny uptodate 3.0.6-4~lenny2
> [15:29:33 r...@jenna:~]#
>
> r...@ubuntu:~# apt-show-versions  | grep nagios
nagios-plugins-standard/dapper uptodate 1.4.2-5ubuntu3.1
nagios-plugins-basic/dapper uptodate 1.4.2-5ubuntu3.1
nagios-common/dapper uptodate 2:1.3-cvs.20050402-8ubuntu8
nagios-plugins/dapper uptodate 1.4.2-5ubuntu3.1


>
> The first string is the package name to use as an argument to `aptitude
> remove --purge`.  I recommend you start from scratch
> and remove ALL nagios packages to help quell confusion.
>
> If I wanted to only remove the nagios core package(s) (and purge
> configuration files) I would invoke aptitude like this:
>
> [15:29:33 r...@jenna:~]# aptitude remove --purge nagios3 nagios3-common
>

Couldn't find any package whose name or description matched "nagios3"
Couldn't find any package whose name or description matched "nagios3-common"
.
.
0 packages upgraded, 0 newly installed, 0 to remove and 324 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.


>
> If I wanted to save the configuration files, I would omit the --purge
> switch.
>
> If, you are like me and are short tempered, you can invoke aptitude with
> more than one task. Such as the following.
>
> [15:29:33 r...@jenna:~]# aptitude remove --purge nagios3 nagios3-common
> nagios2+
>
> This command will remove (and purge) nagios3 and nagios3-common. Then it
> will install nagios2 thuns accomplishing a
> downgrade.  Obviously, this command isn't what you want, but I decided to
> show it for informational purposes.
>
>
>
> hope this helps.
>
>
> Terry
> http://ha-solutions.net
>
>
>
>
>
>
>
>
>
>
--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev___
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 

Re: [Nagios-users] n00b trying to set up on freebsd

2010-01-22 Thread Scott Lambert
On Fri, Jan 22, 2010 at 04:19:58PM -0800, Kurt Buff wrote:
> Forgot to mention: When I get the directory listing, there is no auth
> taking place - I don't get asked for a username or password.

You don't get asked for a password due to the Allow of your IP address.

What does the directory list?  Is there an index.something file?

If so, you probably don't have the index.something listed in your
DirectoryIndexes statement.  You may need to install PHP and configure
Apache to use it.
 
-- 
Scott LambertKC5MLE   Unix SysAdmin
lamb...@lambertfam.org


--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
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] n00b trying to set up on freebsd

2010-01-22 Thread Kurt Buff
On Fri, Jan 22, 2010 at 16:17, Kurt Buff  wrote:
> On Fri, Jan 22, 2010 at 14:13, Scott Lambert  wrote:
>> On Fri, Jan 22, 2010 at 11:03:49AM -0800, Kurt Buff wrote:
>>> I'm trying to install nagios on freebsd, and can't get to the point of
>>> getting lynx on the host to talk to http://192.168.8.20/nagios - I get
>>> a 403 "You don't have permission to access /nagios/ on this server."
>>>
>>> I'm beating my brains out on this one, and don't know what I'm doing
>>> wrong. I'm sure it's something really simple I'm overlooking, because
>>> just browsing http://192.168.8.20 gets a response. Unfortunately there
>>> isn't a quick install guide for freebsd, so I'm having to do some
>>> translation of the docs.
>>>
>>> Any help much appreciated.
>>
>> Rather than guessing, you might want to take a look at what Apache
>> thinks is wrong:
>>
>> Access the page and then:
>>
>> sudo tail /var/log/httpd-error.log
>>
>> It should pretty much tell you what is wrong.
>>
>> Is lynx asking you for a username and password?
>>
>> Is there some reason you didn't follow exactly the instructions
>> suggested by the pkg-message for the nagios port with regard to the
>> Apache configuration?  I don't see anything particularly wrong with your
>> config, but it may be needlessly over complex.
>>
>> I believe in getting things working according how the port maintainer
>> suggests. The port maintainers tend to do a good job of handing you a
>> good basic configuration which works.
>>
>> Once that works, I make the changes needed for my site one step at a
>> time, testing each change individually.
>>
>> --
>> Scott Lambert                    KC5MLE                       Unix SysAdmin
>> lamb...@lambertfam.org
>
> So, after doing a little RTFM, I found that adding
>
>     Allow from 192.168.8.0/24
>     Allow from 192.168.24.0/24
>
> to the Directory stanza gets me the directory listing when browsing
> http://loki.example.com - but not the web interface I expect. So, I've
> made progress, but I'm not there yet.
>
> Obviously, I've got to learn the barest fundamentals of apache.
>
> Help still appreciated.
>
> Kurt

Apologies for replying to myself...


Forgot to mention: When I get the directory listing, there is no auth
taking place - I don't get asked for a username or password.

Kurt

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
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] n00b trying to set up on freebsd

2010-01-22 Thread Kurt Buff
On Fri, Jan 22, 2010 at 14:13, Scott Lambert  wrote:
> On Fri, Jan 22, 2010 at 11:03:49AM -0800, Kurt Buff wrote:
>> I'm trying to install nagios on freebsd, and can't get to the point of
>> getting lynx on the host to talk to http://192.168.8.20/nagios - I get
>> a 403 "You don't have permission to access /nagios/ on this server."
>>
>> I'm beating my brains out on this one, and don't know what I'm doing
>> wrong. I'm sure it's something really simple I'm overlooking, because
>> just browsing http://192.168.8.20 gets a response. Unfortunately there
>> isn't a quick install guide for freebsd, so I'm having to do some
>> translation of the docs.
>>
>> Any help much appreciated.
>
> Rather than guessing, you might want to take a look at what Apache
> thinks is wrong:
>
> Access the page and then:
>
> sudo tail /var/log/httpd-error.log
>
> It should pretty much tell you what is wrong.
>
> Is lynx asking you for a username and password?
>
> Is there some reason you didn't follow exactly the instructions
> suggested by the pkg-message for the nagios port with regard to the
> Apache configuration?  I don't see anything particularly wrong with your
> config, but it may be needlessly over complex.
>
> I believe in getting things working according how the port maintainer
> suggests. The port maintainers tend to do a good job of handing you a
> good basic configuration which works.
>
> Once that works, I make the changes needed for my site one step at a
> time, testing each change individually.
>
> --
> Scott Lambert                    KC5MLE                       Unix SysAdmin
> lamb...@lambertfam.org

So, after doing a little RTFM, I found that adding

 Allow from 192.168.8.0/24
 Allow from 192.168.24.0/24

to the Directory stanza gets me the directory listing when browsing
http://loki.example.com - but not the web interface I expect. So, I've
made progress, but I'm not there yet.

Obviously, I've got to learn the barest fundamentals of apache.

Help still appreciated.

Kurt

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
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] n00b trying to set up on freebsd

2010-01-22 Thread Kurt Buff
On Fri, Jan 22, 2010 at 14:13, Scott Lambert  wrote:
> On Fri, Jan 22, 2010 at 11:03:49AM -0800, Kurt Buff wrote:
>> I'm trying to install nagios on freebsd, and can't get to the point of
>> getting lynx on the host to talk to http://192.168.8.20/nagios - I get
>> a 403 "You don't have permission to access /nagios/ on this server."
>>
>> I'm beating my brains out on this one, and don't know what I'm doing
>> wrong. I'm sure it's something really simple I'm overlooking, because
>> just browsing http://192.168.8.20 gets a response. Unfortunately there
>> isn't a quick install guide for freebsd, so I'm having to do some
>> translation of the docs.
>>
>> Any help much appreciated.
>
> Rather than guessing, you might want to take a look at what Apache
> thinks is wrong:
>
> Access the page and then:
>
> sudo tail /var/log/httpd-error.log
>
> It should pretty much tell you what is wrong.
>
> Is lynx asking you for a username and password?
>
> Is there some reason you didn't follow exactly the instructions
> suggested by the pkg-message for the nagios port with regard to the
> Apache configuration?  I don't see anything particularly wrong with your
> config, but it may be needlessly over complex.
>
> I believe in getting things working according how the port maintainer
> suggests. The port maintainers tend to do a good job of handing you a
> good basic configuration which works.
>
> Once that works, I make the changes needed for my site one step at a
> time, testing each change individually.
>
> --
> Scott Lambert                    KC5MLE                       Unix SysAdmin
> lamb...@lambertfam.org

Just so you know, the only things I modifed in the default httpd.conf
were the following  parameters:

 Listen is now 'Listen 192.168.8.20:80'
 ServerAdmin is now 'ServerAdmin ift...@example.com
 ServerName is now 'ServerName loki.example.com:80'

The page does indeed ask for auth when configured with the stanzas I listed.

I've been examining /var/log/httpd-error.log, and found the following,
with the configuration I first listed:

 [client 192.168.8.20] Directory index forbidden by Options
directive: /usr/local/www/nagios/

Following your suggestion, I have removed those stanzas, and replaced
them with the ones I found in
/usr/ports/net-mgmt/nagios/work/pkg-message, and the results are
slightly different. Namely, I get a 404 message saying

 The requested URL /nagios was not found on this server.

and /var/log/httpd-error.log says

 [error] [client 192.168.8.20] File does not exist:
/usr/local/www/apache22/data/nagios

If I then add

 Alias /nagios /usr/local/www/nagios/

to the end of httpd.conf, I again get an auth prompt in lynx, and
again I get the error in httpd-error.log:

 [client 192.168.8.20] Directory index forbidden by Options
directive: /usr/local/www/nagios/


So, I'm led to believe that I'm making a bonehead error in httpd.conf,
but I can't figure it out.

Kurt

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
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] Overloaded master

2010-01-22 Thread Mike Lindsey
What kind of options does one have, if your master nagios server is 
getting overloaded?

I have half a dozen slaves doing polling, submitting passive check 
results back via send_nsca.  The master does no active polling, just 
event processing, notifications, and web ui.

Under normal circumstances, it works alright.  But after a restart it 
can take up to half an hour before the master catches up; and if there 
are a lot of events, the act of sending out notifications can cause it 
to fall behind.

I'm pre-caching my object file, I'm skipping circular dependency checks, 
and I've gotten a notification cycle down to 9 seconds.  I tried 
modifying nagios to fork before notifications, but that failed pretty 
spectacularly; so that 9 seconds is a time where 900 or so passive check 
submissions block until the notifications are done.

Are there any options for running a dual-master setup, or other ways to 
spread the load across multiple machines?

Has anyone patched nsca to submit check results into the checkresults 
directory, instead of via the nagios.cmd pipe?  What kind of improvement 
can one expect from that?

Any other advice?

-- 
Mike Lindsey

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
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] AUTO: Eliot Picken is out of the office (returning 01/02/2010)

2010-01-22 Thread Eliot . Picken

I am out of the office until 01/02/2010.

I am currently out of the office on annual leave.  Your email has not been
forwarded

For urgent issues, please contact Alex Lawrie on +44 (0) 1224 894 000

Best regards

Eliot





Note: This is an automated response to your message  "Re: [Nagios-users]
n00b trying to set up on freebsd" sent on 1/22/2010 10:13:19 PM.

This is the only notification you will receive while this person is away.


--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
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] n00b trying to set up on freebsd

2010-01-22 Thread Scott Lambert
On Fri, Jan 22, 2010 at 11:03:49AM -0800, Kurt Buff wrote:
> I'm trying to install nagios on freebsd, and can't get to the point of
> getting lynx on the host to talk to http://192.168.8.20/nagios - I get
> a 403 "You don't have permission to access /nagios/ on this server."
> 
> I'm beating my brains out on this one, and don't know what I'm doing
> wrong. I'm sure it's something really simple I'm overlooking, because
> just browsing http://192.168.8.20 gets a response. Unfortunately there
> isn't a quick install guide for freebsd, so I'm having to do some
> translation of the docs.
> 
> Any help much appreciated.

Rather than guessing, you might want to take a look at what Apache
thinks is wrong:

Access the page and then:

sudo tail /var/log/httpd-error.log

It should pretty much tell you what is wrong.

Is lynx asking you for a username and password?

Is there some reason you didn't follow exactly the instructions
suggested by the pkg-message for the nagios port with regard to the
Apache configuration?  I don't see anything particularly wrong with your
config, but it may be needlessly over complex.  

I believe in getting things working according how the port maintainer
suggests. The port maintainers tend to do a good job of handing you a
good basic configuration which works.

Once that works, I make the changes needed for my site one step at a
time, testing each change individually.

-- 
Scott LambertKC5MLE   Unix SysAdmin
lamb...@lambertfam.org


--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
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] removing and installing nagios

2010-01-22 Thread Terry L. Inzauro
On 01/22/2010 02:39 PM, liyas m wrote:
> i use apt-get remove nagios-text and apt-get remove --purge nagios-text
> but still does not work
> the old version 1.3 is still there.
> 
> 
> On Thu, Jan 21, 2010 at 6:17 PM, Assaf Flatto  > wrote:
> 
> liyas m wrote:
> > DEar all,
> >
> >  I have installed nagios 3.2 on my server for student project and
> >  everything worked fine until i run apt-get nagios-text. After
> that the
> > version appeared on the server is Nagios 1.3 not 3.2 which is very
> >  strange. I tried to reinstalled but still the old version appear
> >  although the engine shown by nagios -c is 3.2
> >
> >  Nagios Core 3.2.0
> >  Copyright (c) 2009 Nagios Core Development Team and Community
> > Contributors
> >  Copyright (c) 1999-2009 Ethan Galstad
> >  Last Modified: 08-12-2009
> >  License: GPL
> >
> >  How do I remove the old version ? Thank you for your help.
> >
> >  Regards,
> > Liyas
> if you installed with apt - you can try apt-get purge nagios-text .
> that will remove the package installed .
> As for returning to  the source installed software - you might have to
> rerun the configure / make process to make sure the newer files are
> installed and used .
> 
> or you can use the blunt force method and rm every file related to
> nagios - but i wouldn't recommend it  , only as a last resort .
> 
> Assaf
> 


If, by helping you, are we enabling you to cheat? If the answer is yes, you had 
better stop reading this and figure out your
issue on your own (by reading the apt docs...hint...hint)


What OS/version is this?

-
If the OS is Debian Lenny (This may/may not work in Ubuntu):
-

Fist find which nagios packages are installed. Install apt-show-versions.  I 
recommend using aptitude has it has greater
package dependency handling abilities and saftey guards.


[15:27:28 r...@jenna:~]# aptitude install apt-show-versions


Second, invoke apt-show-versions and parse the output using grep.

[15:29:28 r...@jenna:~]# apt-show-versions  | grep nagios
nagios-images/lenny uptodate 0.4
nagios-nrpe-plugin/lenny uptodate 2.12-1
nagios-plugins/lenny uptodate 1.4.12-5
nagios-plugins-basic/lenny uptodate 1.4.12-5
nagios-plugins-standard/lenny uptodate 1.4.12-5
nagios3/lenny uptodate 3.0.6-4~lenny2
nagios3-common/lenny uptodate 3.0.6-4~lenny2
nagios3-doc/lenny uptodate 3.0.6-4~lenny2
[15:29:33 r...@jenna:~]#


The first string is the package name to use as an argument to `aptitude remove 
--purge`.  I recommend you start from scratch
and remove ALL nagios packages to help quell confusion.

If I wanted to only remove the nagios core package(s) (and purge configuration 
files) I would invoke aptitude like this:

[15:29:33 r...@jenna:~]# aptitude remove --purge nagios3 nagios3-common

If I wanted to save the configuration files, I would omit the --purge switch.

If, you are like me and are short tempered, you can invoke aptitude with more 
than one task. Such as the following.

[15:29:33 r...@jenna:~]# aptitude remove --purge nagios3 nagios3-common nagios2+

This command will remove (and purge) nagios3 and nagios3-common. Then it will 
install nagios2 thuns accomplishing a
downgrade.  Obviously, this command isn't what you want, but I decided to show 
it for informational purposes.



hope this helps.


Terry
http://ha-solutions.net
-- 
/*
Name:   Terry Inzauro
Locale: Omaha Office
Addr0:  222 South 15th
Addr1:  Suite 3B
Addr2:  Omaha, NE 68102
Office: 402.884.7967x103
Fax:402.884.7970
Mobile: 402.212.1450
Email:  tinza...@ha-solutions.net
Web1:   http://ha-solutions.net
Web2:   http://storsolgroup.com
GNNUPG: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE55FA44C
*/

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
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] removing and installing nagios

2010-01-22 Thread liyas m
i use apt-get remove nagios-text and apt-get remove --purge nagios-text
but still does not work
the old version 1.3 is still there.


On Thu, Jan 21, 2010 at 6:17 PM, Assaf Flatto  wrote:

> liyas m wrote:
> > DEar all,
> >
> >  I have installed nagios 3.2 on my server for student project and
> >  everything worked fine until i run apt-get nagios-text. After that the
> > version appeared on the server is Nagios 1.3 not 3.2 which is very
> >  strange. I tried to reinstalled but still the old version appear
> >  although the engine shown by nagios -c is 3.2
> >
> >  Nagios Core 3.2.0
> >  Copyright (c) 2009 Nagios Core Development Team and Community
> > Contributors
> >  Copyright (c) 1999-2009 Ethan Galstad
> >  Last Modified: 08-12-2009
> >  License: GPL
> >
> >  How do I remove the old version ? Thank you for your help.
> >
> >  Regards,
> > Liyas
> if you installed with apt - you can try apt-get purge nagios-text .
> that will remove the package installed .
> As for returning to  the source installed software - you might have to
> rerun the configure / make process to make sure the newer files are
> installed and used .
>
> or you can use the blunt force method and rm every file related to
> nagios - but i wouldn't recommend it  , only as a last resort .
>
> Assaf
>
>
> --
> Throughout its 18-year history, RSA Conference consistently attracts the
> world's best and brightest in the field, creating opportunities for
> Conference
> attendees to learn about information security's most important issues
> through
> interactions with peers, luminaries and emerging and established companies.
> http://p.sf.net/sfu/rsaconf-dev2dev
> ___
> 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
>
--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev___
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] n00b trying to set up on freebsd

2010-01-22 Thread Kurt Buff
I'm trying to install nagios on freebsd, and can't get to the point of
getting lynx on the host to talk to http://192.168.8.20/nagios - I get
a 403 "You don't have permission to access /nagios/ on this server."

I'm beating my brains out on this one, and don't know what I'm doing
wrong. I'm sure it's something really simple I'm overlooking, because
just browsing http://192.168.8.20 gets a response. Unfortunately there
isn't a quick install guide for freebsd, so I'm having to do some
translation of the docs.

Any help much appreciated.

More info:

I've created /usr/local/etc/nagios/htpasswd.users, as noted in the
stanzas below.

I've tried www:www and root:wheel and www:nagios as permissions on
/usr/local/www/nagios, with the same result.

I've added the following stanzas to the end of httpd.conf:

--begin httpd.conf snippet--
Include etc/apache22/Includes/*.conf

ScriptAlias /nagios/cgi-bin "/usr/local/www/nagios/cgi-bin"


   Options ExecCGI
   AllowOverride None
   Order allow,deny
   Allow from all
   AuthName "Nagios Access"
   AuthType Basic
   AuthUserFile /usr/local/etc/nagios/htpasswd.users
   Require valid-user


Alias /nagios "/usr/local/www/nagios"


   Options None
   AllowOverride None
   Order allow,deny
   Allow from all
   AuthName "Nagios Access"
   AuthType Basic
   AuthUserFile /usr/local/etc/nagios/htpasswd.users
   Require valid-user

--end httpd.conf snippet--

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
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] Plugins for jvm memory

2010-01-22 Thread Terry L. Inzauro
On 01/22/2010 06:38 AM, Wolfe, Robert wrote:
> Renaud, have you tried giving Nagios Exchange a search for this?
>  
> 
> *From:* Renaud Vanderhagen [skym...@hotmail.com]
> *Sent:* Friday, January 22, 2010 2:48 AM
> *To:* nagios-users@lists.sourceforge.net
> *Subject:* [Nagios-users] Plugins for jvm memory
> 
> 
> Hello all !
> 
> I'm new in Nagios world and I want to monitor the jvm memory of tomcat
> with NRPE...
> I want nagios warn me if the memory used is over 80% or 90%.
> Do you know a plugins for that ?
> 
> Thank you a lot !
> 


check_procs will accomplish what you desire:

http://nagiosplugins.org/man/check_procs


kind regards,


Terry Inzauro
http://ha-solutions.net



--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
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] Plugins for jvm memory

2010-01-22 Thread Wolfe, Robert
Renaud, have you tried giving Nagios Exchange a search for this?


From: Renaud Vanderhagen [skym...@hotmail.com]
Sent: Friday, January 22, 2010 2:48 AM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Plugins for jvm memory


Hello all !

I'm new in Nagios world and I want to monitor the jvm memory of tomcat with 
NRPE...
I want nagios warn me if the memory used is over 80% or 90%.
Do you know a plugins for that ?

Thank you a lot !


Windows 7 : Simplifiez votre quotidien. Trouvez le PC qui vous 
convient.
--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev___
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_http and xml

2010-01-22 Thread Assaf Flatto
Marc Powell wrote:
> On Jan 22, 2010, at 5:47 AM, Assaf Flatto wrote:
>
>   
>> Hello
>>
>> I am trying to verify the working of a web service which output is a xml 
>> content .
>>
>> I thought that using the check_http -s or -e will help me do the 
>> verifications by searching for a string in the xml however when trying 
>> the test , the result comes back as a 404 ( classified info changed to 
>> XXX ).
>> 
>
> If you add a '-v' flag to your check_http test below,or check your server 
> logs, you'll see why you're getting the 400 back.
>
>   
>> ./check_http -H some.service.con -s "xml" -u 
>> "xml.aspx?account_code=XXX&license_code=XXX&action=lookup&postcode=XX"
>> 
>
> I'm quite sure this should be "/xml.aspx?account_code..."
>
> --
> Marc
>   
Yes , you are write Marc  , that did sort out my issue.

Thanks

Assaf


--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
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_http and xml

2010-01-22 Thread gmartin
If you look at the content of the returned data it appears your call is
failing for a bad license key.  Is that what you are tresting for?

\\Greg



On Fri, Jan 22, 2010 at 6:47 AM, Assaf Flatto  wrote:

> Hello
>
> I am trying to verify the working of a web service which output is a xml
> content .
>
> I thought that using the check_http -s or -e will help me do the
> verifications by searching for a string in the xml however when trying
> the test , the result comes back as a 404 ( classified info changed to
> XXX ).
>
>  ./check_http -H some.service.con -s "xml" -u
>
> "xml.aspx?account_code=XXX&license_code=XXX&action=lookup&postcode=XX"
>
> HTTP CRITICAL: HTTP/1.1 400 Bad Request - string not found - 163 bytes
> in 0.013 second response time |time=0.013409s;;;0.00 size=163B;;;0
>
> the output of curling (curl -D - $URL ) the page gives this :
>
> Date: Fri, 22 Jan 2010 11:35:24 GMT
> Server: Microsoft-IIS/6.0
> X-Powered-By: ASP.NET 
> X-AspNet-Version: 2.0.50727
> NextAction:
> NextType:
> Prompt:
> ResultType:
> Cache-Control: private
> Content-Type: text/xml
> Content-Length: 356
>
> 
>  Duration="0.000s">
>  
>
>
>  
>  
>
>  
>
>
> Does anyone have ideas on how to get xml content check ?
> I looked at the nagiosexchange but did not find anything ( could be i
> was looking in the wrong place/context) .
>
> Thanks
>
> Assaf
>
>
> --
> Throughout its 18-year history, RSA Conference consistently attracts the
> world's best and brightest in the field, creating opportunities for
> Conference
> attendees to learn about information security's most important issues
> through
> interactions with peers, luminaries and emerging and established companies.
> http://p.sf.net/sfu/rsaconf-dev2dev
> ___
> 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
>
--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev___
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] Problem with check_by_ssh

2010-01-22 Thread Matt Simmons
Are you able to ssh to the remote machine as the remote user? I've
been bitten by not having the remote host in my nagios user's
known_hosts file, and my scripts get prompted, and for some reason
that stops me from obtaining statistics ;-)

--Matt


On Fri, Jan 22, 2010 at 7:35 AM, Mario Rimann  wrote:
>
> Hi there
>
> We're experiencing an issue on a new setup where check_by_ssh should run a
> script on a foreign host with two parameters and handle the response.
> Executing the script on the remote server works - but the parameters don't
> get transmitted to the remote server. Afther fiddling around with the
> service and the command definition, I started to run the command on the
> shell to see what happens:
>
> If I run it locally as root, all works out:
> [r...@monitoring ~]# /path/to/libexec/check_by_ssh -l root -H
> xxx.xxx.xxx.xxx -v -C "/root/bin/checkSomeThing.sh 300 500"
>
> Running the same stuff as the nagios user fails (script get's called, but
> doesn't get the parameters)
> [nag...@monitoring ~]$  /path/to/libexec/check_by_ssh -l root -H
> xxx.xxx.xxx.xxx -v -C "/root/bin/checkSomeThing.sh 300 500"
>
> I already checked /etc/passwd - but besides the user's names, user-id,
> group-id and the home directory path all looks the same - both have
> /bin/bash as their logon shell.
>
> Any hint?
>
> Cheers,
> Mario
>
> --
> Throughout its 18-year history, RSA Conference consistently attracts the
> world's best and brightest in the field, creating opportunities for Conference
> attendees to learn about information security's most important issues through
> interactions with peers, luminaries and emerging and established companies.
> http://p.sf.net/sfu/rsaconf-dev2dev
> ___
> 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
>



-- 

LITTLE GIRL: But which cookie will you eat FIRST?
COOKIE MONSTER: Me think you have misconception of cookie-eating process.

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
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] Problem with check_by_ssh SOLVED

2010-01-22 Thread Mario Rimann

On Fri, 22 Jan 2010 13:35:48 +0100, Mario Rimann  wrote:
> Running the same stuff as the nagios user fails (script get's called,
but
> doesn't get the parameters)
> [nag...@monitoring ~]$  /path/to/libexec/check_by_ssh -l root -H
> xxx.xxx.xxx.xxx -v -C "/root/bin/checkSomeThing.sh 300 500"

Problem solved:

The key of the nagios user that was put into the authorized_keys file on
the remote server was restricted to a forced command - which obviously cut
of the parameters. *damned*

Cheers,
Mario

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
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] Problem with check_by_ssh

2010-01-22 Thread Mario Rimann

Hi there

We're experiencing an issue on a new setup where check_by_ssh should run a
script on a foreign host with two parameters and handle the response.
Executing the script on the remote server works - but the parameters don't
get transmitted to the remote server. Afther fiddling around with the
service and the command definition, I started to run the command on the
shell to see what happens:

If I run it locally as root, all works out:
[r...@monitoring ~]# /path/to/libexec/check_by_ssh -l root -H
xxx.xxx.xxx.xxx -v -C "/root/bin/checkSomeThing.sh 300 500"

Running the same stuff as the nagios user fails (script get's called, but
doesn't get the parameters)
[nag...@monitoring ~]$  /path/to/libexec/check_by_ssh -l root -H
xxx.xxx.xxx.xxx -v -C "/root/bin/checkSomeThing.sh 300 500"

I already checked /etc/passwd - but besides the user's names, user-id,
group-id and the home directory path all looks the same - both have
/bin/bash as their logon shell.

Any hint?

Cheers,
Mario

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
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_http and xml

2010-01-22 Thread Marc Powell

On Jan 22, 2010, at 5:47 AM, Assaf Flatto wrote:

> Hello
> 
> I am trying to verify the working of a web service which output is a xml 
> content .
> 
> I thought that using the check_http -s or -e will help me do the 
> verifications by searching for a string in the xml however when trying 
> the test , the result comes back as a 404 ( classified info changed to 
> XXX ).

If you add a '-v' flag to your check_http test below,or check your server logs, 
you'll see why you're getting the 400 back.

> ./check_http -H some.service.con -s "xml" -u 
> "xml.aspx?account_code=XXX&license_code=XXX&action=lookup&postcode=XX"

I'm quite sure this should be "/xml.aspx?account_code..."

--
Marc


--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
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] Checking 64bit host from 32bit server

2010-01-22 Thread Natxo Asenjo
On Thu, Jan 21, 2010 at 3:39 PM, komodo  wrote:
> Do you have same version of nrpe on both sides ?
>
> I had this problem too, and i need to upgrade nrpe on one machine.

I run routinely a somewhat old version of nrpe on debian stable
servers withouth any problem at all either. I use the debian package
on them. The nagios server is always up to date, its plugins also.

The OP should start looking at his/her logs on the nrpe server to see
what is going on.

-- 
natxo

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
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] check_http and xml

2010-01-22 Thread Assaf Flatto
Hello

I am trying to verify the working of a web service which output is a xml 
content .

I thought that using the check_http -s or -e will help me do the 
verifications by searching for a string in the xml however when trying 
the test , the result comes back as a 404 ( classified info changed to 
XXX ).

 ./check_http -H some.service.con -s "xml" -u 
"xml.aspx?account_code=XXX&license_code=XXX&action=lookup&postcode=XX"

HTTP CRITICAL: HTTP/1.1 400 Bad Request - string not found - 163 bytes 
in 0.013 second response time |time=0.013409s;;;0.00 size=163B;;;0

the output of curling (curl -D - $URL ) the page gives this :

Date: Fri, 22 Jan 2010 11:35:24 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
NextAction:
NextType:
Prompt:
ResultType:
Cache-Control: private
Content-Type: text/xml
Content-Length: 356



  


  
  

  


Does anyone have ideas on how to get xml content check ?
I looked at the nagiosexchange but did not find anything ( could be i 
was looking in the wrong place/context) .

Thanks

Assaf

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
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] Plugins for jvm memory

2010-01-22 Thread Assaf Flatto
Renaud Vanderhagen wrote:
>
> Hello all !
>
> I'm new in Nagios world and I want to monitor the jvm memory of tomcat 
> with NRPE...
> I want nagios warn me if the memory used is over 80% or 90%.
> Do you know a plugins for that ?
>
> Thank you a lot !
>
Take a look here , maybe one of those will give you the functionality 
you need.

http://www.monitoringexchange.org/inventory/Check-Plugins/Software/Java

Assaf

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
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