[Nagios-users] check_openmanage Dell R410

2009-11-02 Thread David B.
Hi nagios list,

Like a lot of people, i'm using this lovely nagios plugin to check
openmanage (http://folk.uio.no/trondham/software/check_openmanage.html).
This one seems not to work well on Dell R410.
Did someone notice this too ?

Plugin always return the RAID data, even if i want to check something else.
check_openmanage (version 3.5.1)
check_openmanage_batteries - check_openmanage
check_openmanage_cpu - check_openmanage
check_openmanage_fans - check_openmanage
check_openmanage_memory - check_openmanage
check_openmanage_power - check_openmanage
check_openmanage_storage - check_openmanage
check_openmanage_temperature - check_openmanage

Ex :
# ./check_openmanage_batteries
OK - System: 'PowerEdge R410', SN: 'XX', hardware working fine, 1
logical drives, 4 physical drives

Please let me know if i can help.

Have a nice day.
David.

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
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_openmanage Dell R410

2009-11-02 Thread Ortner, Gerald
looks like the symlink function isn't included anymore
you can use --only in the command definition instead
e.g. --only=batteries 

-Ursprüngliche Nachricht-
Von: David B. [mailto:haazel...@gmail.com] 
Gesendet: Montag, 02. November 2009 11:49
An: nagios-users@lists.sourceforge.net
Betreff: [Nagios-users] check_openmanage  Dell R410

Hi nagios list,

Like a lot of people, i'm using this lovely nagios plugin to check
openmanage (http://folk.uio.no/trondham/software/check_openmanage.html).
This one seems not to work well on Dell R410.
Did someone notice this too ?

Plugin always return the RAID data, even if i want to check something else.
check_openmanage (version 3.5.1)
check_openmanage_batteries - check_openmanage
check_openmanage_cpu - check_openmanage
check_openmanage_fans - check_openmanage
check_openmanage_memory - check_openmanage
check_openmanage_power - check_openmanage
check_openmanage_storage - check_openmanage
check_openmanage_temperature - check_openmanage

Ex :
# ./check_openmanage_batteries
OK - System: 'PowerEdge R410', SN: 'XX', hardware working fine, 1
logical drives, 4 physical drives

Please let me know if i can help.

Have a nice day.
David.

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
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

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
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] Restarts resetting soft critical states

2009-11-02 Thread Andreas Ericsson
On 10/29/2009 08:50 PM, Frost, Mark {PBG} wrote:
 You think you know an application and every once in a while you get a 
 surprise...

 Both the reporting server and the distributed node share the same attributes 
 for retention and soft states:

 soft_state_dependencies=0
 passive_host_checks_are_soft=1
 retain_state_information=1
 use_retained_program_state=1
 use_retained_scheduling_info=1
 retained_host_attribute_mask=0
 retained_service_attribute_mask=0
 retained_process_host_attribute_mask=0
 retained_process_service_attribute_mask=0
 retained_contact_host_attribute_mask=0
 retained_contact_service_attribute_mask=0

 While I would assume the restarts would disrupt Nagios a bit what with
 having to do start-time tasks again, I would not have expected that it
  would start over with the status of some checks.

 What am I missing here?


It seems you haven't grasped how bitmasks work. When you set the mask to 0,
you essentially tell it to not let anything through. Set them to -1, or
leave them at the default values and you'll get the kind of state retention
you want.

-- 
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.

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
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_procs

2009-11-02 Thread pinoyskull
Hi,

Is it possible to exclude process(es) in check_procs plugin?

ex. I have 3 processes

aaa
aaa_monitor
tail -f aaa_monitor.log


then I monitor it in check_procs plugin
check_procs -c 2:2 -a aaa

in this case it will give me critical alert since it will detect the 3 
processes, and the important process to monitor is only aaa and 
aaa_monitor, i want to exclude aaa_monitor.log



--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
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_openmanage Dell R410

2009-11-02 Thread David B.
Thank you for this Gerald. All is ok now. :)

Ortner, Gerald a écrit :
 looks like the symlink function isn't included anymore
 you can use --only in the command definition instead
 e.g. --only=batteries 

 -Ursprüngliche Nachricht-
 Von: David B. [mailto:haazel...@gmail.com] 
 Gesendet: Montag, 02. November 2009 11:49
 An: nagios-users@lists.sourceforge.net
 Betreff: [Nagios-users] check_openmanage  Dell R410

 Hi nagios list,

 Like a lot of people, i'm using this lovely nagios plugin to check
 openmanage (http://folk.uio.no/trondham/software/check_openmanage.html).
 This one seems not to work well on Dell R410.
 Did someone notice this too ?

 Plugin always return the RAID data, even if i want to check something else.
 check_openmanage (version 3.5.1)
 check_openmanage_batteries - check_openmanage
 check_openmanage_cpu - check_openmanage
 check_openmanage_fans - check_openmanage
 check_openmanage_memory - check_openmanage
 check_openmanage_power - check_openmanage
 check_openmanage_storage - check_openmanage
 check_openmanage_temperature - check_openmanage

 Ex :
 # ./check_openmanage_batteries
 OK - System: 'PowerEdge R410', SN: 'XX', hardware working fine, 1
 logical drives, 4 physical drives

 Please let me know if i can help.

 Have a nice day.
 David.
   


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
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_openmanage Dell R410

2009-11-02 Thread Trond Hasle Amundsen
Ortner, Gerald gerald.ort...@gespag.at writes:

 looks like the symlink function isn't included anymore you can use
 --only in the command definition instead e.g. --only=batteries

Yes, the symlink stuff was messy and unnecessary. I removed it
completely and replaced the functionality with the '--only' option. To
get the same behaviour in Nagios as before, replace the command in your
Nagios config from (example):

  check_openmanage_cpu

to this:

  check_openmanage --only cpu

You can also mimic the symlink stuff with little shell wrappers:

  $ cat ./check_openmanage_cpu
  #!/bin/sh
  exec /usr/lib64/nagios/plugins/check_openmanage --only cpu $*

Example run:

  $ ./check_openmanage_cpu -H login1
  PROCESSORS OK - 2 processors checked

Cheers,
-- 
Trond H. Amundsen t.h.amund...@usit.uio.no
Center for Information Technology Services, University of Oslo

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
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] plugin information

2009-11-02 Thread shadih rahman
 I pose this question in the past but I apologize for the same question
 again.  However I saw some discussion on the list about check_mk.  I am
 using nrpe now to monitor remote host.  Do you think move to check_mk is the
 right action to take?  Architecturally it sounds appealing, although I did
 not delve into the code yet.  Can someone please advise on this.  Thanks


 On Mon, Jul 20, 2009 at 11:45 AM, Marc Powell m...@ena.com wrote:


 On Jul 20, 2009, at 10:28 AM, shadih rahman wrote:

   Is nagios official page going to support this in the future?
  Thanks in avance
 
  http://mathias-kettner.de/check_mk

 Probably not, for a number of reasons, not least of which is that it
 isn't developed by Ethan, et al.

 First I've heard of it personally so it's use is likely to be limited.

 --
 Marc


 --
 Enter the BlackBerry Developer Challenge
 This is your chance to win up to $100,000 in prizes! For a limited time,
 vendors submitting new applications to BlackBerry App World(TM) will have
 the opportunity to enter the BlackBerry Developer Challenge. See full
 prize
 details at: http://p.sf.net/sfu/Challenge
 ___
 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




 --
 Cordially,
 Shadhin Rahman




-- 
Cordially,
Shadhin Rahman
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
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] MySQL-plugin : how to use it ??

2009-11-02 Thread jonas kellens
export PERL5LIB=/usr/local/nagios/libexec/ solved the problem.

Jonas.


  The file is already there :
  
  bash-3.2# locate utils.pm
  /usr/local/nagios/libexec/utils.pm
  /usr/src/nagios-plugins-1.4.14/contrib/packet_utils.pm
  /usr/src/nagios-plugins-1.4.14/plugins-scripts/utils.pm
  /usr/src/nagios-plugins-1.4.14/plugins-scripts/utils.pm.in
  
  I guess editing the path is the thing to do :
  nagios/plugins /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi 
  /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl 
  /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi 
  /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl 
  /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8
  
  Jonas.


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

[Nagios-users] AUTO: F Thakura is out of the office

2009-11-02 Thread F Thakura

I am out of the office until 11/16/2009.

I will be out of the office starting  27/10/2009 and will not return until
16/11/2009.

I will have limited access to mails. Please get in touch with my colleagues
for urgent matters Mohandas K (mohanda...@tcs.com) or Pushkar Patil
(pushkar.pa...@tcs.com)


Note: This is an automated response to your message  Re: [Nagios-users]
check_openmanage  Dell R410 sent on 11/2/09 19:18:46.

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

=-=-=
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you




--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
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] nrpe[6183]: [ID 813741 daemon.error] Error: Could not complete SSL handshake. 1

2009-11-02 Thread akp geek
Hi -

I am getting the following error

nrpe[6183]: [ID 813741 daemon.error] Error: Could not complete SSL
handshake. 1

This is the message from /var/adm/messages on solaris 10

I am running the following command from the server where I have installed
nagios

./check_nrpe -H 10.xxx.xxx.xx and I get the above message

when I do $ netstat -a | grep nrpe

localhost.nrpe *.*0  0 49152  0 LISTEN
  *.nrpe   *.*0  0 49152  0 LISTEN

Any clues where things are going wrong. Struggling on this issue since 2
days

Regards
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
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 check_asterisk_peers needs rights to question the Asterisk-server

2009-11-02 Thread jonas kellens
When executing the following command :

[r...@nagios ~]# /usr/local/nagios/libexec/check_nrpe -H ip_address -c
check_asterisk_peers

I get the following output :

NRPE: Unable to read output

Somewhere Nagios does not have enough rights to question Asterisk about
the sip peers.

These are the rights of the check_nrpe on the Nagios Server :

[r...@nagios ~]# ls -l /usr/local/nagios/libexec/check_nrpe
-rwxrwxr-x 1 nagios nagios 58017 Oct 31
11:40 /usr/local/nagios/libexec/check_nrpe

These are the rights of the plugin that questions about the SIP-peers on
the Asterisk-server :

bash-3.2# ls -l /usr/local/nagios/libexec/nagisk.pl
-rwxr-x--- 1 nagios nagios 4163 Nov  2
17:12 /usr/local/nagios/libexec/nagisk.pl

The NRPE-plugin on the Asterisk-server is part of the Xinetd-proces.

Asterisk himself is currently running as the root-user.

Question : I'm confused about which proces/plugin I need to give more
rights so that the Asterisk-server can be questioned about its
sip-peers. 

Jonas.
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
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] nrpe[6183]: [ID 813741 daemon.error] Error: Could not complete SSL handshake. 1

2009-11-02 Thread jonas kellens
I am running the nrpe-plugin as part of xinetd. I had the same issue
till I made the following setting in /etc/xinetd.d/nrpe :

service nrpe
{
flags   = REUSE
socket_type = stream
port= 5666
wait= no
user= nagios
group   = nagios
server  = /usr/local/nagios/bin/nrpe
server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd
log_on_failure  += USERID
disable = no
only_from   = 127.0.0.1 ip_of_nagios
}

The only_from-param needs an IP-address of the monitoring server to
match the IP-address.

Don't know if this helps your case...

Jonas.


On Mon, 2009-11-02 at 11:29 -0500, akp geek wrote:

 
 Hi -
 
 
 
 I am getting the following error 
 
 
 nrpe[6183]: [ID 813741 daemon.error] Error: Could not complete SSL
 handshake. 1
 
 
 This is the message from /var/adm/messages on solaris 10
 
 
 I am running the following command from the server where I have
 installed nagios
 
 
 ./check_nrpe -H 10.xxx.xxx.xx and I get the above message
 
 
 when I do $ netstat -a | grep nrpe
 
 
 localhost.nrpe *.*0  0 49152  0
 LISTEN
   *.nrpe   *.*0  0 49152  0
 LISTEN
 
 
 Any clues where things are going wrong. Struggling on this issue since
 2 days
 
 
 Regards
 
 --
 Come build with us! The BlackBerry(R) Developer Conference in SF, CA
 is the only developer event you need to attend this year. Jumpstart your
 developing skills, take BlackBerry mobile applications to market and stay 
 ahead of the curve. Join us from November 9 - 12, 2009. Register now!
 http://p.sf.net/sfu/devconference
 ___ 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
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
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] Monitoring Active Directory

2009-11-02 Thread C. Bensend

Hey folks,

   I just started a new job, and my immediate task is to build a
new Nagios system for them.  I love my new job...  :)

   They would like to monitor Active Directory OUs, so that Nagios
alerts if any of a certain group of OUs are moved/renamed/deleted.
Apparently, this happens every so often due to the number of
admins that need rights to the AD structure.

   So.  I checked on the exchange site and did some googling, but
have not found any community plugins that will allow me to specify
an OU and alert if it's not present.

Anyone have something in their toolbox for this?

Thanks!

Benny


-- 
It's not all about getting up and putting four slices of kickass
in a two slice toaster. -- ark86, on Fazed.net



--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
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 disfunctional , perhaps due to time change ?

2009-11-02 Thread shadih rahman
All
Is there an official patch for this?  can someone please advise on this?
Thanks

On Mon, Oct 26, 2009 at 1:36 PM, Ton Voon ton.v...@opsera.com wrote:


 On 26 Oct 2009, at 12:53, Matthias Flacke wrote:


 this change is causing the wrong reschedule:

 http://nagios.cvs.sourceforge.net/viewvc/nagios/nagios/base/utils.c?r1=1.236r2=1.237view=patch

 It has been applied on 15th of January 2009 and introduced some
 statements

 t-tm_isdst=-1;

 into base/utils.c.

 Affected are all Nagios versions = 3.1.0.

 I could reproduce it here: if the patch above is backed out, the
 scheduling behaves correctly.



 I've managed to get a libtap test case with the failure now. As you
 correctly say, removing the t-tm_isdst=-1 in utils.c fixes it.

 However, the fact it works is lucky.

 The check is that the scheduled time is between a date_range_start and a
 date_range_end. This date_range_end is based on the timeperiod definitions.
 However, an end point of 00:00 is calculated as 24*60*60. Obviously, this is
 wrong on the day that the clocks go back as there are 25 hours in that day.

 So removing tm_isdst gets the calculation for the epoch time wrong, but
 that luckily works because the time falls within the 24 hour period.

 I've applied the patch to remove that single tm_isdst.

 Tests are also added now, for this specific issue.

 Long term, I think it is correct that the isdst flag be set, but there are
 other problems that are lurking in the code, such as the calculation for the
 next appropriate time.

 Any comments?

 Ton




 --
 Come build with us! The BlackBerry(R) Developer Conference in SF, CA
 is the only developer event you need to attend this year. Jumpstart your
 developing skills, take BlackBerry mobile applications to market and stay
 ahead of the curve. Join us from November 9 - 12, 2009. Register now!
 http://p.sf.net/sfu/devconference
 ___
 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




-- 
Cordially,
Shadhin Rahman
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
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] Monitoring Active Directory

2009-11-02 Thread Natxo Asenjo
On Mon, Nov 2, 2009 at 5:56 PM, C. Bensend be...@bennyvision.com wrote:


 Hey folks,

   I just started a new job, and my immediate task is to build a
 new Nagios system for them.  I love my new job...  :)

 :-)


   They would like to monitor Active Directory OUs, so that Nagios
 alerts if any of a certain group of OUs are moved/renamed/deleted.
 Apparently, this happens every so often due to the number of
 admins that need rights to the AD structure.

   So.  I checked on the exchange site and did some googling, but
 have not found any community plugins that will allow me to specify
 an OU and alert if it's not present.


I do not think there is something like that, but it is not difficult to make
your own. Use dsquery to see if an ou, user or group exists, write your own
plugin and execute it with nrpe. You can use your favorite scripting
language for this.

-- 
natxo asenjo
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
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] Monitoring Active Directory

2009-11-02 Thread Lane Williams
You can also use the ldapsearch command from your linux based nagios
server to query your active directory server. Same as below, use your
favorite scripting language to generate the check.

 

Lane Williams Jr. | Senior System Administrator | Cellular South

1018 Highland Colony Parkway | Suite No. 200| Ridgeland, MS  39157

Desk (601-974-7713) | Wireless (769-798-7713)

www.cellularsouth.com http://www.cellularsouth.com/ 

 



From: Natxo Asenjo [mailto:natxo.ase...@gmail.com] 
Sent: Monday, November 02, 2009 1:03 PM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Monitoring Active Directory

 

On Mon, Nov 2, 2009 at 5:56 PM, C. Bensend be...@bennyvision.com
wrote:


Hey folks,

  I just started a new job, and my immediate task is to build a
new Nagios system for them.  I love my new job...  :)

:-)
 

  They would like to monitor Active Directory OUs, so that
Nagios
alerts if any of a certain group of OUs are
moved/renamed/deleted.
Apparently, this happens every so often due to the number of
admins that need rights to the AD structure.

  So.  I checked on the exchange site and did some googling, but
have not found any community plugins that will allow me to
specify
an OU and alert if it's not present.


I do not think there is something like that, but it is not difficult to
make your own. Use dsquery to see if an ou, user or group exists, write
your own plugin and execute it with nrpe. You can use your favorite
scripting language for this.


-- 
natxo asenjo

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
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] Monitoring Active Directory

2009-11-02 Thread Morris, Patrick
The stock check_ldap may work, though you'd need to set up a separate 
check for each of the objects you're concerned about.

C. Bensend wrote:
 Hey folks,

I just started a new job, and my immediate task is to build a
 new Nagios system for them.  I love my new job...  :)

They would like to monitor Active Directory OUs, so that Nagios
 alerts if any of a certain group of OUs are moved/renamed/deleted.
 Apparently, this happens every so often due to the number of
 admins that need rights to the AD structure.

So.  I checked on the exchange site and did some googling, but
 have not found any community plugins that will allow me to specify
 an OU and alert if it's not present.

 Anyone have something in their toolbox for this?

 Thanks!

 Benny


   


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
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] using snmp oid

2009-11-02 Thread Ricardo Delgado
Hi, i need use snmp to monitoring ups

i define

1.- in SERVICES_NAGIOS2.CFG


define service{
   use generic-service
   host_name my-ups
   service_description Uptime
   is_volatile 0
   check_period 24x7
   max_check_attempts 4
   normal_check_interval 8
   retry_check_interval 1
   contact_groups admins
   notification_interval 120
   notification_period 24x7
   notification_options c,r
   check_command check_snmp!.1.3.6.1.2.1.1.3.0 # OID uptime
}

in COMMANDS.CFG 

define command{
   command_name check_snmp
   command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C readonly -o $ARG1$
}

in each ups ej UPS1.CFG?


define service{
  usegeneric-service ; Name of service template to use
  host_name   UPS1
  service_description UPTIME   check_command   
check_snmp 
  }

   Is correct?




---

\|||/
( @   @ )
--oOOo-( )---oOOo
| Ricardo Delgado   |
|   |
|http://delgado.homelinux.net|
|   | 
|   |
|   |
|   |
 ---0ooo-
ooo0(   )
(  ) ) /
 \ ((_/
  \_)

Por Favor, no hagas Top Posting
http://es.wikipedia.org/wiki/Top-posting

Por Favor, sin formato html
http://es.wikipedia.org/wiki/Netiquette

Sin formatos propietarios.





  Yahoo! Cocina

Encontra las mejores recetas con Yahoo! Cocina.


http://ar.mujer.yahoo.com/cocina/

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
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 list of devices/IP addresses

2009-11-02 Thread Gareth Fletcher
Hi everyone,

I have a simple script that runs every hour and dumps the current hostnames 
into a MySQL table (to reconcile with our asset database).

cat /usr/local/Nagios/var/objects.cache | grep -i host_name | cut -f 3 | sort | 
uniq  $HOSTLIST
cat $HOSTLIST |while true
do read LINE || break
echo INSERT INTO $SQLTBL VALUES ('$LINE');\
|mysql -u$SQLUSER -p$SQLPASS $SQLDB
done;
exit 0

As is always the case in IT now we want to extend this and insert the IP 
addresses into this table (so we can build a DNS zone with our Nagios hosts).

Does anyone know a way I can easily grab the IP address of a given hostname? Or 
else an easier way to get all the hostnames/IPs?

Any help would be greatly appreciated!

Cheers
Gareth
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
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 list of devices/IP addresses

2009-11-02 Thread Max
On Mon, Nov 2, 2009 at 5:05 PM, Gareth Fletcher
gareth.fletc...@onenet.co.nz wrote:
 As is always the case in IT now we want to extend this and insert the IP
 addresses into this table (so we can build a DNS zone with our Nagios
 hosts).



 Does anyone know a way I can easily grab the IP address of a given hostname?
 Or else an easier way to get all the hostnames/IPs?

* You can parse objects.cache
* You could switch to NDO or merlin
* You could install and use Nagios2JSON as that exposes host and
service configuration information.

- Max

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
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] Monitoring Active Directory

2009-11-02 Thread Gareth Fletcher
What functional level are you at? In 2008 you can protect OUs in AD from being 
moved etc. It's annoyingly easy it is to accidently click/drag OUs in AD

You could also use nsclient++ on your domain controller and run a power shell 
script to compare list of OU's

Cheers
Gareth


-Original Message-
From: C. Bensend [mailto:be...@bennyvision.com] 
Sent: Tuesday, 3 November 2009 5:56 a.m.
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Monitoring Active Directory


Hey folks,

   I just started a new job, and my immediate task is to build a new Nagios 
system for them.  I love my new job...  :)

   They would like to monitor Active Directory OUs, so that Nagios alerts if 
any of a certain group of OUs are moved/renamed/deleted.
Apparently, this happens every so often due to the number of admins that need 
rights to the AD structure.

   So.  I checked on the exchange site and did some googling, but have not 
found any community plugins that will allow me to specify an OU and alert if 
it's not present.

Anyone have something in their toolbox for this?

Thanks!

Benny


--
It's not all about getting up and putting four slices of kickass
in a two slice toaster. -- ark86, on Fazed.net



--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
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

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
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 stopped checking most of my services!

2009-11-02 Thread Les Fenison
I had nagios working great.  Checking 6 hosts and about 85 services.  
Then suddenly, all services on all hosts except one stopped checking.  
The next scheduled check is about 24 hours from the last check.  I had 
been checking every 5 minutes.


Restarting nagios didn't help.I am using a gui NagioSQL to edit my 
configuration files so I suspect it did something to me but I have no 
clue where to look except where I have already looked.


What can cause nagios to just stop checking everything like that or to 
randomly switch to every 24 hours rather than the configured every 5 
minutes?


I am having to manually do force checks to get it to check.

Here are some things I have checked...

Hosts  check_interval is 5, retry_interval is 1
Services  check_interval is 10, retry_interval is 2

So where could Nagios be getting the idea that it is suppose to be every 
24 hours?  



--

Les Fenison
Delta Technical Services
www.DeltaTechnicalServices.com
l...@deltatechnicalservices.com
503-766-0076
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
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 stopped checking most of my services!

2009-11-02 Thread Andy Howell
Les Fenison wrote:
 I had nagios working great.  Checking 6 hosts and about 85 services.  
 Then suddenly, all services on all hosts except one stopped checking.  
 The next scheduled check is about 24 hours from the last check.  I had 
 been checking every 5 minutes.
 
 Restarting nagios didn't help.I am using a gui NagioSQL to edit my 
 configuration files so I suspect it did something to me but I have no 
 clue where to look except where I have already looked.
 
 What can cause nagios to just stop checking everything like that or to 
 randomly switch to every 24 hours rather than the configured every 5 
 minutes?
 
 I am having to manually do force checks to get it to check.
 
 Here are some things I have checked...
 
 Hosts  check_interval is 5, retry_interval is 1
 Services  check_interval is 10, retry_interval is 2
 
 So where could Nagios be getting the idea that it is suppose to be every 
 24 hours?  
 

I had the same experience yesterday. Maybe daylight savings related? At about 
11pm, all 
the services were scheduled for 11pm the following day. I figured it was 
something I did 
wrong. I noticed that next_check time in /var/log/nagios/retention.dat was 
wrong. I 
renamed the file and restarted nagios. It worked fine after that.

I using version 3.2.

Regards,

Andy


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
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 stopped checking most of my services!

2009-11-02 Thread Seth Simmons
Funny you mention this; I just had the same problem.

 

I'm looking at my hosts and of 85 of them, 82 was last checked about
11pm Sunday and the next scheduled check is 11pm Monday (about 90 min
from now).

I also have a number of services that are not scheduled to be checked
again until 11pm.  Most host and service checks are 5 min; some are
15/60 min.

 

I'm not using NagioSQL.

 

For example, here is one of my free space checks that should run every
15 min.

 

Current Status:   OK   (for 31d 8h 26m 23s) 

Status Information:DISK OK - free space: / 1532 MB (80% inode=95%): 

Performance Data:/=379MB;1813;1914;0;2015 

Current Attempt:1/3  (HARD state)

Last Check Time:11-01-2009 22:52:06

Check Type:ACTIVE 

Check Latency / Duration:0.147 / 0.057 seconds 

Next Scheduled Check:  11-02-2009 23:00:00

 

 

From: Les Fenison [mailto:l...@deltatechnicalservices.com] 
Sent: Monday, November 02, 2009 9:09 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Nagios stopped checking most of my services!

 

I had nagios working great.  Checking 6 hosts and about 85 services.
Then suddenly, all services on all hosts except one stopped checking.
The next scheduled check is about 24 hours from the last check.  I had
been checking every 5 minutes. 

Restarting nagios didn't help.I am using a gui NagioSQL to edit my
configuration files so I suspect it did something to me but I have no
clue where to look except where I have already looked.

What can cause nagios to just stop checking everything like that or to
randomly switch to every 24 hours rather than the configured every 5
minutes?

I am having to manually do force checks to get it to check.

Here are some things I have checked...

Hosts  check_interval is 5, retry_interval is 1
Services  check_interval is 10, retry_interval is 2

So where could Nagios be getting the idea that it is suppose to be every
24 hours?   



-- 



Les Fenison
Delta Technical Services
www.DeltaTechnicalServices.com
l...@deltatechnicalservices.com
503-766-0076 

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
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 stopped checking most of my services!

2009-11-02 Thread Les Fenison
Well, so far 3 of us with the same problem on the same day.  I have to 
believe it is daylight savings time related. 

My fix is to go click on each service one by one and reschedule.  Then 
they start checking normally again.


I wonder if there is anyway to force an automatic reschedule of all 
services and hosts for next year when this happens again?


Andy Howell wrote:

Les Fenison wrote:
I had nagios working great.  Checking 6 hosts and about 85 services.  
Then suddenly, all services on all hosts except one stopped 
checking.  The next scheduled check is about 24 hours from the last 
check.  I had been checking every 5 minutes.


Restarting nagios didn't help.I am using a gui NagioSQL to edit 
my configuration files so I suspect it did something to me but I have 
no clue where to look except where I have already looked.


What can cause nagios to just stop checking everything like that or 
to randomly switch to every 24 hours rather than the configured every 
5 minutes?


I am having to manually do force checks to get it to check.

Here are some things I have checked...

Hosts  check_interval is 5, retry_interval is 1
Services  check_interval is 10, retry_interval is 2

So where could Nagios be getting the idea that it is suppose to be 
every 24 hours? 


I had the same experience yesterday. Maybe daylight savings related? 
At about 11pm, all the services were scheduled for 11pm the following 
day. I figured it was something I did wrong. I noticed that 
next_check time in /var/log/nagios/retention.dat was wrong. I 
renamed the file and restarted nagios. It worked fine after that.


I using version 3.2.

Regards,

Andy



--

Les Fenison
Delta Technical Services
www.DeltaTechnicalServices.com
l...@deltatechnicalservices.com
503-766-0076
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
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] Monitoring Active Directory

2009-11-02 Thread C. Bensend

They're running 2003 and have begun the migration to 2008...  I
will mention the protections to them, that's good to know.  Thanks!

Benny


 What functional level are you at? In 2008 you can protect OUs in AD from
 being moved etc. It's annoyingly easy it is to accidently click/drag OUs
 in AD

 You could also use nsclient++ on your domain controller and run a power
 shell script to compare list of OU's

 Cheers
 Gareth


 -Original Message-
 From: C. Bensend [mailto:be...@bennyvision.com]
 Sent: Tuesday, 3 November 2009 5:56 a.m.
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Monitoring Active Directory


 Hey folks,

I just started a new job, and my immediate task is to build a new
 Nagios system for them.  I love my new job...  :)

They would like to monitor Active Directory OUs, so that Nagios alerts
 if any of a certain group of OUs are moved/renamed/deleted.
 Apparently, this happens every so often due to the number of admins that
 need rights to the AD structure.

So.  I checked on the exchange site and did some googling, but have not
 found any community plugins that will allow me to specify an OU and
 alert if it's not present.

 Anyone have something in their toolbox for this?

 Thanks!

 Benny


 --
 It's not all about getting up and putting four slices of kickass
 in a two slice toaster. -- ark86, on Fazed.net



 --
 Come build with us! The BlackBerry(R) Developer Conference in SF, CA
 is the only developer event you need to attend this year. Jumpstart your
 developing skills, take BlackBerry mobile applications to market and stay
 ahead of the curve. Join us from November 9 - 12, 2009. Register now!
 http://p.sf.net/sfu/devconference
 ___
 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

 --
 Come build with us! The BlackBerry(R) Developer Conference in SF, CA
 is the only developer event you need to attend this year. Jumpstart your
 developing skills, take BlackBerry mobile applications to market and stay
 ahead of the curve. Join us from November 9 - 12, 2009. Register now!
 http://p.sf.net/sfu/devconference
 ___
 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



-- 
It's not all about getting up and putting four slices of kickass
in a two slice toaster. -- ark86, on Fazed.net



--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
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 stopped checking most of my services!

2009-11-02 Thread Casey Allen Shobe
On Nov 2, 2009, at 9:46 PM, Les Fenison wrote:
 Well, so far 3 of us with the same problem on the same day.  I have  
 to believe it is daylight savings time related.

I'm gonna go with that too.  I had a sort of hunch that might  be it  
earlier.  Gonna change the servers to UTC time zone, which they should  
have been in in the first place (I like servers to always be in UTC).   
I thought it had been a couple days since it had been checking, but I  
could be wrong about that.  Date might also have been off on the  
servers - I just set up NTP clients on them today.

 My fix is to go click on each service one by one and reschedule.   
 Then they start checking normally again.

I don't have authentication set up so didn't have that option. :P

 I wonder if there is anyway to force an automatic reschedule of all  
 services and hosts for next year when this happens again?

Better would be for the software to be fixed (and upgraded).  Or you  
could change the server timezone to UTC.

You /could/ do what I did, and force service checking on all your  
hosts by echoing a line for each host into nagios.cmd.  See here:
http://old.nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=130

I'm not sure if that includes the effect of this one with it:
http://old.nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=128

I just did it for one host, saw the orphan messages, then did rm of  
retention.dat to fix all the rest.

Cheers,
-- 
Casey Allen Shobe
ca...@shobe.info


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
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] BoF For Monitoring at LISA

2009-11-02 Thread Jonah Horowitz
I've scheduled a BoF for Wednesday Night at LISA.  If you're around,
stop by.

Jonah

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
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 stopped checking most of my services!

2009-11-02 Thread Casey Allen Shobe
Was your nagios interface still showing whatever the service status  
was from the last time it ran the checks as though they were current?

I just joined this list over the same problem with 3.2.0.  Nagios was  
showing all green (got 95 services across 12 hosts), then when I went  
to demo it to my boss who just got back from vacation, I killed a box,  
and was surprised to see Nagios continue showing green.  When I looked  
in detail I saw that the checks had actually not been running in  
days...  I restarted Nagios a number of times to no avail.  I finally  
echoed a force check into the nagios.cmd file for a host, and got a  
lot of messages about how the services seemed orphaned.  I do have the  
check for orphans config option enabled (99% of my nagios.cfg is  
default).

I was finally able to get Nagios fixed by stopping it, removing  
retention.dat, and starting it again.  But I don't really want to  
disable retention unless I have to...

I was thinking this might have something to do with my failover setup  
(though I don't see why).  I have two boxes in a Heartbeat+DRBD  
configuration, with Nagios (and all it's configuration, /var files,  
etc.) on the DRBD partition.  It /seems/ to failover just fine.  After  
seeing this, I tested failing over back and forth about a dozen times  
and Nagios did not seem to get hung up in the same way, so I don't  
understand what caused this.

Maybe we have the same problem?

On Nov 2, 2009, at 9:08 PM, Les Fenison wrote:

 I had nagios working great.  Checking 6 hosts and about 85  
 services.  Then suddenly, all services on all hosts except one  
 stopped checking.  The next scheduled check is about 24 hours from  
 the last check.  I had been checking every 5 minutes.

 Restarting nagios didn't help.I am using a gui NagioSQL to edit  
 my configuration files so I suspect it did something to me but I  
 have no clue where to look except where I have already looked.

 What can cause nagios to just stop checking everything like that or  
 to randomly switch to every 24 hours rather than the configured  
 every 5 minutes?

 I am having to manually do force checks to get it to check.

 Here are some things I have checked...

 Hosts  check_interval is 5, retry_interval is 1
 Services  check_interval is 10, retry_interval is 2

 So where could Nagios be getting the idea that it is suppose to be  
 every 24 hours?

-- 
Casey Allen Shobe
ca...@shobe.info


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
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 stopped checking most of my services!

2009-11-02 Thread Breandan Dezendorf

On Nov 2, 2009, at 10:03 PM, Casey Allen Shobe wrote:


You /could/ do what I did, and force service checking on all your
hosts by echoing a line for each host into nagios.cmd.  See here:
http://old.nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=130


The other important thing to setup now, while you are thinking about  
it, is a sanity check for the Nagios service check frequency.  This is  
much more important in distributed environments, but can be helpful at  
times like these.


We're pulling a little over 600 checks per minute total from two  
distributed nodes, and I have a simple (hackish) perl script that  
scans through the log file looking for 'EXTERNAL COMMAND' in the last  
1, 5 and 15 minutes.  It outputs perfdata, so pnp4nagios picks it up,  
and I have the warning and critical thresholds set ptetty low.  That  
script is setup as a check command against the front end nodes.  I  
even have pretty graphs now that tell me how many checks I'm doing on  
average, and how often someone bumps the queue repeatedly force- 
rechecking a host.


--
Breandan Dezendorf
brean...@dezendorf.com
bwdez...@gmail.com



check_nagios_external_checks
Description: Binary data
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
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] Monitoring Active Directory

2009-11-02 Thread gmartin
Actually, At 2003 level there is a prevent accidental deletion check box
on most objects.

\\Greg

On Mon, Nov 2, 2009 at 9:48 PM, C. Bensend be...@bennyvision.com wrote:


 They're running 2003 and have begun the migration to 2008...  I
 will mention the protections to them, that's good to know.  Thanks!

 Benny


  What functional level are you at? In 2008 you can protect OUs in AD from
  being moved etc. It's annoyingly easy it is to accidently click/drag OUs
  in AD
 
  You could also use nsclient++ on your domain controller and run a power
  shell script to compare list of OU's
 
  Cheers
  Gareth
 
 
  -Original Message-
  From: C. Bensend [mailto:be...@bennyvision.com]
  Sent: Tuesday, 3 November 2009 5:56 a.m.
  To: nagios-users@lists.sourceforge.net
  Subject: [Nagios-users] Monitoring Active Directory
 
 
  Hey folks,
 
 I just started a new job, and my immediate task is to build a new
  Nagios system for them.  I love my new job...  :)
 
 They would like to monitor Active Directory OUs, so that Nagios alerts
  if any of a certain group of OUs are moved/renamed/deleted.
  Apparently, this happens every so often due to the number of admins that
  need rights to the AD structure.
 
 So.  I checked on the exchange site and did some googling, but have
 not
  found any community plugins that will allow me to specify an OU and
  alert if it's not present.
 
  Anyone have something in their toolbox for this?
 
  Thanks!
 
  Benny
 
 
  --
  It's not all about getting up and putting four slices of kickass
  in a two slice toaster. -- ark86, on Fazed.net
 
 
 
 
 --
  Come build with us! The BlackBerry(R) Developer Conference in SF, CA
  is the only developer event you need to attend this year. Jumpstart your
  developing skills, take BlackBerry mobile applications to market and stay
  ahead of the curve. Join us from November 9 - 12, 2009. Register now!
  http://p.sf.net/sfu/devconference
  ___
  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
 
 
 --
  Come build with us! The BlackBerry(R) Developer Conference in SF, CA
  is the only developer event you need to attend this year. Jumpstart your
  developing skills, take BlackBerry mobile applications to market and stay
  ahead of the curve. Join us from November 9 - 12, 2009. Register now!
  http://p.sf.net/sfu/devconference
  ___
  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
 


 --
 It's not all about getting up and putting four slices of kickass
 in a two slice toaster. -- ark86, on Fazed.net




 --
 Come build with us! The BlackBerry(R) Developer Conference in SF, CA
 is the only developer event you need to attend this year. Jumpstart your
 developing skills, take BlackBerry mobile applications to market and stay
 ahead of the curve. Join us from November 9 - 12, 2009. Register now!
 http://p.sf.net/sfu/devconference
 ___
 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




-- 
\\Greg
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
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 stopped checking most of my services!

2009-11-02 Thread Frost, Mark {PBG}
I guess I'm another me too.  We use Nagios 3.0.6, but I had just setup an 
upgrade to 3.2.0.  From what I could see, my distributed nodes had been sending 
data just fine for 45 minutes or so.  When I double-checked the performance 
graphs just before retiring for the night I saw no data coming in.  When I 
traced this back to the distributed nodes, their scheduling queue showed no 
checks scheduled until well into the next day.  We have some checks that run as 
frequently as every minute.

I assumed this was a weird bug with 3.2.0, panicked and went back to 3.0.6 a 
little after midnight and things have been fine ever since.  I was going to 
spend more time observing 3.2.0 in a more contained environment to see if this 
was normal behavior.  My timing (checks stopping around 11pm Sunday night) 
sounds the same so perhaps it's not just my imagination.

One thing that bothered me a bit was that I didn't see messages in the central 
servers indicating that it was marking service checks as stale and checking 
automatically.  I saw no stale messages in the log and it should have been well 
past the freshness thresholds of most checks.  As I say, it was late and I 
decided to roll back before I investigated.

I've got thousands of service checks so forcing rescheduling wouldn't work for 
me.

Mark

From: Les Fenison [mailto:l...@deltatechnicalservices.com]
Sent: Monday, November 02, 2009 9:47 PM
To: Andy Howell
Cc: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Nagios stopped checking most of my services!

Well, so far 3 of us with the same problem on the same day.  I have to believe 
it is daylight savings time related.

My fix is to go click on each service one by one and reschedule.  Then they 
start checking normally again.

I wonder if there is anyway to force an automatic reschedule of all services 
and hosts for next year when this happens again?

Andy Howell wrote:
Les Fenison wrote:

I had nagios working great.  Checking 6 hosts and about 85 services.  Then 
suddenly, all services on all hosts except one stopped checking.  The next 
scheduled check is about 24 hours from the last check.  I had been checking 
every 5 minutes.

Restarting nagios didn't help.I am using a gui NagioSQL to edit my 
configuration files so I suspect it did something to me but I have no clue 
where to look except where I have already looked.

What can cause nagios to just stop checking everything like that or to randomly 
switch to every 24 hours rather than the configured every 5 minutes?

I am having to manually do force checks to get it to check.

Here are some things I have checked...

Hosts  check_interval is 5, retry_interval is 1
Services  check_interval is 10, retry_interval is 2

So where could Nagios be getting the idea that it is suppose to be every 24 
hours?

I had the same experience yesterday. Maybe daylight savings related? At about 
11pm, all the services were scheduled for 11pm the following day. I figured it 
was something I did wrong. I noticed that next_check time in 
/var/log/nagios/retention.dat was wrong. I renamed the file and restarted 
nagios. It worked fine after that.

I using version 3.2.

Regards,

Andy

--

Les Fenison
Delta Technical Services
www.DeltaTechnicalServices.comhttp://www.DeltaTechnicalServices.com
l...@deltatechnicalservices.commailto:l...@deltatechnicalservices.com
503-766-0076
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
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 stopped checking most of my services!

2009-11-02 Thread Martin Melin
This is a confirmed bug in 3.2.0. We Europeans noticed this last week when
we switched from DST.

Start of thread on the problem:
http://www.mail-archive.com/nagios-users@lists.sourceforge.net/msg29695.html

There are a bunch of suggestions there on how to get your checks scheduled
sanely again without losing acknowledgements etc.

Regards,
Martin Melin

On Tue, Nov 3, 2009 at 5:03 AM, Frost, Mark {PBG} mark.fro...@pepsi.comwrote:

  I guess I'm another me too.  We use Nagios 3.0.6, but I had just setup
 an upgrade to 3.2.0.  From what I could see, my distributed nodes had been
 sending data just fine for 45 minutes or so.  When I double-checked the
 performance graphs just before retiring for the night I saw no data coming
 in.  When I traced this back to the distributed nodes, their scheduling
 queue showed no checks scheduled until well into the next day.  We have some
 checks that run as frequently as every minute.



 I assumed this was a weird bug with 3.2.0, panicked and went back to 3.0.6
 a little after midnight and things have been fine ever since.  I was going
 to spend more time observing 3.2.0 in a more contained environment to see if
 this was normal behavior.  My timing (checks stopping around 11pm Sunday
 night) sounds the same so perhaps it's not just my imagination.



 One thing that bothered me a bit was that I didn't see messages in the
 central servers indicating that it was marking service checks as stale and
 checking automatically.  I saw no stale messages in the log and it should
 have been well past the freshness thresholds of most checks.  As I say, it
 was late and I decided to roll back before I investigated.



 I've got thousands of service checks so forcing rescheduling wouldn't work
 for me.



 Mark



 *From:* Les Fenison [mailto:l...@deltatechnicalservices.com]
 *Sent:* Monday, November 02, 2009 9:47 PM
 *To:* Andy Howell
 *Cc:* nagios-users@lists.sourceforge.net
 *Subject:* Re: [Nagios-users] Nagios stopped checking most of my services!



 Well, so far 3 of us with the same problem on the same day.  I have to
 believe it is daylight savings time related.

 My fix is to go click on each service one by one and reschedule.  Then they
 start checking normally again.

 I wonder if there is anyway to force an automatic reschedule of all
 services and hosts for next year when this happens again?

 Andy Howell wrote:

 Les Fenison wrote:

  I had nagios working great.  Checking 6 hosts and about 85 services.
 Then suddenly, all services on all hosts except one stopped checking.  The
 next scheduled check is about 24 hours from the last check.  I had been
 checking every 5 minutes.

 Restarting nagios didn't help.I am using a gui NagioSQL to edit my
 configuration files so I suspect it did something to me but I have no clue
 where to look except where I have already looked.

 What can cause nagios to just stop checking everything like that or to
 randomly switch to every 24 hours rather than the configured every 5
 minutes?

 I am having to manually do force checks to get it to check.

 Here are some things I have checked...

 Hosts  check_interval is 5, retry_interval is 1
 Services  check_interval is 10, retry_interval is 2

 So where could Nagios be getting the idea that it is suppose to be every 24
 hours?


 I had the same experience yesterday. Maybe daylight savings related? At
 about 11pm, all the services were scheduled for 11pm the following day. I
 figured it was something I did wrong. I noticed that next_check time in
 /var/log/nagios/retention.dat was wrong. I renamed the file and restarted
 nagios. It worked fine after that.

 I using version 3.2.

 Regards,

 Andy



 --
  --

 Les Fenison
 Delta Technical Services
 www.DeltaTechnicalServices.com
 l...@deltatechnicalservices.com
 503-766-0076


 --
 Come build with us! The BlackBerry(R) Developer Conference in SF, CA
 is the only developer event you need to attend this year. Jumpstart your
 developing skills, take BlackBerry mobile applications to market and stay
 ahead of the curve. Join us from November 9 - 12, 2009. Register now!
 http://p.sf.net/sfu/devconference
 ___
 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

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!