[Nagios-users] Performance problems

2008-06-05 Thread Nicole Hähnel
Hi,

I'm running nagios 3.0.2 on a dell poweredge 2850 server with 2gb ram 
and a xeon 2.80GHz cpu.
Also running on this server, ndo utils 1.47b, pnp, nagvis and 
nagiosla.(os is newest rhel5)
Nagios checks 113 hosts and 660 services, most of them every 3 minutes.
Server load is over 1.3 most of the time due to the mysql database, I think.
Another problem is, I get frequently high ping times in the local 
network the nagios server belongs to.

What servers do you use for this count of checks.
Should I split it into two nagios servers?

It would be nice to get some suggestions.


Thanks!
Nicole

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Antwort: Performance problems

2008-06-05 Thread Sascha . Runschke
[EMAIL PROTECTED] schrieb am 05.06.2008 11:57:32:

> I'm running nagios 3.0.2 on a dell poweredge 2850 server with 2gb ram 
> and a xeon 2.80GHz cpu.
> Also running on this server, ndo utils 1.47b, pnp, nagvis and 
> nagiosla.(os is newest rhel5)
> Nagios checks 113 hosts and 660 services, most of them every 3 minutes.
> Server load is over 1.3 most of the time due to the mysql database, I 
think.
> Another problem is, I get frequently high ping times in the local 
> network the nagios server belongs to.
> 
> What servers do you use for this count of checks.
> Should I split it into two nagios servers?
> 
> It would be nice to get some suggestions.

I'm running nearly the same set, just missing nagiosla, on RHEL5.2.

Machine is a HP DL360 Quad-Core E5405  @ 2.00GHz with 5GB Ram.
Local 10k SAS hdd only, no SAN, local mysql.
400 hosts, 1500 servicechecks.
1400 servicechecks are scheduled every minute, 100 once per day.

I do get roundabout 1100-1200 checks throughput each minute,
averaging 80% of the expected checks each minute with a very
good latency.

Check Execution Time:   0.01 sec10.02 sec   0.417 sec
Check Latency:  0.00 sec7.19 sec1.623 sec 

I've done extensive performance tests and in summary the best
practices to speed up things:

- RAM, RAM, RAM. Both for mysql (see below) and for increased
  filesystem buffers.

- Reserve enough memory for mysql to keep things buffered as
  long as possible:

  I'm currently using these settings:
 
  innodb_buffer_pool_size = 1024M
  innodb_additional_mem_pool_size = 64M
  innodb_log_file_size = 512M
  innodb_log_buffer_size = 64M
  innodb_flush_log_at_trx_commit = 1

  Beware: this will spike up mysql memory usage to nearly 2GB virtual
  and roundabout 1GB of resident memory.

- use npcd for bulk processing performance data for pnp. Direct
  injections for each performance result will stall your checks
  and result in huge check latency

- set "data_processing_options=4061953" in your ndomod.cfg
  By default ndo parses and injects every event from nagios,
  which results in unnecessary mysql queries and bloats the
  database over time - even more slowing down ndo since it
  automatically purges old data. With this option you won't have
  any aging data and the database only holds realtime info
  Attention: This setting is totally perfect with Nagvis, but I have
  no clue if nagiosla needs ndo and what information - so double check
  that.

- I'm using "use_large_installation_tweaks=1" too, but I'm not sure
  if it would have any impact on your scenario.

- I've manually built an SQL index over some tables for ndo, but I
  doubt it would have much impact on your scenario either.

hth

Regards
Sascha

-- 
Sascha Runschke
Netzwerk-  und  Systemmanagement
Telefon : +49 (201) 102-1879 Mobil : +49 (173) 5419665 Fax : +49 (201) 
102-1102105



GFKL Financial Services AG
Vorstand: Dr. Peter Jänsch (Vors.), Jürgen Baltes, Dr. Till Ergenzinger, Dr. 
Tom Haverkamp
Vorsitzender des Aufsichtsrats: Dr. Georg F. Thoma
Sitz: Limbecker Platz 1, 45127 Essen, Amtsgericht Essen, HRB 13522-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

[Nagios-users] Error: Could not read object configuration data!

2008-06-05 Thread Chantal Rosmuller
Hi list,

after upgrading from 1.4 to 2.6 on a debian system the webinterface is not 
working anymore, if I click on a menu link I get:

Error: Could not read object configuration data!

the nagios documentation says:

   1. Verify configuration options using the -v command-line option to check 
for errors.
   2. Check the Nagios log file for messages relating to startup or status 
data errors.
   3. Make sure you've compiled the main program and the CGIs to use the same 
object data storage options (i.e. default text file or template-based file). 

I tried 1 but no errors
same for option 2
3, I didn't compile but I used aptitude, so I guess that cannot be the 
problem?


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Error: Could not read object configuration data!

2008-06-05 Thread Chantal Rosmuller
On Thursday 05 June 2008 13:18:13 Chantal Rosmuller wrote:
> Hi list,
>
> after upgrading from 1.4 to 2.6 on a debian system the webinterface is not
> working anymore, if I click on a menu link I get:
>
> Error: Could not read object configuration data!
>
> the nagios documentation says:
>
>1. Verify configuration options using the -v command-line option to
> check for errors.
>2. Check the Nagios log file for messages relating to startup or status
> data errors.
>3. Make sure you've compiled the main program and the CGIs to use the
> same object data storage options (i.e. default text file or template-based
> file).
>
> I tried 1 but no errors
> same for option 2
> 3, I didn't compile but I used aptitude, so I guess that cannot be the
> problem?
>
>
> -
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
>
> ::: Please include Nagios version, plugin version (-v) and OS when
> ::: reporting any issue. Messages without supporting info will risk being
> ::: sent to /dev/null

The nagios daemon is running by the way.



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Monitor web server run multiple virtual web site

2008-06-05 Thread Victor Lanza
I will look into that.. Thanks!

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marc Powell
Sent: Wednesday, June 04, 2008 3:12 PM
To: nagios Mailinglist
Subject: Re: [Nagios-users] Monitor web server run multiple virtual web site


On Jun 4, 2008, at 1:43 PM, Victor Lanza wrote:

> Yes, but this only works with those sites that use basic  
> authentication..and
> as far as I understand, no one has been able to get the windows
> authentication to work with the check_http plugin..

check_http can only use basic auth. It's my understanding that  
WebInject can use NTLM though... This might be a helpful start --

http://www.webinject.org/plugin.html

Google has more information as well.

--
Marc

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Monitor web server run multiple virtual web site

2008-06-05 Thread Randal, Phil
I've recently done this.

The details are in the Webinject forum here:

http://www.webinject.org/cgi-bin/forums/YaBB.cgi?board=Development;actio
n=display;num=1185818423

It works a treat.

Cheers,

Phil
--
Phil Randal
Networks Engineer
Herefordshire Council
Hereford, UK

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Victor
Lanza
Sent: 05 June 2008 13:07
To: 'Marc Powell'; 'nagios Mailinglist'
Subject: Re: [Nagios-users] Monitor web server run multiple virtual web
site

I will look into that.. Thanks!

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marc
Powell
Sent: Wednesday, June 04, 2008 3:12 PM
To: nagios Mailinglist
Subject: Re: [Nagios-users] Monitor web server run multiple virtual web
site


On Jun 4, 2008, at 1:43 PM, Victor Lanza wrote:

> Yes, but this only works with those sites that use basic 
> authentication..and as far as I understand, no one has been able to 
> get the windows authentication to work with the check_http plugin..

check_http can only use basic auth. It's my understanding that WebInject
can use NTLM though... This might be a helpful start --

http://www.webinject.org/plugin.html

Google has more information as well.

--
Marc


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for just about anything Open
Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for just about anything Open
Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Alerts using IM

2008-06-05 Thread Yogesh Hasabnis
Hi All,

May be this query has already been answered on this list. I need to add a
"service check" in nagios that sends out an IM alert in case of failure and
recovery. I have set up ejabberd as the IM server. Found that imcom is an IM
client that can be used from the command line to send out instant messages.
I am trying to figure out how imcom can be used to write notification
scripts. Anybody aware of how it can be done? Or do I need to use any other
way/method/IM_client?

Would be great if I get any suggestions.

Thanks in advance

Yogesh
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Performance problems

2008-06-05 Thread Marc Powell

On Jun 5, 2008, at 4:57 AM, Nicole Hähnel wrote:

> Hi,
>
> I'm running nagios 3.0.2 on a dell poweredge 2850 server with 2gb ram
> and a xeon 2.80GHz cpu.
> Also running on this server, ndo utils 1.47b, pnp, nagvis and
> nagiosla.(os is newest rhel5)
> Nagios checks 113 hosts and 660 services, most of them every 3  
> minutes.
> Server load is over 1.3 most of the time due to the mysql database,  
> I think.

This sounds about right. 330 checks/240 seconds = 2.75 checks/sec.  
You'll have at least 1 process in the run queue at any given second so  
you have a load average of 1+. Why do you think this is a problem? It  
seems quite normal for any linux box and shouldn't be an issue.

> Another problem is, I get frequently high ping times in the local
> network the nagios server belongs to.

There are many reasons this could be. High utilization of the links on  
the network, high utilization of the routers/switches, speed and  
duplex mismatches, bad cabling causing retransmits, etc...

> What servers do you use for this count of checks.
> Should I split it into two nagios servers?

Until last year I was using Compaq DL360's (dual P3 1.4Ghz, 1G ram) to  
monitor 800+ services at 5 minute intervals + Cricket data collection  
for 10's of thousands of interfaces during that same interval. They  
were performing just fine. I replaced them with modern Sun boxes  
because they were way too old and I was worried about potential  
hardware failures.

--
Marc
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] OT: snmpwalk output format query

2008-06-05 Thread Jay R. Ashworth
On Wed, Jun 04, 2008 at 04:17:32PM -0500, Ford, Andy wrote:
> Here's some real basic Perl to get you started:
> 
> #!/usr/bin/perl
> use warnings;
> use strict;
> 
> my @names = `snmpwalk -v2c -cpublic localhost system`;
> my @numbers = `snmpwalk -On -v2c -cpublic localhost system`;
> 
> foreach my $i (0..$#names) {
>   print "$names[$i] $numbers[$i]\n\n";
> }

See what happens when you're not a perl guy?  Thanks a bunch, Andy.

Cheers,
-- jra
-- 
Jay R. Ashworth   Baylink  [EMAIL PROTECTED]
Designer The Things I Think   RFC 2100
Ashworth & Associates http://baylink.pitas.com '87 e24
St Petersburg FL USA  http://photo.imageinc.us +1 727 647 1274

 Those who cast the vote decide nothing.
 Those who count the vote decide everything.
   -- (Joseph Stalin)

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Error: Could not read object configuration data!

2008-06-05 Thread Frank J. Gómez
Is it possible that the upgrader changed permissions/ownership of some
config file(s) in /etc/nagios/?

On Thu, Jun 5, 2008 at 8:02 AM, Chantal Rosmuller <[EMAIL PROTECTED]>
wrote:

> On Thursday 05 June 2008 13:18:13 Chantal Rosmuller wrote:
> > Hi list,
> >
> > after upgrading from 1.4 to 2.6 on a debian system the webinterface is
> not
> > working anymore, if I click on a menu link I get:
> >
> > Error: Could not read object configuration data!
> >
> > the nagios documentation says:
> >
> >1. Verify configuration options using the -v command-line option to
> > check for errors.
> >2. Check the Nagios log file for messages relating to startup or
> status
> > data errors.
> >3. Make sure you've compiled the main program and the CGIs to use the
> > same object data storage options (i.e. default text file or
> template-based
> > file).
> >
> > I tried 1 but no errors
> > same for option 2
> > 3, I didn't compile but I used aptitude, so I guess that cannot be the
> > problem?
> >
> >
> > -
> > Check out the new SourceForge.net Marketplace.
> > It's the best place to buy or sell services for
> > just about anything Open Source.
> > http://sourceforge.net/services/buy/index.php
> > ___
> > Nagios-users mailing list
> > Nagios-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/nagios-users
> >
> > ::: Please include Nagios version, plugin version (-v) and OS when
> > ::: reporting any issue. Messages without supporting info will risk being
> > ::: sent to /dev/null
>
> The nagios daemon is running by the way.
>
>
>
> -
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Error: Could not read object configuration data!

2008-06-05 Thread Chantal Rosmuller
Yes it is, but I changed the permissions already and they are ok now, at least 
I think they should be okay:


servername:~# ls -la /etc/nagios2
total 192
drwxr-xr-x   4 nagios www-data  4096 2008-06-05 15:00 .
drwxr-xr-x 125 root   root  8192 2008-06-05 11:02 ..
-rw-r--r--   1 nagios www-data  1598 2008-05-13 13:18 apache2.conf
-rw-r--r--   1 nagios root 13261 2008-06-05 14:01 cgi.cfg
-rw-r--r--   1 nagios www-data  1830 2008-06-05 10:46 checkcommands.cfgd
drwxr-xr-x   2 nagios www-data  4096 2008-06-05 11:05 conf.d
-rw-r--r--   1 nagios www-data  1926 2008-06-05 10:46 contactgroups.cfg
-rw-r--r--   1 nagios www-data  3945 2008-06-05 10:46 contacts.cfg
-rw-r--r--   1 nagios www-data  1662 2008-06-05 10:46 dependencies.cfg
-rw-r--r--   1 nagios www-data  2256 2008-06-05 10:46 escalations.cfg
-rw-r--r--   1 nagios www-data  4585 2008-06-05 15:00 hostgroups.cfg
-rw-r--r--   1 nagios www-data 11072 2008-06-05 12:56 hosts.cfg
-rw-r--r--   1 nagios www-data 13544 2008-06-05 10:46 minimal.cfg
-rw-r--r--   1 nagios www-data  6542 2008-06-05 13:06 misccommands.cfg
-rw-r--r--   1 nagios www-data 21702 2008-06-05 12:35 nagios.cfg
-rw-r--r--   1 nagios www-data  4692 2008-06-05 10:46 nrpe.cfg
-rw-r--r--   1 nagios www-data 0 2008-06-05 10:46 nrpe_local.cfg
-rw-r-   1 nagios www-data  3100 2008-06-05 10:46 resource.cfg
-rw-r--r--   1 nagios www-data  6363 2008-06-05 10:46 services.cfg
drwxr-xr-x   2 nagios www-data  4096 2007-03-04 23:56 stylesheets
-rw-r--r--   1 nagios www-data  1863 2008-06-05 10:46 timeperiods.cfg


On Thursday 05 June 2008 16:03:36 Frank J. Gómez wrote:
> Is it possible that the upgrader changed permissions/ownership of some
> config file(s) in /etc/nagios/?
>
> On Thu, Jun 5, 2008 at 8:02 AM, Chantal Rosmuller <[EMAIL PROTECTED]>
>
> wrote:
> > On Thursday 05 June 2008 13:18:13 Chantal Rosmuller wrote:
> > > Hi list,
> > >
> > > after upgrading from 1.4 to 2.6 on a debian system the webinterface is
> >
> > not
> >
> > > working anymore, if I click on a menu link I get:
> > >
> > > Error: Could not read object configuration data!
> > >
> > > the nagios documentation says:
> > >
> > >1. Verify configuration options using the -v command-line option to
> > > check for errors.
> > >2. Check the Nagios log file for messages relating to startup or
> >
> > status
> >
> > > data errors.
> > >3. Make sure you've compiled the main program and the CGIs to use
> > > the same object data storage options (i.e. default text file or
> >
> > template-based
> >
> > > file).
> > >
> > > I tried 1 but no errors
> > > same for option 2
> > > 3, I didn't compile but I used aptitude, so I guess that cannot be the
> > > problem?
> > >
> > >
> > > ---
> > >-- Check out the new SourceForge.net Marketplace.
> > > It's the best place to buy or sell services for
> > > just about anything Open Source.
> > > http://sourceforge.net/services/buy/index.php
> > > ___
> > > Nagios-users mailing list
> > > Nagios-users@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/nagios-users
> > >
> > > ::: Please include Nagios version, plugin version (-v) and OS when
> > > ::: reporting any issue. Messages without supporting info will risk
> > > ::: being sent to /dev/null
> >
> > The nagios daemon is running by the way.
> >
> >
> >
> > -
> > Check out the new SourceForge.net Marketplace.
> > It's the best place to buy or sell services for
> > just about anything Open Source.
> > http://sourceforge.net/services/buy/index.php
> > ___
> > Nagios-users mailing list
> > Nagios-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/nagios-users
> >
> > ::: Please include Nagios version, plugin version (-v) and OS when
> >
> > reporting any issue.
> >
> > ::: Messages without supporting info will risk being sent to /dev/null



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Probelm with NSClient++

2008-06-05 Thread Frost, Mark {PBG}
 




From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Michael
Mukherji
Sent: Thursday, June 05, 2008 2:39 AM
To: Nagios Users Mailinglist
Subject: [Nagios-users] Probelm with NSClient++


Hello List
 
I am using Nagios 3.0 to monitor few of my windows server using
the nsclient++ , I am monitoring services and memory + CPU utilization
with nsclient++, I get a critical alert saying  (Return code of 139 is
out of bounds) for the services and memory utilizations when ever the
service fails , sometimes it even gives false alert as when i login to
server i see that service running.

Can anyone help me on this pls ?

Also i would like to intregate nmap with nagios , to monitor
open ports as well for servers , has anyone any idea about the
feasibility /else is there any plugins available to check this !!

regards

Michael 

Michael,
 
I can't say specifically what your NSclient++ issue is, but I can offer
the following.  I've seen this problem occur when I check something that
doesn't exist.  For example, I've had machines where I've used check_nt
on the server side to check the D: drive on a Windows box, but that D:
does not exist (I did this as part of a hostgroup check and one of those
hosts did not have a D: drive).
 
My best suggestion is to break down the command you're running from the
nagios side (check_nt or preferrably, check_nrpe) to this host and run
it to make sure it returns properly.  I find many of those
Windows-checking commands are complex enough that I can't be sure I have
them right until I've worked them out from the command-line first.
 
 
I don't know about nmap checking, but if you haven't already had a look
at Nagios Exchange (www.nagiosexchange.org).  Also, when I did a Google
search for "nagios nmap plugin" I got several reasonable-looking hits.
 
Mark
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Performance problems

2008-06-05 Thread Jay R. Ashworth
On Thu, Jun 05, 2008 at 08:01:12AM -0500, Marc Powell wrote:
> Until last year I was using Compaq DL360's (dual P3 1.4Ghz, 1G ram) to  
> monitor 800+ services at 5 minute intervals + Cricket data collection  
> for 10's of thousands of interfaces during that same interval.

You're talking, there, about watching throughput on switchports and the
like?  That's my next gig; do you have a good pointer on setting
Cricket up to do that sort of thing?  It'll be my first time behind the
scenes with C; Wikimedia uses it to monitor stuff, but I've only ever
looked at the pretty pictures.

Cheers,
-- jra
-- 
Jay R. Ashworth   Baylink  [EMAIL PROTECTED]
Designer The Things I Think   RFC 2100
Ashworth & Associates http://baylink.pitas.com '87 e24
St Petersburg FL USA  http://photo.imageinc.us +1 727 647 1274

 Those who cast the vote decide nothing.
 Those who count the vote decide everything.
   -- (Joseph Stalin)

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Error: Could not read object configuration data!

2008-06-05 Thread Frank J. Gómez
I'm by no means an expert -- just taking shots in the dark here, but...

Can you run checks from the command line?  If so, it suggests a problem
specific to the CGI.  If not, it would seem the problem is with Nagios per
se.

On Thu, Jun 5, 2008 at 10:09 AM, Chantal Rosmuller <[EMAIL PROTECTED]>
wrote:

> Yes it is, but I changed the permissions already and they are ok now, at
> least
> I think they should be okay:
>
>
> servername:~# ls -la /etc/nagios2
> total 192
> drwxr-xr-x   4 nagios www-data  4096 2008-06-05 15:00 .
> drwxr-xr-x 125 root   root  8192 2008-06-05 11:02 ..
> -rw-r--r--   1 nagios www-data  1598 2008-05-13 13:18 apache2.conf
> -rw-r--r--   1 nagios root 13261 2008-06-05 14:01 cgi.cfg
> -rw-r--r--   1 nagios www-data  1830 2008-06-05 10:46 checkcommands.cfgd
> drwxr-xr-x   2 nagios www-data  4096 2008-06-05 11:05 conf.d
> -rw-r--r--   1 nagios www-data  1926 2008-06-05 10:46 contactgroups.cfg
> -rw-r--r--   1 nagios www-data  3945 2008-06-05 10:46 contacts.cfg
> -rw-r--r--   1 nagios www-data  1662 2008-06-05 10:46 dependencies.cfg
> -rw-r--r--   1 nagios www-data  2256 2008-06-05 10:46 escalations.cfg
> -rw-r--r--   1 nagios www-data  4585 2008-06-05 15:00 hostgroups.cfg
> -rw-r--r--   1 nagios www-data 11072 2008-06-05 12:56 hosts.cfg
> -rw-r--r--   1 nagios www-data 13544 2008-06-05 10:46 minimal.cfg
> -rw-r--r--   1 nagios www-data  6542 2008-06-05 13:06 misccommands.cfg
> -rw-r--r--   1 nagios www-data 21702 2008-06-05 12:35 nagios.cfg
> -rw-r--r--   1 nagios www-data  4692 2008-06-05 10:46 nrpe.cfg
> -rw-r--r--   1 nagios www-data 0 2008-06-05 10:46 nrpe_local.cfg
> -rw-r-   1 nagios www-data  3100 2008-06-05 10:46 resource.cfg
> -rw-r--r--   1 nagios www-data  6363 2008-06-05 10:46 services.cfg
> drwxr-xr-x   2 nagios www-data  4096 2007-03-04 23:56 stylesheets
> -rw-r--r--   1 nagios www-data  1863 2008-06-05 10:46 timeperiods.cfg
>
>
> On Thursday 05 June 2008 16:03:36 Frank J. Gómez wrote:
> > Is it possible that the upgrader changed permissions/ownership of some
> > config file(s) in /etc/nagios/?
> >
> > On Thu, Jun 5, 2008 at 8:02 AM, Chantal Rosmuller <[EMAIL PROTECTED]>
> >
> > wrote:
> > > On Thursday 05 June 2008 13:18:13 Chantal Rosmuller wrote:
> > > > Hi list,
> > > >
> > > > after upgrading from 1.4 to 2.6 on a debian system the webinterface
> is
> > >
> > > not
> > >
> > > > working anymore, if I click on a menu link I get:
> > > >
> > > > Error: Could not read object configuration data!
> > > >
> > > > the nagios documentation says:
> > > >
> > > >1. Verify configuration options using the -v command-line option
> to
> > > > check for errors.
> > > >2. Check the Nagios log file for messages relating to startup or
> > >
> > > status
> > >
> > > > data errors.
> > > >3. Make sure you've compiled the main program and the CGIs to use
> > > > the same object data storage options (i.e. default text file or
> > >
> > > template-based
> > >
> > > > file).
> > > >
> > > > I tried 1 but no errors
> > > > same for option 2
> > > > 3, I didn't compile but I used aptitude, so I guess that cannot be
> the
> > > > problem?
> > > >
> > > >
> > > >
> ---
> > > >-- Check out the new SourceForge.net Marketplace.
> > > > It's the best place to buy or sell services for
> > > > just about anything Open Source.
> > > > http://sourceforge.net/services/buy/index.php
> > > > ___
> > > > Nagios-users mailing list
> > > > Nagios-users@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/nagios-users
> > > >
> > > > ::: Please include Nagios version, plugin version (-v) and OS when
> > > > ::: reporting any issue. Messages without supporting info will risk
> > > > ::: being sent to /dev/null
> > >
> > > The nagios daemon is running by the way.
> > >
> > >
> > >
> > >
> -
> > > Check out the new SourceForge.net Marketplace.
> > > It's the best place to buy or sell services for
> > > just about anything Open Source.
> > > http://sourceforge.net/services/buy/index.php
> > > ___
> > > Nagios-users mailing list
> > > Nagios-users@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/nagios-users
> > >
> > > ::: Please include Nagios version, plugin version (-v) and OS when
> > >
> > > reporting any issue.
> > >
> > > ::: Messages without supporting info will risk being sent to /dev/null
>
>
>
> -
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagi

Re: [Nagios-users] Error: Could not read object configuration data!

2008-06-05 Thread Chantal Rosmuller
Thanks,

The nagios server sends out email alerts so it is a cgi problem


On Thursday 05 June 2008 16:20:47 Frank J. Gómez wrote:
> I'm by no means an expert -- just taking shots in the dark here, but...
>
> Can you run checks from the command line?  If so, it suggests a problem
> specific to the CGI.  If not, it would seem the problem is with Nagios per
> se.
>
> On Thu, Jun 5, 2008 at 10:09 AM, Chantal Rosmuller <[EMAIL PROTECTED]>
>
> wrote:
> > Yes it is, but I changed the permissions already and they are ok now, at
> > least
> > I think they should be okay:
> >
> >
> > servername:~# ls -la /etc/nagios2
> > total 192
> > drwxr-xr-x   4 nagios www-data  4096 2008-06-05 15:00 .
> > drwxr-xr-x 125 root   root  8192 2008-06-05 11:02 ..
> > -rw-r--r--   1 nagios www-data  1598 2008-05-13 13:18 apache2.conf
> > -rw-r--r--   1 nagios root 13261 2008-06-05 14:01 cgi.cfg
> > -rw-r--r--   1 nagios www-data  1830 2008-06-05 10:46 checkcommands.cfgd
> > drwxr-xr-x   2 nagios www-data  4096 2008-06-05 11:05 conf.d
> > -rw-r--r--   1 nagios www-data  1926 2008-06-05 10:46 contactgroups.cfg
> > -rw-r--r--   1 nagios www-data  3945 2008-06-05 10:46 contacts.cfg
> > -rw-r--r--   1 nagios www-data  1662 2008-06-05 10:46 dependencies.cfg
> > -rw-r--r--   1 nagios www-data  2256 2008-06-05 10:46 escalations.cfg
> > -rw-r--r--   1 nagios www-data  4585 2008-06-05 15:00 hostgroups.cfg
> > -rw-r--r--   1 nagios www-data 11072 2008-06-05 12:56 hosts.cfg
> > -rw-r--r--   1 nagios www-data 13544 2008-06-05 10:46 minimal.cfg
> > -rw-r--r--   1 nagios www-data  6542 2008-06-05 13:06 misccommands.cfg
> > -rw-r--r--   1 nagios www-data 21702 2008-06-05 12:35 nagios.cfg
> > -rw-r--r--   1 nagios www-data  4692 2008-06-05 10:46 nrpe.cfg
> > -rw-r--r--   1 nagios www-data 0 2008-06-05 10:46 nrpe_local.cfg
> > -rw-r-   1 nagios www-data  3100 2008-06-05 10:46 resource.cfg
> > -rw-r--r--   1 nagios www-data  6363 2008-06-05 10:46 services.cfg
> > drwxr-xr-x   2 nagios www-data  4096 2007-03-04 23:56 stylesheets
> > -rw-r--r--   1 nagios www-data  1863 2008-06-05 10:46 timeperiods.cfg
> >
> > On Thursday 05 June 2008 16:03:36 Frank J. Gómez wrote:
> > > Is it possible that the upgrader changed permissions/ownership of some
> > > config file(s) in /etc/nagios/?
> > >
> > > On Thu, Jun 5, 2008 at 8:02 AM, Chantal Rosmuller <[EMAIL PROTECTED]>
> > >
> > > wrote:
> > > > On Thursday 05 June 2008 13:18:13 Chantal Rosmuller wrote:
> > > > > Hi list,
> > > > >
> > > > > after upgrading from 1.4 to 2.6 on a debian system the webinterface
> >
> > is
> >
> > > > not
> > > >
> > > > > working anymore, if I click on a menu link I get:
> > > > >
> > > > > Error: Could not read object configuration data!
> > > > >
> > > > > the nagios documentation says:
> > > > >
> > > > >1. Verify configuration options using the -v command-line option
> >
> > to
> >
> > > > > check for errors.
> > > > >2. Check the Nagios log file for messages relating to startup or
> > > >
> > > > status
> > > >
> > > > > data errors.
> > > > >3. Make sure you've compiled the main program and the CGIs to
> > > > > use the same object data storage options (i.e. default text file or
> > > >
> > > > template-based
> > > >
> > > > > file).
> > > > >
> > > > > I tried 1 but no errors
> > > > > same for option 2
> > > > > 3, I didn't compile but I used aptitude, so I guess that cannot be
> >
> > the
> >
> > > > > problem?
> >
> > ---
> >
> > > > >-- Check out the new SourceForge.net Marketplace.
> > > > > It's the best place to buy or sell services for
> > > > > just about anything Open Source.
> > > > > http://sourceforge.net/services/buy/index.php
> > > > > ___
> > > > > Nagios-users mailing list
> > > > > Nagios-users@lists.sourceforge.net
> > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users
> > > > >
> > > > > ::: Please include Nagios version, plugin version (-v) and OS when
> > > > > ::: reporting any issue. Messages without supporting info will risk
> > > > > ::: being sent to /dev/null
> > > >
> > > > The nagios daemon is running by the way.
> >
> > -
> >
> > > > Check out the new SourceForge.net Marketplace.
> > > > It's the best place to buy or sell services for
> > > > just about anything Open Source.
> > > > http://sourceforge.net/services/buy/index.php
> > > > ___
> > > > Nagios-users mailing list
> > > > Nagios-users@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/nagios-users
> > > >
> > > > ::: Please include Nagios version, plugin version (-v) and OS when
> > > >
> > > > reporting any issue.
> > > >
> > > > ::: Messages without supporting info will risk being sent to
> > > > ::: /dev/null
> >
> > -
> > Chec

[Nagios-users] check_snmp_int.pl: over 100%?

2008-06-05 Thread Ford, Andy

I'm trying to use check_snmp_int.pl (not standard, see
http://nagios.manubulon.com/snmp_int.html) but when I try to get my
results in percent form, I get over 100% results on at least on device:


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


Am I just using the options wrong?


Andrew Ford
Wachovia Corporate Information Security
314-955-6647 desk
314-600-7025 cell
[EMAIL PROTECTED]


Wachovia Securities, LLC's outgoing and incoming e-mails are electronically
archived and subject to review and/or disclosure to someone other
than the recipient.

A.G. Edwards, a division of Wachovia Securities, LLC




-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] nsca and comments questions..

2008-06-05 Thread matt wells
So I have 2 servers
server1
server2
- -
server1 lives inside my network and server2 lives in a DMZ.
All of my customers login to server2 in order to see the status of the
networks I monitor.
The two servers replicate the information with nsca.
It seems that when a systems goes down it replicates perfectly but when I
comment on it the comments or anything do not go.
Also does server2 have to ping all the systems as well?  They it currently
is pinging everything along with server1.
What did I do wrong?
Thanks everyone.
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Alerts using IM

2008-06-05 Thread Ryan Horrisberger

May be this query has already been answered on this list.


yup, and it is common etiquette to check and see before reposting.  It was very 
recently in fact--3/18/08 if you want to dredge the archives for more info.  
This URL should help.

http://www.gridpp.ac.uk/wiki/Nagios_jabber_notification

Ryan Horrisberger




smime.p7s
Description: S/MIME Cryptographic Signature
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

[Nagios-users] check_http issues...

2008-06-05 Thread Victor Lanza
I feel like this plugin hates me!...

 

I get a critical status with a (Null) Status Information and I can't seem to
figure out what I am doing wrong.

 

My command looks like this:

define command{

command_namecheck_http_arg

command_line$USER1$/check_http -H $HOSTADDRESS$ -a $ARG1$

}

 

And my service definition looks like this:

define service{

use   master-service

host  mdfbbsw01

service_description Web Interface

check_command   check_http_arg!admin:'12345'

}

 

 

 

However from the command line (with root and nagios users) I execute this:

/usr/local/nagios/libexec/check_http -I 10.10.4.10 -a admin:'12345'

 

HTTP OK HTTP/1.1 200 OK - 16447 bytes in 0.150 seconds
|time=0.150422s;;;0.00 size=16447B;;;0

 

 

Can anyone see anything that I don't?

 

Thanks,

 

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] check_snmp_int.pl: over 100%?

2008-06-05 Thread Daniel López
On Thu June 5 2008 17:30:24 Ford, Andy wrote:
> I'm trying to use check_snmp_int.pl (not standard, see
> http://nagios.manubulon.com/snmp_int.html) but when I try to get my
> results in percent form, I get over 100% results on at least on device:
>
>
> $./check_snmp_int.pl -HDEVICE -CXXX --name 'eth-s1p1 ' --perfcheck
> --perfspeed --warning=40,60  --critical=60,80 --prct
> eth-s1p1 Ethernet Layer Intel 10/100 Ethernet:UP (CRIT 180.3%/CRIT
> 468.1%):(1 UP): CRITICAL
>
>
> Am I just using the options wrong?
>
try this:

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


regards, 


dani

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Performance problems

2008-06-05 Thread Marc Powell

On Jun 5, 2008, at 9:11 AM, Jay R. Ashworth wrote:

> On Thu, Jun 05, 2008 at 08:01:12AM -0500, Marc Powell wrote:
>> Until last year I was using Compaq DL360's (dual P3 1.4Ghz, 1G ram)  
>> to
>> monitor 800+ services at 5 minute intervals + Cricket data collection
>> for 10's of thousands of interfaces during that same interval.
>
> You're talking, there, about watching throughput on switchports and  
> the
> like?  That's my next gig; do you have a good pointer on setting
> Cricket up to do that sort of thing?  It'll be my first time behind  
> the

Cricket's hardcore but pretty extensible. You have to have a good  
understanding of SNMP and rrdtool. http://cricket.sf.net is the only  
source of information that I am aware of. Note that general  
development ceased several years ago but there's not much that it  
lacks if you think of it as a framework. The user list is pretty  
inactive as well. If you do use it, the genRtrConfig and genDevConfig  
addons are extremely useful for adding in new devices.

If I were doing it again, I'd give Cacti a serious look. When we  
adopted cricket, cacti didn't scale very well and it didn't appear to  
have obvious ways to script the creation of new devices which we could  
do simply with cricket. I don't know if those have changed but Cacti  
appears to be very polished.

--
Marc

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Error: Could not read object configuration data!

2008-06-05 Thread Marc Powell

On Jun 5, 2008, at 9:09 AM, Chantal Rosmuller wrote:

> Yes it is, but I changed the permissions already and they are ok  
> now, at least
> I think they should be okay:
>
>
> servername:~# ls -la /etc/nagios2

The CGI's are actually trying to read the cached object data file and  
other files under var.

object_cache_file=/usr/local/nagios/var/objects.cache

They don't have to be group www-data, just readable by the web server.  
(i.e. 664).

--
Marc

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check_snmp_int.pl: over 100%?

2008-06-05 Thread Ford, Andy

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Daniel López
> Sent: Thursday, June 05, 2008 10:54 AM
> To: nagios-users@lists.sourceforge.net
> Subject: Re: [Nagios-users] check_snmp_int.pl: over 100%?
> 
> On Thu June 5 2008 17:30:24 Ford, Andy wrote:
> > I'm trying to use check_snmp_int.pl (not standard, see
> > http://nagios.manubulon.com/snmp_int.html) but when I try to get my
> > results in percent form, I get over 100% results on at 
> least on device:
> >
> >
> > $./check_snmp_int.pl -HDEVICE -CXXX --name 'eth-s1p1 ' --perfcheck
> > --perfspeed --warning=40,60  --critical=60,80 --prct
> > eth-s1p1 Ethernet Layer Intel 10/100 Ethernet:UP (CRIT 180.3%/CRIT
> > 468.1%):(1 UP): CRITICAL
> >
> >
> > Am I just using the options wrong?
> >
> try this:
> 
> check_cisco_int -H $HOSTADDRESS$ -C $USER4$ -B -u -r -f -n 
> "$ARG1$" -kY -w 
> 80,80 -c 90,90 -d 600
> 
Thanks Dani for the reply.

I'm confused: is that a command definition or a custom plugin? 

If I use your options but replace "check_ciso_int" with "check_snmp_int.pl" I 
still get results over 100%. 

Andrew Ford
Wachovia Corporate Information Security
314-955-6647 desk
314-600-7025 cell
[EMAIL PROTECTED]
 


Wachovia Securities, LLC's outgoing and incoming e-mails are electronically
archived and subject to review and/or disclosure to someone other
than the recipient.

A.G. Edwards, a division of Wachovia Securities, LLC




-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] nsca and comments questions..

2008-06-05 Thread Marc Powell

On Jun 5, 2008, at 10:56 AM, matt wells wrote:

> So I have 2 servers
> server1
> server2
> - -
> server1 lives inside my network and server2 lives in a DMZ.
> All of my customers login to server2 in order to see the status of  
> the networks I monitor.
> The two servers replicate the information with nsca.

One sends to the other or both send to each other?

> It seems that when a systems goes down it replicates perfectly but  
> when I comment on it the comments or anything do not go.

That's correct. Event handlers, which I assume you are using to call  
send_nsca, only fire on check results. There's no built-in way to  
replicate comments, acknowledgements, or any other CGI initiated  
action (except forced checks).

> Also does server2 have to ping all the systems as well?  They it  
> currently is pinging everything along with server1.

Not if you disable active checks or set the check period to none.

--
Marc

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check_http issues...

2008-06-05 Thread Richard Quintin
You're using -I and the command line and -H in your conf.  This makes
a difference.  I haven't figured out all the details yet, but I
believe it affects what gets sent in the header...

On Thu, Jun 5, 2008 at 11:57 AM, Victor Lanza <[EMAIL PROTECTED]> wrote:
> I feel like this plugin hates me!...
>
>
>
> I get a critical status with a (Null) Status Information and I can't seem to
> figure out what I am doing wrong.
>
>
>
> My command looks like this:
>
> define command{
>
> command_namecheck_http_arg
>
> command_line$USER1$/check_http -H $HOSTADDRESS$ -a $ARG1$
>
> }
>
>
>
> And my service definition looks like this:
>
> define service{
>
> use   master-service
>
> host  mdfbbsw01
>
> service_description Web Interface
>
> check_command   check_http_arg!admin:'12345'
>
> }
>
>
>
>
>
>
>
> However from the command line (with root and nagios users) I execute this:
>
> /usr/local/nagios/libexec/check_http -I 10.10.4.10 -a admin:'12345'
>
>
>
> HTTP OK HTTP/1.1 200 OK - 16447 bytes in 0.150 seconds
> |time=0.150422s;;;0.00 size=16447B;;;0
>
>
>
>
>
> Can anyone see anything that I don't?
>
>
>
> Thanks,
>
>
>
> -
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>



-- 
Richard Quintin, DBA
Database & Application Administration
Virginia Tech

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check_http issues...

2008-06-05 Thread Victor Lanza
I've actually tried both the H and I interchangeably and it only works on
the command line..regardless of H or I.. 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Richard Quintin
Sent: Thursday, June 05, 2008 12:58 PM
To: Victor Lanza
Cc: nagios Mailinglist
Subject: Re: [Nagios-users] check_http issues...

You're using -I and the command line and -H in your conf.  This makes
a difference.  I haven't figured out all the details yet, but I
believe it affects what gets sent in the header...

On Thu, Jun 5, 2008 at 11:57 AM, Victor Lanza <[EMAIL PROTECTED]> wrote:
> I feel like this plugin hates me!...
>
>
>
> I get a critical status with a (Null) Status Information and I can't seem
to
> figure out what I am doing wrong.
>
>
>
> My command looks like this:
>
> define command{
>
> command_namecheck_http_arg
>
> command_line$USER1$/check_http -H $HOSTADDRESS$ -a $ARG1$
>
> }
>
>
>
> And my service definition looks like this:
>
> define service{
>
> use   master-service
>
> host  mdfbbsw01
>
> service_description Web Interface
>
> check_command   check_http_arg!admin:'12345'
>
> }
>
>
>
>
>
>
>
> However from the command line (with root and nagios users) I execute this:
>
> /usr/local/nagios/libexec/check_http -I 10.10.4.10 -a admin:'12345'
>
>
>
> HTTP OK HTTP/1.1 200 OK - 16447 bytes in 0.150 seconds
> |time=0.150422s;;;0.00 size=16447B;;;0
>
>
>
>
>
> Can anyone see anything that I don't?
>
>
>
> Thanks,
>
>
>
> -
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
reporting
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>



-- 
Richard Quintin, DBA
Database & Application Administration
Virginia Tech


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check_http issues...

2008-06-05 Thread Richard Quintin
And the host address for mdfbbsw01 is defined as 10.10.4.10?

If so, I would take a look at check_debug to figure out what's going on.
http://www.nagios.org/faqs/viewfaq.php?faq_id=379

On Thu, Jun 5, 2008 at 1:06 PM, Victor Lanza <[EMAIL PROTECTED]> wrote:
> I've actually tried both the H and I interchangeably and it only works on
> the command line..regardless of H or I..
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
> Richard Quintin
> Sent: Thursday, June 05, 2008 12:58 PM
> To: Victor Lanza
> Cc: nagios Mailinglist
> Subject: Re: [Nagios-users] check_http issues...
>
> You're using -I and the command line and -H in your conf.  This makes
> a difference.  I haven't figured out all the details yet, but I
> believe it affects what gets sent in the header...
>
> On Thu, Jun 5, 2008 at 11:57 AM, Victor Lanza <[EMAIL PROTECTED]> wrote:
>> I feel like this plugin hates me!...
>>
>>
>>
>> I get a critical status with a (Null) Status Information and I can't seem
> to
>> figure out what I am doing wrong.
>>
>>
>>
>> My command looks like this:
>>
>> define command{
>>
>> command_namecheck_http_arg
>>
>> command_line$USER1$/check_http -H $HOSTADDRESS$ -a $ARG1$
>>
>> }
>>
>>
>>
>> And my service definition looks like this:
>>
>> define service{
>>
>> use   master-service
>>
>> host  mdfbbsw01
>>
>> service_description Web Interface
>>
>> check_command   check_http_arg!admin:'12345'
>>
>> }
>>
>>
>>
>>
>>
>>
>>
>> However from the command line (with root and nagios users) I execute this:
>>
>> /usr/local/nagios/libexec/check_http -I 10.10.4.10 -a admin:'12345'
>>
>>
>>
>> HTTP OK HTTP/1.1 200 OK - 16447 bytes in 0.150 seconds
>> |time=0.150422s;;;0.00 size=16447B;;;0
>>
>>
>>
>>
>>
>> Can anyone see anything that I don't?
>>
>>
>>
>> Thanks,
>>
>>
>>
>> -
>> Check out the new SourceForge.net Marketplace.
>> It's the best place to buy or sell services for
>> just about anything Open Source.
>> http://sourceforge.net/services/buy/index.php
>> ___
>> Nagios-users mailing list
>> Nagios-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting
>> any issue.
>> ::: Messages without supporting info will risk being sent to /dev/null
>>
>
>
>
> --
> Richard Quintin, DBA
> Database & Application Administration
> Virginia Tech
>
>



-- 
Richard Quintin, DBA
Database & Application Administration
Virginia Tech

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check_http issues...

2008-06-05 Thread Victor Lanza
Okit gets weirder..

When I run the command again with that debug script, the log file doesn't
get written. All users have access to write to the tmp directory by default
so I don't know why it is not writing the log.

I tried also running the debug script via the command line in case it was a
permission issue. This time it did write the log file but it isn't much use
since the check_http works from the command line anyways.

I also tried this and got the same results:

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


My commands were:
define command{
command_namecheck_http_arg
command_line/$USER1$/check_debug.sh /$USER1$/check_http -H
$HOSTADDRESS$ -a $ARG1$
}

define command{
command_namecheck_http_arg
command_line/$USER1$/capture_plugin.pl /$USER1$/check_http -H
$HOSTADDRESS$ -a $ARG1$
}


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Richard Quintin
Sent: Thursday, June 05, 2008 1:18 PM
To: Victor Lanza
Cc: nagios Mailinglist
Subject: Re: [Nagios-users] check_http issues...

And the host address for mdfbbsw01 is defined as 10.10.4.10?

If so, I would take a look at check_debug to figure out what's going on.
http://www.nagios.org/faqs/viewfaq.php?faq_id=379

On Thu, Jun 5, 2008 at 1:06 PM, Victor Lanza <[EMAIL PROTECTED]> wrote:
> I've actually tried both the H and I interchangeably and it only works on
> the command line..regardless of H or I..
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
> Richard Quintin
> Sent: Thursday, June 05, 2008 12:58 PM
> To: Victor Lanza
> Cc: nagios Mailinglist
> Subject: Re: [Nagios-users] check_http issues...
>
> You're using -I and the command line and -H in your conf.  This makes
> a difference.  I haven't figured out all the details yet, but I
> believe it affects what gets sent in the header...
>
> On Thu, Jun 5, 2008 at 11:57 AM, Victor Lanza <[EMAIL PROTECTED]> wrote:
>> I feel like this plugin hates me!...
>>
>>
>>
>> I get a critical status with a (Null) Status Information and I can't seem
> to
>> figure out what I am doing wrong.
>>
>>
>>
>> My command looks like this:
>>
>> define command{
>>
>> command_namecheck_http_arg
>>
>> command_line$USER1$/check_http -H $HOSTADDRESS$ -a $ARG1$
>>
>> }
>>
>>
>>
>> And my service definition looks like this:
>>
>> define service{
>>
>> use   master-service
>>
>> host  mdfbbsw01
>>
>> service_description Web Interface
>>
>> check_command   check_http_arg!admin:'12345'
>>
>> }
>>
>>
>>
>>
>>
>>
>>
>> However from the command line (with root and nagios users) I execute
this:
>>
>> /usr/local/nagios/libexec/check_http -I 10.10.4.10 -a admin:'12345'
>>
>>
>>
>> HTTP OK HTTP/1.1 200 OK - 16447 bytes in 0.150 seconds
>> |time=0.150422s;;;0.00 size=16447B;;;0
>>
>>
>>
>>
>>
>> Can anyone see anything that I don't?
>>
>>
>>
>> Thanks,
>>
>>
>>
>> -
>> Check out the new SourceForge.net Marketplace.
>> It's the best place to buy or sell services for
>> just about anything Open Source.
>> http://sourceforge.net/services/buy/index.php
>> ___
>> Nagios-users mailing list
>> Nagios-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting
>> any issue.
>> ::: Messages without supporting info will risk being sent to /dev/null
>>
>
>
>
> --
> Richard Quintin, DBA
> Database & Application Administration
> Virginia Tech
>
>



-- 
Richard Quintin, DBA
Database & Application Administration
Virginia Tech


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] nsca and comments questions..

2008-06-05 Thread Marc Powell
Please always reply on list so that others now, or in the future, can  
benefit from your experience. You'll also have better luck finding out  
your options since I only have my personal experiences to draw on.

On Jun 5, 2008, at 1:04 PM, matt wells wrote:

> Server1 sends to server2 only.  One way communications.
>
> You mention
> "There's no built-in way to
> replicate comments, acknowledgements, or any other CGI initiated
> action (except forced checks)."
> Is there another way to do this?

Nothing currently exists that I am aware of but there are certainly  
ways to do it.

-   create a client/daemon similar to NSCA that can send arbitrary  
external commands to the nagios external command pipe on remote machines
-   write an event-broker module that intercepts those events and sends  
appropriate commands to the above client or
-   tail -f nagios.log looking for those events and send appropriate  
commands to the above client.

The client/daemon might be as simple as an authorized_keys ssh  
(untested) --

ssh [EMAIL PROTECTED] 'echo "[timestamp] EXTERNALCOMMAND;options" > / 
usr/local/nagios/var/rw/nagios.cmd'

I'd probably opt for calling a script, that the key was limited to  
running, that accepted the external command and options as variables  
then wrote to the pipe.

--
Marc

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check_http issues...

2008-06-05 Thread Marc Powell

On Jun 5, 2008, at 1:28 PM, Victor Lanza wrote:

> Okit gets weirder..
>
> When I run the command again with that debug script, the log file  
> doesn't
> get written. All users have access to write to the tmp directory by  
> default
> so I don't know why it is not writing the log.

> /usr/local/nagios/libexec/check_http -I 10.10.4.10 -a admin:'12345'
>>
>>>

What's special about the password that you're enclosing it in quotes?  
Do you see different behavior if you make it wrong, but not 'special'?  
How about if you hard set it in the command{} definition instead of  
passing it as a $ARGx$?

--
Marc

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] event handler not working

2008-06-05 Thread Kevin Manuel
Hi,

I'm trying to get an event handler to work with no success so I'm hoping
somebody might have some suggestions. It appears as though Nagios is not
calling the event handler at all when a service check is performed. I don't
think it's a permissions thing because the event handler works properly when
run by the nagios user at the command line:

i.e. [EMAIL PROTECTED] bin]# su - nagios -c
"/usr/local/nagios/libexec/eventhandlers/renotify-on-ok" 

I have removed all the arguments that are passed to the event handler to
simplify troubleshooting and at this point the event handler should simply
send an email message when the service check is performed. Code shown below.
Thanks in advance.


renotify-on-ok (only 3 lines):
==

#!/usr/bin/perl

$contactEmail = "[EMAIL PROTECTED]";

`/bin/echo -e ' event handler works! ' | /bin/mail -s '** event handler
works **' $contactEmail`;



checkcommands.cfg:
=

define command{
command_namerenotify-on-ok
command_line$USER1$/eventhandlers/renotify-on-ok
}



In templates.cfg the service is defined as follows:
===

define service{
use generic-service ; Name of
service template to use
name  snmp-trap-alerting-service
service_description SNMP Trap Alert 
is_volatile 1
check_period24x7
active_checks_enabled   0
normal_check_interval 14400
retry_check_interval  14400
max_check_attempts  1
notification_interval   0
notification_period 24x7
notification_optionsw,u,c,r
check_command   check_none
stalking_options  o,w,u,c
event_handler renotify-on-ok
event_handler_enabled   1
  register0  
}


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check_http issues...

2008-06-05 Thread Victor Lanza
Ok here is what I tried..

1. I passed the user:pass in the command file opposed to passing as an
$ARGx$ and it returned a Warning state with a 401 Unauthorized. However it
did create the log file this time.

2. I passed the user:pass without the quotes (still in the command file) and
still got the same results in the Nagios interface and also got a log.

What is weird about the log is that the password being sent is not the same
as the one defined in the command file and I guess it has to do with the
'special' characters in the password.

The password is: 123$45!

The reason why I was passing it in single quotes was because the check_http
plugin seemed to be able to pass it on to the site to authenticate with it
just fine. If I removed the quotes, I got an access denied message. However
this only works via the command line.

Here is what I got in the logfiles:

2008-5-5 14:56:58 -- debugging
cmd=[/usr/local/nagios/libexec/check_http '-H' '10.10.4.10' '-a'
'admin:123$45!$']
output=[HTTP WARNING: HTTP/1.1 401 Unauthorized
]
retcode=1
---
 2008-5-5 14:58:13 -- debugging
cmd=[/usr/local/nagios/libexec/check_http '-H' '10.10.4.10' '-a'
'admin:1235!$']
output=[HTTP WARNING: HTTP/1.1 401 Unauthorized
]
retcode=1
---

Notice how on the first error it has the $ misplaced at the end as well as
after the 3. In the 2nd one it doesn't have $ after 3, it has it at the end
instead. The password is this way due to strict password rules here and I
don't think I could use a simpler one. However, if it works via the command
line I don't see why it shouldn't work through the nagios interface. :(


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marc Powell
Sent: Thursday, June 05, 2008 2:46 PM
To: nagios Mailinglist
Subject: Re: [Nagios-users] check_http issues...


On Jun 5, 2008, at 1:28 PM, Victor Lanza wrote:

> Okit gets weirder..
>
> When I run the command again with that debug script, the log file  
> doesn't
> get written. All users have access to write to the tmp directory by  
> default
> so I don't know why it is not writing the log.

> /usr/local/nagios/libexec/check_http -I 10.10.4.10 -a admin:'12345'
>>
>>>

What's special about the password that you're enclosing it in quotes?  
Do you see different behavior if you make it wrong, but not 'special'?  
How about if you hard set it in the command{} definition instead of  
passing it as a $ARGx$?

--
Marc

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] check_snmp

2008-06-05 Thread dave stern - e-mail.pluribus.unum
I've got two nagios installs with snmp giving different responses.

Details:
Host1 is an operational nagios 2.9 install on SuSE 10.1-64bit machine

Host2 is a development machine, Suse 10.2-64bit with newly installed
nagios 3.02 and nagios-plugins-1.4.12. I have all the perl modules necessary
(Net SNMP, Crypt DES, Digest HMAC as well as libgd.

running

check_snmp -H SOMEHOST -o 1.3.6.1.4.1.674.10892.1.700.20.1.6.1.1 -C
Nmystring% -P 1 -c 1:250 -u degC*10 -l 'Front side I/O Temp: '

returns on the operational host
  Front side I/O Temp:  OK - 200 degC*10 |
iso.3.6.1.4.1.674.10892.1.700.20.1.6.1.1=200

But from the development host, I get
Front side I/O Temp:  problem - No data received from host
CMD: /usr/bin/snmpget -t 1 -r 5 -m '' -v 1 [authpriv] SOMEHOST:161
1.3.6.1.4.1.674.10892.1.700.20.1.6.1.1

Both resolve the hostname the same and other plugins to same host
(ping,Mysql) work fine.
Strace of the command shows it finding all the same files until it times out.
Where else can I look for  differences?

TIA

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check_snmp

2008-06-05 Thread Ford, Andy


> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of dave stern - e-mail.pluribus.unum
> Sent: Thursday, June 05, 2008 2:17 PM
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] check_snmp
> 
> I've got two nagios installs with snmp giving different responses.
> 
> Details:
> Host1 is an operational nagios 2.9 install on SuSE 10.1-64bit machine
> 
> Host2 is a development machine, Suse 10.2-64bit with newly installed
> nagios 3.02 and nagios-plugins-1.4.12. I have all the perl 
> modules necessary
> (Net SNMP, Crypt DES, Digest HMAC as well as libgd.
> 
> running
> 
> check_snmp -H SOMEHOST -o 1.3.6.1.4.1.674.10892.1.700.20.1.6.1.1 -C
> Nmystring% -P 1 -c 1:250 -u degC*10 -l 'Front side I/O Temp: '
> 
> returns on the operational host
>   Front side I/O Temp:  OK - 200 degC*10 |
> iso.3.6.1.4.1.674.10892.1.700.20.1.6.1.1=200
> 
> But from the development host, I get
> Front side I/O Temp:  problem - No data received from host
> CMD: /usr/bin/snmpget -t 1 -r 5 -m '' -v 1 [authpriv] SOMEHOST:161
> 1.3.6.1.4.1.674.10892.1.700.20.1.6.1.1
> 
> Both resolve the hostname the same and other plugins to same host
> (ping,Mysql) work fine.
> Strace of the command shows it finding all the same files 
> until it times out.
> Where else can I look for  differences?

Look for an access control list of some kind on the target device which
restricts who can query it via SNMP.

Andrew Ford
Wachovia Corporate Information Security
314-955-6647 desk
314-600-7025 cell
[EMAIL PROTECTED] 


Wachovia Securities, LLC's outgoing and incoming e-mails are electronically
archived and subject to review and/or disclosure to someone other
than the recipient.

A.G. Edwards, a division of Wachovia Securities, LLC




-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] event handler not working

2008-06-05 Thread Marc Powell

On Jun 5, 2008, at 1:59 PM, Kevin Manuel wrote:

> Hi,
>
> I'm trying to get an event handler to work with no success so I'm  
> hoping
> somebody might have some suggestions. It appears as though Nagios is  
> not
> calling the event handler at all when a service check is performed.  
> I don't

Nagios should log if it does. You also need to enable event handlers  
in nagios.cfg --

$ grep enable_event_handlers etc/nagios.cfg
enable_event_handlers=1

--
Marc


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check_snmp

2008-06-05 Thread Jay R. Ashworth
On Thu, Jun 05, 2008 at 02:24:21PM -0500, Ford, Andy wrote:
> > Both resolve the hostname the same and other plugins to same host
> > (ping,Mysql) work fine.
> > Strace of the command shows it finding all the same files 
> > until it times out.
> > Where else can I look for  differences?
> 
> Look for an access control list of some kind on the target device which
> restricts who can query it via SNMP.

And, if that's difficult to do, take the working host offnet, and
alias the other one's interface to it's IP.

Cheers,
-- jra
-- 
Jay R. Ashworth   Baylink  [EMAIL PROTECTED]
Designer The Things I Think   RFC 2100
Ashworth & Associates http://baylink.pitas.com '87 e24
St Petersburg FL USA  http://photo.imageinc.us +1 727 647 1274

 Those who cast the vote decide nothing.
 Those who count the vote decide everything.
   -- (Joseph Stalin)

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check_http issues...

2008-06-05 Thread Marc Powell

On Jun 5, 2008, at 2:08 PM, Victor Lanza wrote:

> The password is: 123$45!
>
> The reason why I was passing it in single quotes was because the  
> check_http
> plugin seemed to be able to pass it on to the site to authenticate  
> with it
> just fine. If I removed the quotes, I got an access denied message.  
> However
> this only works via the command line.
>
> Here is what I got in the logfiles:
>
> 2008-5-5 14:56:58 -- debugging
> cmd=[/usr/local/nagios/libexec/check_http '-H' '10.10.4.10' '-a'
> 'admin:123$45!$']
> output=[HTTP WARNING: HTTP/1.1 401 Unauthorized
> ]
> retcode=1
> ---
> 2008-5-5 14:58:13 -- debugging
> cmd=[/usr/local/nagios/libexec/check_http '-H' '10.10.4.10' '-a'
> 'admin:1235!$']
> output=[HTTP WARNING: HTTP/1.1 401 Unauthorized
> ]
> retcode=1
> ---
>
> Notice how on the first error it has the $ misplaced at the end as  
> well as
> after the 3. In the 2nd one it doesn't have $ after 3, it has it at  
> the end
> instead. The password is this way due to strict password rules here  
> and I
> don't think I could use a simpler one. However, if it works via the  
> command
> line I don't see why it shouldn't work through the nagios  
> interface. :(

I don't know what version of nagios you are using but this appears  
relevant and was submitted to nagios-devel late last week --

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=480001

Note also that '!' has special meaning to nagios in service{} and  
host{} command_lines regardless of whether it's enclosed in quotes or  
not. Nagios-3 addresses that --

http://nagios.sourceforge.net/docs/3_0/whatsnew.html

"Escaped command arguments - You can now pass bang (!) characters in  
your command arguments by escaping them with a backslash (\). If you  
need to include backslashes in your command arguments, they should  
also be escaped with a backslash."

--
Marc

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check_http issues...

2008-06-05 Thread Victor Lanza
I'm using Nagios 3.0.1 with Plugins 1.4.11

Ah..

Well on another note if I were to use this password, where would I need to
put the escape character?

The password is: 123$45!

I'll try that if not, I'll try to create a separate non admin user with
enough rights to log in

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marc Powell
Sent: Thursday, June 05, 2008 3:39 PM
To: nagios Mailinglist
Subject: Re: [Nagios-users] check_http issues...


On Jun 5, 2008, at 2:08 PM, Victor Lanza wrote:

> The password is: 123$45!
>
> The reason why I was passing it in single quotes was because the  
> check_http
> plugin seemed to be able to pass it on to the site to authenticate  
> with it
> just fine. If I removed the quotes, I got an access denied message.  
> However
> this only works via the command line.
>
> Here is what I got in the logfiles:
>
> 2008-5-5 14:56:58 -- debugging
> cmd=[/usr/local/nagios/libexec/check_http '-H' '10.10.4.10' '-a'
> 'admin:123$45!$']
> output=[HTTP WARNING: HTTP/1.1 401 Unauthorized
> ]
> retcode=1
> ---
> 2008-5-5 14:58:13 -- debugging
> cmd=[/usr/local/nagios/libexec/check_http '-H' '10.10.4.10' '-a'
> 'admin:1235!$']
> output=[HTTP WARNING: HTTP/1.1 401 Unauthorized
> ]
> retcode=1
> ---
>
> Notice how on the first error it has the $ misplaced at the end as  
> well as
> after the 3. In the 2nd one it doesn't have $ after 3, it has it at  
> the end
> instead. The password is this way due to strict password rules here  
> and I
> don't think I could use a simpler one. However, if it works via the  
> command
> line I don't see why it shouldn't work through the nagios  
> interface. :(

I don't know what version of nagios you are using but this appears  
relevant and was submitted to nagios-devel late last week --

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=480001

Note also that '!' has special meaning to nagios in service{} and  
host{} command_lines regardless of whether it's enclosed in quotes or  
not. Nagios-3 addresses that --

http://nagios.sourceforge.net/docs/3_0/whatsnew.html

"Escaped command arguments - You can now pass bang (!) characters in  
your command arguments by escaping them with a backslash (\). If you  
need to include backslashes in your command arguments, they should  
also be escaped with a backslash."

--
Marc

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check_http issues...

2008-06-05 Thread Jay R. Ashworth
On Thu, Jun 05, 2008 at 03:49:24PM -0400, Victor Lanza wrote:
> Well on another note if I were to use this password, where would I need to
> put the escape character?
> 
> The password is: 123$45!

You might need to escape both the $ and the !; both have special
meaning to a shell, in addition to any meaning they may have to Nagios.

Cheers,
-- jra
-- 
Jay R. Ashworth   Baylink  [EMAIL PROTECTED]
Designer The Things I Think   RFC 2100
Ashworth & Associates http://baylink.pitas.com '87 e24
St Petersburg FL USA  http://photo.imageinc.us +1 727 647 1274

 Those who cast the vote decide nothing.
 Those who count the vote decide everything.
   -- (Joseph Stalin)

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check_http issues...

2008-06-05 Thread Marc Powell

On Jun 5, 2008, at 2:49 PM, Victor Lanza wrote:

> I'm using Nagios 3.0.1 with Plugins 1.4.11
>
> Ah..
>
> Well on another note if I were to use this password, where would I  
> need to
> put the escape character?
>
> The password is: 123$45!

If the debian supplied patch works as expected to handle the inclusion  
of the extra '$' then it should be as simple as changing your  
service{} check_command to be --

check_command   check_http_arg!admin:'123$45\!'

I expect the $ to be ok as-is since the shell will see that enclosed  
in single-quotes an won't treat it as a shell variable.

--
Marc

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Mixed Nagios versions in a Distributed setup?

2008-06-05 Thread Ray Keaveney
Hello,

I'm in the process of implementing a Distributed nagios system. Are  
there any known issues with using different nagios versions in the  
Distributed model? In my instance it would be Nagios 3.0.2 on the  
Central server and Nagios 2.x on the Distributed servers.


Thanks,

-Ray

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] NDO and round robin

2008-06-05 Thread Frank J. Gómez
Hi,

Is anyone using a round robin database with the NDO2DB plugin?

I've seen tools that create an RRD from the Nagios log files, but what I'd
like to do is have the NDO database kept under control, not the log files.
In other words, if left unchecked, the NDO database can grow to be pretty
huge.  After looking at what's out there, I thought about just setting up
some cron jobs to manage the data... but I thought I'd check in with the
list first to see if I'd missed anything.

Thanks!
-Frank
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

[Nagios-users] FW: Configuring Active Directory authentication - Nagios 3.0.2

2008-06-05 Thread Lists
Hi,

 

I have spent the last week or two building a demo system and one of my
requirements is that we can configure user access based on LDAP queries
to our AD server.

 

I am currently running the test box on Ubuntu Server 7 and I am having
problems in getting the LDAP queries setup as my Linux knowledge is
nowhere near as strong as my Windows.

 

Has anyone configured this and maybe have the relevant snippets of code
I need for my nagios config and also for apache as I don't think what I
have in place is currently working for me!

 

Any help is much appreciated as always.

 

Regards,

 

Matt White

[ [EMAIL PROTECTED] ]

[ http://www.matthewjwhite.co.uk ]

 


WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. Lists accepts 
no liability for any damage caused by any virus transmitted by this email. 
E-mail transmission cannot be guaranteed to be secure or error-free as 
information could be intercepted, corrupted, lost, destroyed, arrive late or 
incomplete, or contain viruses.Lists therefore does not accept liability for 
any errors or omissions in the contents of this message, which arise as a 
result of e-mail transmission.

Warning: Although Lists has taken reasonable precautions to ensure no viruses 
are present in this email, Lists cannot accept responsibility for any loss or 
damage arising from the use of this email or attachments.


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] error when including resource.cfg

2008-06-05 Thread Andrew Edwards
I have in my nagios.cfg

cfg_dir=/usr/local/etc/nagios/objects/common
cfg_dir=/usr/local/etc/nagios/objects/mfg

but I do not include any parent dir's only these.  I then tried copying
the resource.cfg file into the commond dir and I get the same problem.

Are there caviates to using the cfg_dir directive?  I used to have
relatively large config files (80-100k) and I've found it very usefull
to break these up into many smaller files and I could include these one
by one but it's very handy to use the cfg_dir.  I do need my $USERx$
macros's so how can I work-around this problem? 

-Original Message-
From: Morris, Patrick [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 05, 2008 12:17 AM
To: Andrew Edwards; Thomas Guyot-Sionnest
Cc: Nagios-users@lists.sourceforge.net
Subject: RE: [Nagios-users] error when including resource.cfg

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Andrew Edwards
> Sent: Wednesday, June 04, 2008 7:32 PM
> To: Thomas Guyot-Sionnest
> Cc: Nagios-users@lists.sourceforge.net
> Subject: Re: [Nagios-users] error when including resource.cfg
>
> I get the same result if I use the resource.cfg-sample provide with
the
> install.
>
> $ nagios -v /usr/local/etc/nagios/nagios.cfg
>
> Nagios 3.0.2
> Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org)
> Last Modified: 05-19-2008
> License: GPL
>
> Reading configuration data...
>
> Error: Unexpected token or statement in file
> '/usr/local/etc/nagios/resource.cfg' on line 26.

Have you, by any chance, told Nagios to load all files in
/usr/local/etc/nagios using the cfg_dir directive, or told it to load it
using the cfg_file directive rather than the resource_file one? That
would cause the error you're seeing.


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null