Re: [Nagios-users] Whoops Error for no reason

2009-02-21 Thread Sebastian Bachmann
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
 
Hendrik Baecker schrieb:


 Sebastian Bachmann schrieb:
 Hello, Yesterday i added a new host in my nagios config. After
 adding the host i reloaded the daemon and checked the cgi
 webinterface to check the host. But the Webinterface give my
 since this reconfiguration a Whoops Error (*Error: Could not
 read object configuration data!). I restarted the daemon,
 checked the config with -v (2 warning and 0 errors) and finally
 restarted the server. I also removed the new host from the
 config, but I'm getting still this error. I checked the FAQ,
 Mailingslists and Google and only found unansweard threads -
 seems to be a nice problem :D

 Are you running NDOUtils? If so, the initital data transfer after a
  nagios reload may take some while until nagios warms up.

no, ndoutils are not even installed. I checked the cgi interface 5 min
ago (the last reload was ~10h ago) but still the Whoops Error.

regards,
sebastian bachmann
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
iQEcBAEBAgAGBQJJoAqHAAoJEMk5DteJqDfPTKoH/3JNp7i95VF9Ahs7SmRmAvQ/
Dr3Jpi8AsALUxK2Z2C4aSiCl9RVRyNywArO7yBRizukwAXxCMXrCCtTkE/MshXzN
3MPlIUwgoCRL8C0V1mCVqeNOh5yJ009rm2R9HTie3zOtNPBAe18gKWTk5P/zhnTi
UIDW4TR6xDDajaHNR33X468g00GMKHmeAkWO/lFHZJs/ZOI8qesXi+eKEZiepQTs
YCkUcM6lmq+KMlOR9IVVhPBfTTMO4//0cwx0KTSn9J32OXFJ6iAXIGWsazTeXk2j
RTOCijg28o/VsU12O1akrKLA5hHy0HD9OaS18jj8fOUOcEKXWeHd+YTQUsPgZ3s=
=+XzW
-END PGP SIGNATURE-


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
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] Issue with debugging plugin

2009-02-21 Thread Joseph L. Casale
I have an snmp plugin that when ran at the cli works, when setup as a check 
works
for all other hosts, and in only in some scenarios works for this one 
problematic
host. I turn up debugging in the nagios.cfg but it doesn't show what exactly is
happening when it executes the check. Is there any way to see what its actually
executing and the full return so I can try and figure out what is going on?

Thanks!
jlc

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
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] Issue with debugging plugin

2009-02-21 Thread Joseph L. Casale
Is there any way to see what its actually
executing and the full return so I can try and figure out what is going on?

Sorry guys, missed the FAQ: http://www.nagios.org/faqs/viewfaq.php?faq_id=162
But I think there is an error and I also have an issue with it. The FAQ suggests

#!/bin/sh
echo `date`  /tmp/debug_check_http_plugin
echo $*  /tmp/debug_check_http_plugin
/usr/local/nagios/libexec/check_http $*

which I think should have an  after the first $*, not two spaces.

Also, I am using this with an snmp plugin, and when I setup my service with an
argument of !Long Phrase with many words it gets executed properly (I found
my issue) but when the debug check script runs it, the original plugin only
uses the first word when the last line of the script executes? Something to
do with the way in which nagios versus the shell processes the string of cmds?

Any ideas on this one?

Thanks!
jlc

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Nagios 3.0.6 Fails to play sound in browser!

2009-02-21 Thread Jim Avery
2009/1/9 faris farisli...@yahoo.com:
 Hi,

 I am using Nagios 3.0.6
 OS : RHEL4 Update 4

 Problem: after configuring nagios and when accessing it from a client
 mechine (winXP) firefox or IE browser, nagios fails to play sound when there
 is an alert. but if i degrade nagios to a nagios version 2.x sound problem
 is gone! can anybody tell me how to fix this issue in nagios 3.0.6 and
 succefully play alert sound, which is currnetly the stable release.

I don't use the sound alerts myself so am not 100% sure, but I think
there may be a clue in the changelog at
http://www.nagios.org/development/history/nagios-3x.php

[quote]
3.0.5 - 11/04/2008

* Security fix for Cross Site Request Forgery (CSRF) bug reported
by Tim Starling.
--* Sample audio files for CGIs removed from distribution
* Fix for mutliline config file continuation bug
* Minor fix to RPM spec file
* Fix for AIX compiler warnings
* Minor sample config file fix
* Added documentation on CGI security issues
[/quote]

hth,

Jim

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
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] NDOutils and Nagios startup speed

2009-02-21 Thread Jim Avery
2009/1/29 Mathieu Gagné mga...@iweb.com:

 One way to speed up Nagios start when using NDOutils is to tweak
 event_broker_options.

 Here is my new configuration, based on constants defined in
 include/broker.h:

 # BROKER_EVERYTHING  1048575
 # -BROKER_TIMED_EVENTS   2
 # -BROKER_SERVICE_CHECKS 4
 # -BROKER_HOST_CHECKS8

 event_broker_options=1048561

 I personally don't care about raw host/service check results and
 internal scheduling. It's already available in nagios.log and don't need
 to access such data remotely. Also host/service status are already
 available in nagios_hoststatus and nagios_servicestatus.

 There's probably more to disable.


That's interesting.  I've been disabling some of the
data_processing_options in ndomod.cfg as listed in ndomod.h instead up
until now.  I should have probably done what you recommended and
changed the event broker options as that's earlier in the process.  I
just tried like you said - the time saving looks the same but it does
make more sense to do it your way as it's closer to where the data
starts from.


I have tinkered with some of the settings in ndo2db.cfg for how long
to keep data for (I only ever really need the most recent data
myself).  So I now have:

  # Keep timed events for 24 hours
  max_timedevents_age=1440

  # Keep system commands for 24 hours
  max_systemcommands_age=1440

  # Keep service checks for 24 hours
  max_servicechecks_age=1440

  # Keep host checks for 24 hours
  max_hostchecks_age=1440

  # Keep event handlers for 24 hours
  max_eventhandlers_age=1440

This helped hugely on my old Nagios 2 server.  I confess I didn't take
comparative timings when I changed these on my Nagios 3 server.


I just tried adding those indexes you recommended in another post, but
it made little or no difference in my setup, probably because my
tables are so small now anyway!  I have no doubt that if I hadn't
shrunk those tables the indexes would make  quite a difference.

What I'm wondering now is whether it would help if I moved the ndo2db
process off my Nagios server and on to my database server (currently
ndo2db lives on my Nagios server and connects to the database on the
remote db server).  Does anyone have any thoughts on that?

Cheers,

Jim

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
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] added PNP in the default mode; how serious is the performance degradation to warrant a switch to the bulk mode?

2009-02-21 Thread Jim Avery
2009/2/5 Rahul Nabar rpna...@gmail.com:
 So, I finally succeed in configuring PNP for Nagios (whew!!)! It's been a
 long bloody battle but I think I eventually won! :)

 I've just added PNP performance graphs to my 4-switches for now.

 Am a bit hesistant about adding it to all my 300 hosts due to all the
 caeveats about performance and PNP in the default mode. Any other PNP users?
 How many services / hosts are you running PNP performance graphs on? How is
 your performance? Have you been forced to switch to the bulk mode already?

A lot depends on how frequently you collect your data.  If you gather
performance data for ten services on each of those 300 hosts every
minute you're probably asking for trouble, but if you only gather a
couple of metrics from each host every 15 minutes, that's not likely
to break anything.

If you add PNP to all of your 300 hosts and your Nagios server
struggles, I'd definitely consider whether you can reduce your check
frequency and still have all the information you need before messing
about with bulk mode.

I have implemented bulk mode, but only on the local server.  My
four-cpu system is coping okay with 1500 or so rrd files, but a lot of
those are updated using checks at 5 minute, 15 minute or even less
frequent intervals.  I don't think implementing bulk mode locally made
a great deal of difference but expect that offloading the processing
to another server would make a huge difference if I ever get around to
doing that.

If you're worried about performance, I'd also maybe look at how
efficient your plugins are.  If you're running a large number of
checks at frequent intervals using inefficient plugins this can have a
marked detrimental effect on performance.

Cheers,

Jim

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
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] Greetings. Anyone using Oracle Grid Control to send alert data into Nagios?

2009-02-21 Thread Ciro Iriarte
2009/2/19  jim.me...@co.hennepin.mn.us:

 I'm looking to have Oracle grid control send alert data into Nagios. Thus far 
 I've only been doing things via NRPE, as it's a fairly small monitoring
 structure.

 I was wondering if anyone was interfacing to Oracle grid control, what 
 information you were getting from it and how you were getting that information
 into Nagios. And if anyone is using an event handler in conjunction with 
 this, what sorts of things are you using event handlers for?

 James Melin
 Sr. Systems Software Programmer
 Hennepin County Mainframe Services
 612-348-7147


Never used that application, but if it has support for SNMP (I believe
it does), you can write a script to collect data with snmpget
(snmpwalk will give you a list of all you can extract from the agent).
Nagios can also work with SNMP traps.

Regards,


-- 
Ciro Iriarte
http://cyruspy.wordpress.com
--

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
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