Re: [Nagios-users] Nagios Reboot Notification

2009-06-11 Thread Marc Powell

On Jun 11, 2009, at 6:29 PM, Kevin Mitnikc wrote:

> Marc,
>
> I don't think this will work for me ...reason being Nagios will do  
> its check, lets say every minute.  If the server reboots  
> unexpectedly and comes up in between that check period, Nagios will  
> never see the reboot.  I could be wrong, but is that not accurate?

Sure it will. uptime is a counter that increases from 0 to infinity  
(essentially) and resets on reboot. The snmp check I use says that if  
that counter is less than 50,000ms (~8.3 minutes), show a WARNING. If  
you check every minute, you'd see a WARNING status for 7 or 8 minutes,  
then a reset to OK.

> Other application will notify you as soon as the server shuts down  
> or reboots.  Is this because its being monitored differently or  
> different checks are being executed.

I have no idea. I presume that these applications are receiving traps  
from the device (and it is configured to send them) or that it's  
checking _very_ frequently. There's no magic 'some box just rebooted'  
protocol...

>   As a Nagios newb, it seems that Nagios has cycles of running  
> checks that the user defines.

Yes, it does.

> But I would like to try you suggestion.  Will I simply add the  
> define command in the commands.cfg config file and then reference  
> that with the check_command in the hosts.cfg file?

Yes. This presumes that you've configured SNMP on the target device  
and set the read communities to match on both sides.

--
Marc


--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
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 not running

2009-06-11 Thread Mike Chesnut
I have a check that never runs.  The services I've defined that use it 
sit at the top of the scheduling queue, with their next check always 
within a few minutes of the last time I restarted nagios.  This remains 
the case even if I reschedule their next check time in the web interface 
(while I see a line in the log file confirming that I rescheduled it, 
the "next check" does not update and the check is never run).

The check is defined like this:

command_line   /etc/nagios/plugins/check_snmp_byportname.pl --host 
$HOSTADDRESS$ --community mycommunity --port $ARG1$

What's really weird is that if I change it to use Wolfgang Wagner's 
capture_plugin.pl*, then everything works as expected.  I change the 
above to this:

command_line/etc/nagios/plugins/capture_plugin.pl 
/etc/nagios/plugins/check_snmp_byportname.pl --host $HOSTADDRESS$ 
--community mycommunity --port $ARG1$

and then I am able to see the output in /tmp/camptured-plugins.log, the 
status updates in nagios, these checks get cycled through the scheduler 
queue normally, and everything is as it should be.

check_snmp_byportname.pl is a script I've written that's essentially 
just a wrapper around the stock check_snmp.  It works on its own (from 
the command line) as expected, and works when called with 
capture_plugin.pl as a wrapper.

If I then remove the capture_plugin.pl part of that command definition 
and restart (and this is the *only* change I'm making), then this 
particular check goes back to not working (while everything else 
continues to work as normal).

This is on Nagios 2.9 (I'm using the rpm provided by Dag Wieers, on 
CentOS 5.2).

What else can I do to debug this?  I thought that using capture_plugin 
would show me what was wrong with this check, but instead it just showed 
me that nothing is wrong, apparently.  I'm kind of confused at this point.

Sorry this is so long.  I wanted to try to include as much information 
and observations as possible.

Thanks in advance for the help,
Mike

* - from here: http://www.waggy.at/nagios/capture_plugin.htm

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
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 --ssl

2009-06-11 Thread Jon Angliss
On Thu, 11 Jun 2009 16:58:36 -0700,  wrote:

>My check_http doesn't have SSL support:
>
>check_http: Invalid option - SSL is not available
>
>>From online research, I gather that I have to recompile the plugins with
>the SSL option after having SSL installed on the system.
>
>I have the following openssl packages on the Ubuntu server:
>
>$ sudo aptitude search openssl:

libssl-dev


[..]

>Yet, when re-configuring, it still does it without SSL support:
>
>config.status: creating po/Makefile
>--with-apt-get-command: /usr/bin/apt-get
>  --with-ping6-command:
>   --with-ping-command: /bin/ping -n -U -w %d -c %d %s
>   --with-ipv6: yes
>  --with-mysql: no
>--with-openssl: no
> --with-gnutls: no
>   --enable-extra-opts: no
>   --with-perl: /usr/bin/perl
> --enable-perl-modules: no
> --with-cgiurl: /nagios/cgi-bin
>   --with-trusted-path: /bin:/sbin:/usr/bin:/usr/sbin
>
>What am I missing?

libssl-dev should be what you're after.

-- 
Jonathan Angliss



--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
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 --ssl

2009-06-11 Thread Mathieu Gagné
On 6/11/09 7:58 PM, p...@fhri.org wrote:
> My check_http doesn't have SSL support:
>
> What am I missing?

Try installing libssl-dev:
  apt-get install libssl-dev

And compile with:
  --with-openssl

Working fine for me with Debian.

--
Mathieu

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
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 --ssl

2009-06-11 Thread p1
My check_http doesn't have SSL support:

check_http: Invalid option - SSL is not available

>From online research, I gather that I have to recompile the plugins with
the SSL option after having SSL installed on the system.

I have the following openssl packages on the Ubuntu server:

$ sudo aptitude search openssl:
p   aolserver4-nsopenssl  - AOLserver 4 module:
module for SSL mode.
p   libcrypt-openssl-bignum-perl  - Access OpenSSL
multiprecision integer arithmetic lib
p   libcrypt-openssl-dsa-perl - Module which implements
the DSA signature verificati
p   libcrypt-openssl-random-perl  - Access to the OpenSSL
pseudo-random number generator
p   libcrypt-openssl-rsa-perl - Perl module providing
basic RSA functionality
p   libcrypt-openssl-x509-perl- Perl extension to
OpenSSL's X509 API
v   libcurl3-openssl-dev  -
p   libcurl4-openssl-dev  - Development files and
documentation for libcurl (Ope
p   libengine-pkcs11-openssl  - OpenSSL engine for
PKCS#11 modules
v   libopensc-openssl -
p   libopenssl-ruby   - OpenSSL interface for
Ruby
p   libopenssl-ruby1.8- OpenSSL interface for
Ruby 1.8
p   libopenssl-ruby1.9- OpenSSL interface for
Ruby 1.9
p   libxmlsec1-openssl- Openssl engine for the
XML security library
i   openssl   - Secure Socket Layer
(SSL) binary and related cryptog
i A openssl-blacklist - list of blacklisted
OpenSSL RSA keys
p   openssl-blacklist-extra   - list of non-default
blacklisted OpenSSL RSA keys
p   openssl-doc   - Secure Socket Layer
(SSL) documentation
p   pyopenssl-doc - transitional dummy
package
i   python-openssl- Python wrapper around
the OpenSSL library
p   python-openssl-dbg- Python wrapper around
the OpenSSL library (debug ext
p   python-openssl-doc- Documentation for
pyOpenSSL
i   python-pyopenssl  - transitional dummy
package
v   python2.4-openssl -
v   python2.5-openssl -


Yet, when re-configuring, it still does it without SSL support:

config.status: creating po/Makefile
--with-apt-get-command: /usr/bin/apt-get
  --with-ping6-command:
   --with-ping-command: /bin/ping -n -U -w %d -c %d %s
   --with-ipv6: yes
  --with-mysql: no
--with-openssl: no
 --with-gnutls: no
   --enable-extra-opts: no
   --with-perl: /usr/bin/perl
 --enable-perl-modules: no
 --with-cgiurl: /nagios/cgi-bin
   --with-trusted-path: /bin:/sbin:/usr/bin:/usr/sbin

What am I missing?

Thanks,
Paul



--
ea926p

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
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] Read Only CGI Patch

2009-06-11 Thread Mike Seda
All,
I came across the following link recently, and it seems that the Nagios 
Read Only CGI patch is exactly what I need:
http://eluted.net/index.php/blue/comments/read_only_cgi_patch_for_nagios_303_updated

Does anyone know if this patch is compatible with Nagios version 2.9?

The patches seemed to work just fine, but I received errors when running 
the make afterwards.

If it turns out that this patch is incompatible with Nagios version 2.9, 
then can someone provide a link to a compatible Nagios Read Only CGI 
patch version?

Mike

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Nagios Reboot Notification

2009-06-11 Thread Kevin Mitnikc
Marc,

I don't think this will work for me ...reason being Nagios will do its
check, lets say every minute.  If the server reboots unexpectedly and comes
up in between that check period, Nagios will never see the reboot.  I could
be wrong, but is that not accurate?

Other application will notify you as soon as the server shuts down or
reboots.  Is this because its being monitored differently or different
checks are being executed.  As a Nagios newb, it seems that Nagios has
cycles of running checks that the user defines.

But I would like to try you suggestion.  Will I simply add the define
command in the commands.cfg config file and then reference that with the
check_command in the hosts.cfg file?


Thanks,

Kevin M.
--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

[Nagios-users] Nagios CGI and Splunk

2009-06-11 Thread Francois Caen
Hello folks,

Anyone got the CGI integration with Splunk working? I configured the
CGI and links get generated to:
http://mysplunk:8000/?q=mydevice

However, Splunk just shows me its homepage, not a search for "mydevice".

I have a strong feeling the problem is on the Splunk side, but would
appreciate knowing if anyone has this working at all.

Thanks,
-- 
Francois Caen

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
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] Mailing list mod please remove user...

2009-06-11 Thread Andrew Davis
We're seeing this (below) for this account for just about every email 
through the list for more than a week. Would a mod or someone remove 
this address from the mailing list server already? Its quite 
infuriating... :)


 A. Davis
 Email: ncc...@gmail.com

 "There is no limit to what a man can accomplish
  if he doesn't care who gets the credit." - Ronald Reagan



wrote:

Erro ao enviar o email para "nagios-us...@lists. sourceforge. net >> Nagios Users 
mailinglist" 
A caixa postal do destinatario esta cheia. O email foi recusado
The mailbox is full. The email was rejected.
  
--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects___
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 Reboot Notification

2009-06-11 Thread Andrew Davis
Same here... we have a few machines that can reboot in less than 2 
minutes and with Nagios only checking them every 5 minutes or so, some 
reboots can slip through the cracks. We have an "uptime" test that is 
critical at less than 30 minutes and warn at less than 60 seconds, plus 
resolution notifications enabled. So if a machine panic reboots and 
Nagios misses it, withing 5 minutes the uptime test will show uptime of 
less than 30 minutes and send an alert.


 A. Davis
 Email: ncc...@gmail.com

 "There is no limit to what a man can accomplish
  if he doesn't care who gets the credit." - Ronald Reagan



Allan Clark wrote:

Hi!

On Jun 11, 2009, at 3:14 PM, Kevin Mitnikc  wrote:

  

Hello everybody,

I'm new to the boards, so this topic might already be covered.  But  
I'm not exactly sure how to fully search the boards.


Issue at hand:

I have successfully setup Nagios 3 on Ubuntu 8.10.  I have a few  
test servers being monitored, but what I can't get working properly  
are when the servers reboot.  I'm looking for a way to monitor when  
a server reboots or has an unexpected shutdown.


I've tried the host-is-alive and also the ping, but the server comes  
up to fast.  I've also tried just monitoring a service, such as the  
NSClient++ but Nagios doesn't notify me right away once the server  
reboots.


How is everybody monitoring server reboots.  I've used Whats Up Gold  
in the past, and it would notify me right away.  There has to be a  
way to monitor reboots and get a notification of that reboot.  Many  
people have suggested I use scripts, but I don't know how to write  
scripts.



In past, we monitored "uptime < 5 min", there might be a contributed  
script or plugin. I would look, but have spotty Internet right now.


Allan
--
http://LinkedIn.com/in/goldfish

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.

http://p.sf.net/sfu/businessobjects
___
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
  
--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects___
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 Reboot Notification

2009-06-11 Thread Marc Powell

On Jun 11, 2009, at 2:14 PM, Kevin Mitnikc wrote:

> How is everybody monitoring server reboots.  I've used Whats Up Gold  
> in the past, and it would notify me right away.  There has to be a  
> way to monitor reboots and get a notification of that reboot.  Many  
> people have suggested I use scripts, but I don't know how to write  
> scripts.
>
> Any help or direction would be much appreciated!

I monitor uptime via snmp and throw a quick WARNING in the GUI if I  
see it. You'll likely want to adjust the warning and add critical  
thresholds if you want alerts --

define command {
 command_name   check_uptime
 command_line   $USER1$/check_snmp -H $HOSTADDRESS 
$ -C  -o 1.3.6.1.2.1.1.3.0 -l "Uptime" -u "Timeticks" -w  
5:0
 }

--
Marc


--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
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 Reboot Notification

2009-06-11 Thread Allan Clark
Hi!

On Jun 11, 2009, at 3:14 PM, Kevin Mitnikc  wrote:

> Hello everybody,
>
> I'm new to the boards, so this topic might already be covered.  But  
> I'm not exactly sure how to fully search the boards.
>
> Issue at hand:
>
> I have successfully setup Nagios 3 on Ubuntu 8.10.  I have a few  
> test servers being monitored, but what I can't get working properly  
> are when the servers reboot.  I'm looking for a way to monitor when  
> a server reboots or has an unexpected shutdown.
>
> I've tried the host-is-alive and also the ping, but the server comes  
> up to fast.  I've also tried just monitoring a service, such as the  
> NSClient++ but Nagios doesn't notify me right away once the server  
> reboots.
>
> How is everybody monitoring server reboots.  I've used Whats Up Gold  
> in the past, and it would notify me right away.  There has to be a  
> way to monitor reboots and get a notification of that reboot.  Many  
> people have suggested I use scripts, but I don't know how to write  
> scripts.

In past, we monitored "uptime < 5 min", there might be a contributed  
script or plugin. I would look, but have spotty Internet right now.

Allan
--
http://LinkedIn.com/in/goldfish

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
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 future?

2009-06-11 Thread Andreas Ericsson
Michael Friedrich wrote:
> Andreas Ericsson wrote:
>>
>> Well, Merlin *is* a rewrite. It doesn't reuse any code at all from 
>> NDOUtils
>> and it does scale a *lot* better. It replaces NDOUtils for all 
>> GUI-related
>> activities we do at op5, and the database related parts of the GUI code
>> that was previously so arcane it was impossible to debug is now rather
>> straight-forward.
>
> And I really like the idea of it - I just need more time to get a deeper 
> look and also a running testbox with it. But I am pretty sure I will 
> catch on this in a break while developing some dns monitoring tools.
>
>> How can Icinga fit your needs when the underlying model is broken?
>> Sorry, but I just don't get it.
>
> Don't get me wrong but we need to apply and change more than 1 single 
> Nagios-Server over here. Systems are running fine, no need to change 
> that meanwhile. What we need desperately simply is Oracle DB support (it 
> works with NDOUtils Oracle but quite unstable).
> We've decided to relay on the low ressources we can provide to extend 
> the Oracle support by catching up on the most similar system to Nagios. 
> While the NDO remains BETA since 2007 and Ethan did only minor bugfixes 
> this project is going to die ... and the compatibility will die too if 
> Nagios decides to use Merlin instead of NDO - which is a good move - but 
> we have to decide:
> 
> * update Nagios and everything relaying on the DB Model (we have our own 
> tools presenting the data from the DB)
> * stay where we are and hope that nothing will fail
> * search other solutions where we can contribute better and the 
> compatibility will remain
> 

I think I'll sneak a peak at the changes necessary to get NagVis to
support Merlin. I got the feeling when talking to the guy who did it
that the biggest problem lay in understanding what the original query
did before he could write one that got the same data from Merlin. If
that's the case, then perhaps it'll be possible to write some sort of
conversion guide mapping NDOUtils query X to Merlin query Y, both
getting the dataset Z.

>
>> I'd prefer if Merlin can use a driver-agnostic layer. Otherwise one would
>> have to add support for multiple drivers in Merlin.
>>
>> There's also the fact that we lack an oracle database to test against,
>> so whoever adds oracle support to Merlin and Ninja will have to be
>> someone else than me.
>
> As I remarked - I will look up and test Merlin. But meanwhile it should 
> be simple to install a testing stage by yourself. For different 
> Oracle-Queries you may catch up on the NDOUtils Oracle on nagiosforge.com
> 

I'll sneak a peak at them. Thanks. Let me know if you need any help with
getting Merlin up and running. It "works for me", but external testing is
surely required in order to make sure I haven't done something that only
works here.

By the way, kudos to Tom Welsh who's helped me a lot in testing the latest
and greatest Merlin code :-)

-- 
Andreas Ericsson   andreas.erics...@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
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 Reboot Notification

2009-06-11 Thread Hamid Majidy
SNMP traps are most suitable for this purpose.

 

From: Kevin Mitnikc [mailto:teckad...@gmail.com] 
Sent: Thursday, June 11, 2009 12:14 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Nagios Reboot Notification

 

Hello everybody,

 

I'm new to the boards, so this topic might already be covered.  But I'm not
exactly sure how to fully search the boards.

 

Issue at hand:

 

I have successfully setup Nagios 3 on Ubuntu 8.10.  I have a few test
servers being monitored, but what I can't get working properly are when the
servers reboot.  I'm looking for a way to monitor when a server reboots or
has an unexpected shutdown.

 

I've tried the host-is-alive and also the ping, but the server comes up to
fast.  I've also tried just monitoring a service, such as the NSClient++ but
Nagios doesn't notify me right away once the server reboots.

 

How is everybody monitoring server reboots.  I've used Whats Up Gold in the
past, and it would notify me right away.  There has to be a way to monitor
reboots and get a notification of that reboot.  Many people have suggested I
use scripts, but I don't know how to write scripts.

 

Any help or direction would be much appreciated!

 

 

Cheers,

 

Kevin M. 

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects___
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 Reboot Notification

2009-06-11 Thread Curtis LaMasters
I use an uptime script on Windows with NSClient++. I don't know the
second it goes down but I'll know when it comes back up.

Curtis LaMasters
http://www.curtis-lamasters.com
http://www.builtnetworks.com



On Thu, Jun 11, 2009 at 2:14 PM, Kevin Mitnikc wrote:
> Hello everybody,
>
> I'm new to the boards, so this topic might already be covered.  But I'm not
> exactly sure how to fully search the boards.
>
> Issue at hand:
>
> I have successfully setup Nagios 3 on Ubuntu 8.10.  I have a few test
> servers being monitored, but what I can't get working properly are when the
> servers reboot.  I'm looking for a way to monitor when a server reboots or
> has an unexpected shutdown.
>
> I've tried the host-is-alive and also the ping, but the server comes up to
> fast.  I've also tried just monitoring a service, such as the NSClient++ but
> Nagios doesn't notify me right away once the server reboots.
>
> How is everybody monitoring server reboots.  I've used Whats Up Gold in the
> past, and it would notify me right away.  There has to be a way to monitor
> reboots and get a notification of that reboot.  Many people have suggested I
> use scripts, but I don't know how to write scripts.
>
> Any help or direction would be much appreciated!
>
>
> Cheers,
>
> Kevin M.
> --
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> ___
> 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
>

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Nagios Reboot Notification

2009-06-11 Thread Kevin Mitnikc
Hello everybody,

I'm new to the boards, so this topic might already be covered.  But I'm not
exactly sure how to fully search the boards.

Issue at hand:

I have successfully setup Nagios 3 on Ubuntu 8.10.  I have a few test
servers being monitored, but what I can't get working properly are when the
servers reboot.  I'm looking for a way to monitor when a server reboots or
has an unexpected shutdown.

I've tried the host-is-alive and also the ping, but the server comes up to
fast.  I've also tried just monitoring a service, such as the NSClient++ but
Nagios doesn't notify me right away once the server reboots.

How is everybody monitoring server reboots.  I've used Whats Up Gold in the
past, and it would notify me right away.  There has to be a way to monitor
reboots and get a notification of that reboot.  Many people have suggested I
use scripts, but I don't know how to write scripts.

Any help or direction would be much appreciated!


Cheers,

Kevin M.
--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Problem with preflight check

2009-06-11 Thread Kaplan, Andrew H.
Hi there --

I went through the motions of adding the lines in question to the nagios.cfg
file. When I run the preflight
check now, I am able to see all the services and hosts to be monitored. However,
during the flight check the
following errors appear on-screen:

Checking services...
Error: Contact group 'admins' specified in service 'Current Load' for host
'localhost' is not defined anywhere!
Error: Contact group 'admins' specified in service 'Current Users' for host
'localhost' is not defined anywhere!
Error: Contact group 'admins' specified in service 'HTTP' for host 'localhost'
is not defined anywhere!
Error: Contact group 'admins' specified in service 'PING' for host 'localhost'
is not defined anywhere!
Error: Contact group 'admins' specified in service 'Root Partition' for host
'localhost' is not defined anywhere!
Error: Service check command 'check_ssh' specified in service 'SSH' for host
'localhost' not defined anywhere!
Error: Contact group 'admins' specified in service 'SSH' for host 'localhost' is
not defined anywhere!
Error: Service check command 'check_local_swap' specified in service 'Swap
Usage' for host 'localhost' not defined anywhere!
Error: Contact group 'admins' specified in service 'Swap Usage' for host
'localhost' is not defined anywhere!
Error: Contact group 'admins' specified in service 'Total Processes' for host
'localhost' is not defined anywhere!

What file(s) do I need to modify now in order to get past this? Thanks. 



-Original Message-
From: Assaf Flatto [mailto:assaf.fla...@ssp-intl.com] 
Sent: Thursday, June 11, 2009 12:45 PM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Problem with preflight check

Did you check the nagios.cfg for the cfg_file or cfg_dir directives to tell it
what files to load 
and check ?

Assaf

On Thursday 11 June 2009 15:31:59 Kaplan, Andrew H. wrote:
> Hi there --
>
> I copied from out Nagios 2.6 server the .cfg files, with the exception of
> nagios.cfg, to our new Nagios 3.0.6 server
> and placed them in the /usr/local/nagios/etc directory. When I run the
> preflight check, I noticed that the only services
> that being checked are those that are specific to the localhost. What
> file(s) do I need to reconfigure in order to have
> all the services on the all the hosts to be checked, and subsequently
> monitored by the 3.0.6 server? Thanks.
>
>
>
>
> The information in this e-mail is intended only for the person to whom it
> is addressed. If you believe this e-mail was sent to you in error and the
> e-mail contains patient information, please contact the Partners Compliance
> HelpLine at http://www.partners.org/complianceline . If the e-mail was sent
> to you in error but does not contain patient information, please contact
> the sender and properly dispose of the e-mail.



-- 
Assaf Flatto
SSP Ops Team
Linux System Administrator
169 Euston Road, London, NW1 2AE

Along with a few colleagues I am doing The Three Peaks Challenge again 
this year to raise money for The Railway Children.
Please sponsor me by making a donation online, simply click on the link 
below and give via your switch/credit card. Thank you.
http://www.justgiving.com/londonnorththreepeaks




IMPORTANT . this email and the information in it may be confidential, legally
privileged and/or protected by law. It is intended solely for the use of the
person to whom it is addressed. If you are not the intended recipient, please
notify the sender immediately and do not disclose the contents to any other
person, use it for any purpose, or store or copy the information in any medium.
Please also delete all copies of this email and any attachments from your
system.

We cannot guarantee the security or confidentiality of email communications. We
do not accept any liability for losses or damages that you may suffer as a
result of your receipt of this email including but not limited to computer
service or system failure, access delays or interruption, data non-delivery or
mis-delivery, computer viruses or other harmful components.

Copyright in this email and any attachments belong to Select Service Partner UK
Limited. Should you communicate with anyone at Select Service Partner UK Limited
by
email, you consent to us monitoring and reading any such correspondence.

Nothing in this email shall be taken or read as suggesting, proposing or
relating to any agreement concerted practice or other practice that could
infringe UK or EC competition legislation.

Select Service Partner UK Limited is a company registered in England and Wales
(company number 05687183) whose registered office is at 1 The Heights,
Brooklands, Weybridge. Surrey. KT13 0NY
 
 

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businesso

Re: [Nagios-users] disk IO for windows?

2009-06-11 Thread Frater, Greg J
Hi All,

We just started monitoring IO on our Windows servers.  We measure two PerfMon 
counters (using the nsclient++ agent).

System\File Control Operations/sec

Description: File Control Operations/sec is the combined rate of file system 
operations that are neither reads nor writes, such as file system control 
requests and requests for information about device characteristics or status.  
This is the inverse of System: File Data Operations/sec and is measured in 
number of operations perf second.  This counter displays the difference between 
the values observed in the last two samples, divided by the duration of the 
sample interval. 

System\Data Operations/sec

Description: File Data Operations/ sec is the combined rate of read and write 
operations on all logical disks on the computer.  This is the inverse of 
System: File Control Operations/sec.  This counter displays the difference 
between the values observed in the last two samples, divided by the duration of 
the sample interval. 

I'm not sure what good thresholds are for these, currently we have a warning at 
1 and critical at 2 on our test servers.  We've had a couple of servers 
cross those thresholds but I don't have a good sense for what they should be 
yet.  I've never seen any documentation regarding what a Windows box can do (in 
terms of IO).

>From a command line they look like this:

check_nrpe -H $HOSTADDRESS$ -c CheckCounter -a "\\System\\File Data 
Operations/Sec" ShowAll MaxWarn=1 MaxCrit=2 

Regards, 

-greg

-Original Message-
From: Curtis LaMasters [mailto:curtislamast...@gmail.com] 
Sent: Tuesday, June 09, 2009 8:15 PM
To: Anthony Montibello
Cc: Andreas Ericsson; Nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] disk IO for windows?

I use Disk Idle time as an indicator.  Not an original idea :(  I was told to 
mimic the monitoring built into Windows SBS.

Curtis LaMasters
http://www.curtis-lamasters.com
http://www.builtnetworks.com



On Tue, Jun 9, 2009 at 8:27 PM, Anthony Montibello wrote:
> That is partialy right,
>
> The Alt delete thing is To get to TaskManager but only on New versions 
> of windows does it give access to some counter names,
>
> The best place to go is Performance Monitor Since thats on all version 
> of windows since 2000 Control Panel--> Administrative Tools--> 
> Computer Managment--> then Performance Counter on newer systems from 
> Computer Management --> Reliability and performance
> --> Monitoring Tools --> Performance Monitor
> Once you FIND performance Monitor then click the Green + to get into 
> the "add counters"
> Click the Checkbox to Show the Counter description then click arround 
> till you find what you need Look for Disks for Drive stuff,
>
> Tony (Author of NC_NEt)
>
> On Tue, Jun 9, 2009 at 9:24 AM, Andreas Ericsson  wrote:
>>
>> dave stern - e-mail.pluribus.unum wrote:
>> > Anyone know of a plug-in or mechanism to log local disk I/O on windows?
>> >
>> > My nagios server is currently using check_nt to connect to windows 
>> > hosts via nsclient++. I was hoping perhaps COUNTER has something 
>> > buried within it to pull down this info.
>> >
>>
>> There are indeed counters for that, but due to Microsoft's stupidity 
>> the counter-names are different depending on which base-language 
>> you've used for your windows servers.
>>
>> I don't know what they're named for english platforms (or any other 
>> for that matter), but you should be able to view them with that thing 
>> you can pop up when pressing ctrl-alt-del (task manager or whatever 
>> it's called).
>>
>> --
>> Andreas Ericsson                   andreas.erics...@op5.se
>> OP5 AB                             www.op5.se
>> Tel: +46 8-230225                  Fax: +46 8-230231
>>
>> Considering the successes of the wars on alcohol, poverty, drugs and 
>> terror, I think we should give some serious thought to declaring war 
>> on peace.
>>
>>
>> -
>> - Crystal Reports - New Free Runtime and 30 Day Trial Check 
>> out the new simplified licensing option that enables unlimited 
>> royalty-free distribution of the report engine for externally facing 
>> server and web deployment.
>> http://p.sf.net/sfu/businessobjects
>> ___
>> 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
>
>
> --
>  Crystal Reports - New Free Runtime and 30 Day Trial Check out 
> the new simplified licensing option that enables unlimited 
> royalty-free distribution of the report engine for externally facing 
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _

Re: [Nagios-users] Problem with preflight check

2009-06-11 Thread Assaf Flatto
Did you check the nagios.cfg for the cfg_file or cfg_dir directives to tell it 
what files to load 
and check ?

Assaf

On Thursday 11 June 2009 15:31:59 Kaplan, Andrew H. wrote:
> Hi there --
>
> I copied from out Nagios 2.6 server the .cfg files, with the exception of
> nagios.cfg, to our new Nagios 3.0.6 server
> and placed them in the /usr/local/nagios/etc directory. When I run the
> preflight check, I noticed that the only services
> that being checked are those that are specific to the localhost. What
> file(s) do I need to reconfigure in order to have
> all the services on the all the hosts to be checked, and subsequently
> monitored by the 3.0.6 server? Thanks.
>
>
>
>
> The information in this e-mail is intended only for the person to whom it
> is addressed. If you believe this e-mail was sent to you in error and the
> e-mail contains patient information, please contact the Partners Compliance
> HelpLine at http://www.partners.org/complianceline . If the e-mail was sent
> to you in error but does not contain patient information, please contact
> the sender and properly dispose of the e-mail.



-- 
Assaf Flatto
SSP Ops Team
Linux System Administrator
169 Euston Road, London, NW1 2AE

Along with a few colleagues I am doing The Three Peaks Challenge again 
this year to raise money for The Railway Children.
Please sponsor me by making a donation online, simply click on the link 
below and give via your switch/credit card. Thank you.
http://www.justgiving.com/londonnorththreepeaks




IMPORTANT . this email and the information in it may be confidential, legally
privileged and/or protected by law. It is intended solely for the use of the
person to whom it is addressed. If you are not the intended recipient, please
notify the sender immediately and do not disclose the contents to any other
person, use it for any purpose, or store or copy the information in any medium.
Please also delete all copies of this email and any attachments from your
system.

We cannot guarantee the security or confidentiality of email communications. We
do not accept any liability for losses or damages that you may suffer as a
result of your receipt of this email including but not limited to computer
service or system failure, access delays or interruption, data non-delivery or
mis-delivery, computer viruses or other harmful components.

Copyright in this email and any attachments belong to Select Service Partner UK
Limited. Should you communicate with anyone at Select Service Partner UK 
Limited by
email, you consent to us monitoring and reading any such correspondence.

Nothing in this email shall be taken or read as suggesting, proposing or
relating to any agreement concerted practice or other practice that could
infringe UK or EC competition legislation.

Select Service Partner UK Limited is a company registered in England and Wales
(company number 05687183) whose registered office is at 1 The Heights, 
Brooklands, Weybridge. Surrey. KT13 0NY
 
 

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Problem with preflight check

2009-06-11 Thread Kaplan, Andrew H.
Hi there --

I copied from out Nagios 2.6 server the .cfg files, with the exception of
nagios.cfg, to our new Nagios 3.0.6 server
and placed them in the /usr/local/nagios/etc directory. When I run the preflight
check, I noticed that the only services
that being checked are those that are specific to the localhost. What file(s) do
I need to reconfigure in order to have
all the services on the all the hosts to be checked, and subsequently monitored
by the 3.0.6 server? Thanks.




The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.
--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects___
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 future?

2009-06-11 Thread Michael Friedrich
Hi there,

Andreas Ericsson wrote:
>
> Merlin has no table prefix. We feel that if you're managing the network
> monitoring server, you have the right to demand a separate database for
> it of the DBA's. table-prefixes are quite handy for things such as forums
> and blogs which are sometimes hosted by home-users on free hosting sites
> where each user gets full access to one database but has no possibility
> to create more. I find it extremely unlikely that Nagios+Merlin will ever
> be installed in an environment where that is the case.

Jep, point taken. I dunno how much Ethan had the experience while coding 
the NDO but it seems the design was done to fit everything which could 
prohibit problems. More or less without regards of the known problems 
right know.
>
> Well, Merlin *is* a rewrite. It doesn't reuse any code at all from 
> NDOUtils
> and it does scale a *lot* better. It replaces NDOUtils for all 
> GUI-related
> activities we do at op5, and the database related parts of the GUI code
> that was previously so arcane it was impossible to debug is now rather
> straight-forward.
And I really like the idea of it - I just need more time to get a deeper 
look and also a running testbox with it. But I am pretty sure I will 
catch on this in a break while developing some dns monitoring tools.
> How can Icinga fit your needs when the underlying model is broken?
> Sorry, but I just don't get it.
Don't get me wrong but we need to apply and change more than 1 single 
Nagios-Server over here. Systems are running fine, no need to change 
that meanwhile. What we need desperately simply is Oracle DB support (it 
works with NDOUtils Oracle but quite unstable).
We've decided to relay on the low ressources we can provide to extend 
the Oracle support by catching up on the most similar system to Nagios. 
While the NDO remains BETA since 2007 and Ethan did only minor bugfixes 
this project is going to die ... and the compatibility will die too if 
Nagios decides to use Merlin instead of NDO - which is a good move - but 
we have to decide:

* update Nagios and everything relaying on the DB Model (we have our own 
tools presenting the data from the DB)
* stay where we are and hope that nothing will fail
* search other solutions where we can contribute better and the 
compatibility will remain

The fork is really good, Ethan is awaken, community is more important 
and development is getting moving again. Let's see what time will bring 
and where we will end :-)
>
> Looks simple enough. Perhaps it'd be worthwhile to test the experimental
> Oracle support in Kohana as well to see if we can get Merlin+Ninja up
> and running fairly quickly. Assuming PHP has Oracle support (which it
> does), I really don't see any issues with that here.
Only compiling instead of package installs, but that shouldn't be that 
big problem for sysadmins.
> I'd prefer if Merlin can use a driver-agnostic layer. Otherwise one would
> have to add support for multiple drivers in Merlin.
>
> There's also the fact that we lack an oracle database to test against,
> so whoever adds oracle support to Merlin and Ninja will have to be
> someone else than me.
As I remarked - I will look up and test Merlin. But meanwhile it should 
be simple to install a testing stage by yourself. For different 
Oracle-Queries you may catch up on the NDOUtils Oracle on nagiosforge.com

Kind regards,
Michael

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
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] nagvis requires ndoutils; how stable is ndoutils?

2009-06-11 Thread Andreas Ericsson
Rahul Nabar wrote:
> I was tempted to install Nagvis but unfortunately it needs Ndoutils
> which I am not using so far.
> 
> I could install ndoutils but am afraid about breaking my production
> Nagios environment. Especially because of the warning in the ndoutils
> README about the code being alpha/beta quality.
> 
> Any ndoutils users? How stable is it? Any pitfalls while installation?
> 
> Or should I avoid ndoutils entirely? Is there any workaround to get
> Nagvis working?
> 

Starting with NagVis 1.4, NagVis supports the Merlin database format
so you can use that if you can't get NDOUtils to work.

-- 
Andreas Ericsson   andreas.erics...@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
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] nagvis requires ndoutils; how stable is ndoutils?

2009-06-11 Thread Rahul Nabar
On Wed, Jun 10, 2009 at 2:56 AM, Giorgio Zarrelli wrote:
> it works. It's not the best, it has some overhead problems with MySql,
> causing some taxing utilization of the cpu, but it works. Sometimes you
> can fall in some indexing problems, but you can workaround them with this
> sql clause:

Thanks Giorgio and Marc-André. I think those comments confirm what I
thought. It is somewhat unstable and unfit to push into a production
environment. Nagvis did look so cool otherwise though!

Support also seems sort of iffy. I was toying with using the ndo2fs
backend but there is very little documentation. Besides usually Nagios
questions generate a lot of responses on the list but the relative
silence for my Nagvis questions seems to say that not so many users
are trying it yet.

-- 
Rahul

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
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