Re: [Nagios-users] [nagios] Trigger alert via email

2009-05-01 Thread Kevin Keane
Nagios itself doesn't receive emails, but if you have control over the 
mail server in some form, you can make it work. For instance, if you 
have sendmail (or anything that can invoke procmail), you can use that 
to call a script, and the script in turn can send an external command to 
Nagios.

Ed Donahue wrote:
 Is it possible to trigger an alert by sending an email to nagios
 (passive check)?
 I'm guessing it isn't a straight forward as that, just wonder if it is doable,
 and any links to examples would be cool too.

 Thanks in advance
 Ed
   

-- 
Kevin Keane
Owner
The NetTech
Find the Uncommon: Expert Solutions for a Network You Never Have to Think About

Office: 866-642-7116
http://www.4nettech.com

This e-mail and attachments, if any, may contain confidential and/or 
proprietary information. Please be advised that the unauthorized use or 
disclosure of the information is strictly prohibited. The information herein is 
intended only for use by the intended recipient(s) named above. If you have 
received this transmission in error, please notify the sender immediately and 
permanently delete the e-mail and any copies, printouts or attachments thereof.


--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
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 Windows Updates question

2009-05-01 Thread Albrecht Dreß

Hi,

I try to use the plugin  
http://www.nagiosexchange.org/cgi-bin/page.cgi?g=2639.html;d=1 via  
nrpe as to detect pending Windows updates.  However, running the  
plug-in says


snip
r...@my-server:/opt/nagios/libexec# ./check_nrpe -H winbox -c  
check_win_updates ; echo $?

Critical: 10 Updates detected! No Reboot required!
2
/snip

but when I log onto the Win box and run the Win update, it says that  
there are no pending updates.


Any idea what I missed here?  I would really like to use that plug-in...

Thanks, Albrecht.


pgpgktFENxUhv.pgp
Description: PGP signature
--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf___
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] experience with check_sasraid_megaraid for Dell PERC 4?

2009-05-01 Thread Bo Gusman
Host OS is CentOS 5.x (originally 5.2 with ongoing updates applied via 
yum.)  Perl is default install v 5.8.8. On the Nagios box (actually a 
VM) I'm using Groundwork Community Edition 5.3 VM as provided by 
groundwork. I've not actually connected the plugin to anything Nagios 
yet, I'm just running it from the command line.

I did have to install Net::SNMP for perl from CPAN.

Hmmm, what a puzzle.

Bo

jmose...@corp.xanadoo.com wrote:
 My guess is you have an old version of perl or missing something else...

 How did you install perl and Nagios/Nagios plugins?  I just tested this
 plugin on a CentOS 5.3 box which had perl and nagios-plugins installed via
 yum repository.  Worked just fine.

 I'd install nagios-plugins from yum and see if that clears things up.  If
 it doesn't you might want to check which version of perl you are running
 and upgrade it.


 James Moseley




 Bo Gusman ml...@bogusville.us  wrote:


 That said

  ./check_sasraid_megaraid.pl -H bullwinkle -C public -T
 megaraid -s 2c

 all hell breaks loose:


 substr outside of string at ./check_sasraid_megaraid.pl line 461.
 Use of uninitialized value in split at ./check_sasraid_megaraid.pl
 line 462.
 snip



   


--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
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] experience with check_sasraid_megaraid for Dell PERC 4?

2009-05-01 Thread jmoseley
Doesn't matter if you're not using the plugin within Nagios yet.  What
matters is if you have all the perl utilities installed.

If you haven't already, install the following:

yum install nagios-plugins

Then rerun the script.  I have a CentOS 5.2 box with Perl, Nagios, and
Nagios-plugins installed via yum and I don't have the problems you do
running the script.


James Moseley



Bo Gusman ml...@bogusville.us wrote:

Host OS is CentOS 5.x (originally 5.2 with ongoing updates applied via
yum.)  Perl is default install v 5.8.8. On the Nagios box (actually a
VM) I'm using Groundwork Community Edition 5.3 VM as provided by
groundwork. I've not actually connected the plugin to anything Nagios
yet, I'm just running it from the command line.

I did have to install Net::SNMP for perl from CPAN.

Hmmm, what a puzzle.






--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
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] Please remove my email from this posting

2009-05-01 Thread Dunn, Larry
Please remove this email address from future email deliveries.
 
Thank you,
 
Larry Dunn
--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf___
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] Please remove my email from this posting

2009-05-01 Thread Marc Powell
Only you can do that. Follow the instructions you received in the  
Welcome e-mail when you signed up or by going to the listinfo link  
that's at the bottom of every message. Look for the  Nagios-users  
Subscribers   section.

--
Marc

On May 1, 2009, at 10:09 AM, Dunn, Larry wrote:

 Please remove this email address from future email deliveries.

 Thank you,

 Larry Dunn
 --
 Register Now  Save for Velocity, the Web Performance  Operations
 Conference from O'Reilly Media. Velocity features a full day of
 expert-led, hands-on workshops and two days of sessions from industry
 leaders in dedicated Performance  Operations tracks. Use code  
 vel09scf
 and Save an extra 15% before 5/3. 
 http://p.sf.net/sfu/velocityconf___
 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


--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
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] SNMP Checking - Alert if a single value is detected

2009-05-01 Thread Jason Frisvold
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Patrick Morris wrote:
 Wrapper scripts are pretty handy for stuff like this, but there's not
 enough detail in the problem description to be much more specific than
 that.

I thought about writing a wrapper script, just wanted to make sure there
wasn't something (better) out there already..

*OH* ...  I figured it out.  Duh..  Should have tried this before.
Here's the behaviour I was looking for :

./check_snmp -H 10.0.0.1 -C public -o .1.3.6.1.4.1.318.1.1.1.4.1.1.0 -r
[^3]$

In other words, return an OK value UNLESS you get a 3 ...  The only
concern I have with this is that I can't figure out how to restrict this
to ONLY a 3.  As I see it, I believe it would match 3, 13, 23, etc.  If
I put a ^ at the beginning, though, it doesn't match properly..  But,
what I have is enough to start.

- --
- ---
Jason Frisvold
Network Engineer
frisv...@lafayette.edu
- ---
What I cannot create, I do not understand
   - Richard Feynman
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkn7NNEACgkQO80o6DJ8UvkEiACgky8rUvTW5NXw+tIw+BUIy7RD
ZEgAnjcks7bFnInTnd6Kb6BAau+Wjyyr
=TgjM
-END PGP SIGNATURE-

--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
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] experience with check_sasraid_megaraid for Dell PERC 4?

2009-05-01 Thread Bo Gusman
Well, if I use the default snmpd.conf, I can connect to the host using 
snmpwalk locally and from the nagios host, but I can't see anything 
related to the perc array. It is this configuration that causes the perl 
substr error when I run check_sasraid_megaraid.

Renaming percsnmpd.conf - snmpd.conf, I can't connect to the host at 
all either using snmpwalk or the script.

Both conf files have a line pass .1.3.6.1.4.1.3582 /usr/sbin/percmain 
as the last line of the file, but I don't understand enough about snmp 
(reading the docs is giving me a headache! :) to be able to connect the 
dots.

Would you share relevant snmpd.conf info for me, James?

Much thanks for your patience and advice.

Bo

Bo Gusman wrote:
 Progress, of sorts.

 I installed nagios on another CentOS box to ensure that you and I are 
 working from the same essential config. Had exactly the same perl errors 
 as before. Doing some debugging of the script, it occurred to me that 
 the first error

   substr outside of string at ./check_sasraid_megaraid.pl line 461.

 was a great big clue perhaps the script wasn't getting anything back from the 
 percsnmp daemon on the monitored box. 

 Since I was running snmpd using the default snmpd.conf, I figured that since 
 I'm only going to use the percsnmpd, why not  symlink percsnmpd.conf to 
 snmpd.conf and try again. This got me much further, though still with errors:

   snmp error: No response from remote host 'bullwinkle'
   Megaraid UNKNON - could not retrieve snmp table blah blah

 OK, so I'm guessing that something is broken in my snmp config. Guess it's 
 time to try to figure that out. RTFM, as they say!

   Bo



 jmose...@corp.xanadoo.com wrote:
   
 Doesn't matter if you're not using the plugin within Nagios yet.  What
 matters is if you have all the perl utilities installed.

 If you haven't already, install the following:

 yum install nagios-plugins

 Then rerun the script.  I have a CentOS 5.2 box with Perl, Nagios, and
 Nagios-plugins installed via yum and I don't have the problems you do
 running the script.


 James Moseley



 Bo Gusman ml...@bogusville.us wrote:

 Host OS is CentOS 5.x (originally 5.2 with ongoing updates applied via
 yum.)  Perl is default install v 5.8.8. On the Nagios box (actually a
 VM) I'm using Groundwork Community Edition 5.3 VM as provided by
 groundwork. I've not actually connected the plugin to anything Nagios
 yet, I'm just running it from the command line.

 I did have to install Net::SNMP for perl from CPAN.

 Hmmm, what a puzzle.




   
 


 --
 Register Now  Save for Velocity, the Web Performance  Operations 
 Conference from O'Reilly Media. Velocity features a full day of 
 expert-led, hands-on workshops and two days of sessions from industry 
 leaders in dedicated Performance  Operations tracks. Use code vel09scf 
 and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
 ___
 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
   


--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
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] experience with check_sasraid_megaraid for Dell PERC 4?

2009-05-01 Thread jmoseley
First, have you verified that the perc agent is actually running on the
remote host?

ps -ef | grep perc

Furthermore, you're certainly not going to be able to connect to your
remote server via SNMP by using the default percsnmpd.conf file.

If you are able to connect to your host using the original snmpd.conf file
with the added perc statements, then you are fine.

Next, are you running SNMP v1 or v2?  That's important as you have to
provide the correct version to the plugin.

Lastly, what happens when you do an snmpwalk from the remote host using the
following?

snmpwalk -c wiband -v 2c localhost .1.3.6.1.4.1.3582

You should get a bunch of valid, snmp output.  If not, try using version 1.
If you do get valid output, then SNMP/percSNMP are setup correctly on that
host.


James Moseley




Bo Gusman ml...@bogusville.us wrote:

Well, if I use the default snmpd.conf, I can connect to the host using
snmpwalk locally and from the nagios host, but I can't see anything
related to the perc array. It is this configuration that causes the perl
substr error when I run check_sasraid_megaraid.

Renaming percsnmpd.conf - snmpd.conf, I can't connect to the host at
all either using snmpwalk or the script.

Both conf files have a line pass .1.3.6.1.4.1.3582 /usr/sbin/percmain
as the last line of the file, but I don't understand enough about snmp
(reading the docs is giving me a headache! :) to be able to connect the
dots.

Would you share relevant snmpd.conf info for me, James?

Much thanks for your patience and advice.





--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
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] Ndoutils only capturing host data, there is no service information

2009-05-01 Thread shadih rahman
All,
I recently discovered that my nagios setup is only storing in
nagios_hostchecks table.  In my ndomod.cfg file I have selected
data_processing_options=67108863, which suppose to process all data.  Little
overview about my setup  I have two mahcine running nagios active failover
settings.  On mysql side, I have master master replication from both
machine.  Can someone please advise me on this.  I am including my
nagios.cfg file, ndo2db.cfg file and ndomod.cfg file.  Thanks in advance.








My nagios.cfg::

log_file=/var/log/nagios/nagios.log
cfg_file=/etc/nagios/commands.cfg
cfg_file=/etc/nagios/contacts.cfg
cfg_file=/etc/nagios/timeperiods.cfg
cfg_file=/etc/nagios/templates.cfg
cfg_dir=/etc/nagios/hosts
cfg_dir=/etc/nagios/services
object_cache_file=/var/log/nagios/objects.cache
precached_object_file=/var/log/nagios/objects.precache
resource_file=/etc/nagios/resource.cfg
status_file=/var/log/nagios/status.dat
status_update_interval=60
nagios_user=nagios
nagios_group=nagios
check_external_commands=1
command_check_interval=-1
command_file=/var/log/nagios/rw/nagios.cmd
external_command_buffer_slots=4096
lock_file=/var/lock/subsys/nagios
temp_file=/var/log/nagios/nagios.tmp
temp_path=/tmp
event_broker_options=8
broker_module=/usr/lib64/nagios/ndomod.o config_file=/etc/nagios/ndomod.cfg
log_rotation_method=m
log_archive_path=/var/log/nagios/archives
use_syslog=1
log_notifications=1
log_service_retries=1
log_host_retries=1
log_event_handlers=1
log_initial_states=0
log_external_commands=1
log_passive_checks=1
service_inter_check_delay_method=s
max_service_check_spread=30
service_interleave_factor=s
host_inter_check_delay_method=s
max_host_check_spread=30
max_concurrent_checks=0
check_result_reaper_frequency=10
max_check_result_reaper_time=20
check_result_path=/var/log/nagios/spool/checkresults
max_check_result_file_age=3600
cached_host_check_horizon=15
cached_service_check_horizon=15
enable_predictive_host_dependency_checks=1




my ndo2db.cfg :


ndo2db_user=nagios
ndo2db_group=nagios
socket_type=unix
socket_name=/var/log/nagios/ndo.sock
tcp_port=5668
db_servertype=mysql
db_host=localhost
db_port=3306
db_name=nagios
db_prefix=nagios_
db_user=nagios
db_pass=*
max_timedevents_age=1440
max_systemcommands_age=10080
max_servicechecks_age=0
max_hostchecks_age=0
max_eventhandlers_age=44640
debug_level=1
debug_verbosity=0
debug_file=/var/log/nagios/ndo2db.debug
max_debug_file_size=100


my nodmod.cfg file 


instance_name=default
output_type=unixsocket
output=/var/log/nagios/ndo.sock
tcp_port=5668
output_buffer_items=5
buffer_file=/var/log/nagios/ndomod.tmp
file_rotation_interval=14400
file_rotation_timeout=60
reconnect_interval=15
reconnect_warning_interval=15
data_processing_options=67108863
config_output_options=0



-- 
Cordially,
Shadhin Rahman
--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf___
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] experience with check_sasraid_megaraid for Dell PERC 4?

2009-05-01 Thread jmoseley
Attached is a sample snmpd.conf config.

Just change COMMUNITY-STRING and the 192.168.1.0/24 settings to what works
for you.  If you are still having problems, then it's most likely your RAID
card is not supported by the version of Perc agent you downloaded.

(See attached file: snmpd.conf)

James Moseley



Bo Gusman ml...@bogusville.us wrote:

Well, krikey!

SELinux is disabled so that isn't in play. I will get in touch with
Dell, although their linux-poweredge mailing list (where I also asked
the same question as here) has returned null.

I appreciate all of your help with this, James. Karma points for you!




snmpd.conf
Description: Binary data
--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf___
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] experience with check_sasraid_megaraid for Dell PERC 4?

2009-05-01 Thread jmoseley
To be honest, I'm stumped.  Have you disabled SELinux to see if that does
the trick?  At this point in time it's a problem with SNMP, the Dell Perc
agent, and/or the controller.  You might open a ticket with Dell to see if
there are any known compatibility issues with the software and your
specific card.


James Moseley




Bo Gusman ml...@bogusville.us  wrote:

Yep, percagent is clearly running per ps -ef.

snmpwalk -c public -v 2c localhost .1.3.6.1.4.1.3582

returns

SNMPv2-SMI::enterprises.3582 = No more variables left in this MIB
View (It is past the end of the MIB tree)



--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
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] experience with check_sasraid_megaraid for Dell PERC 4?

2009-05-01 Thread Bo Gusman
Well, krikey!

SELinux is disabled so that isn't in play. I will get in touch with 
Dell, although their linux-poweredge mailing list (where I also asked 
the same question as here) has returned null.

I appreciate all of your help with this, James. Karma points for you!

Bo

jmose...@corp.xanadoo.com wrote:
 To be honest, I'm stumped.  Have you disabled SELinux to see if that does
 the trick?  At this point in time it's a problem with SNMP, the Dell Perc
 agent, and/or the controller.  You might open a ticket with Dell to see if
 there are any known compatibility issues with the software and your
 specific card.


 James Moseley




 Bo Gusman ml...@bogusville.us  wrote:

 Yep, percagent is clearly running per ps -ef.

 snmpwalk -c public -v 2c localhost .1.3.6.1.4.1.3582

 returns

 SNMPv2-SMI::enterprises.3582 = No more variables left in this MIB
 View (It is past the end of the MIB tree)

   


--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
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] experience with check_sasraid_megaraid for Dell PERC 4?

2009-05-01 Thread Bo Gusman
Yep, percagent is clearly running per ps -ef.

snmpwalk -c public -v 2c localhost .1.3.6.1.4.1.3582

returns

SNMPv2-SMI::enterprises.3582 = No more variables left in this MIB 
View (It is past the end of the MIB tree)


jmose...@corp.xanadoo.com wrote:
 First, have you verified that the perc agent is actually running on the
 remote host?

 ps -ef | grep perc

 Furthermore, you're certainly not going to be able to connect to your
 remote server via SNMP by using the default percsnmpd.conf file.

 If you are able to connect to your host using the original snmpd.conf file
 with the added perc statements, then you are fine.

 Next, are you running SNMP v1 or v2?  That's important as you have to
 provide the correct version to the plugin.

 Lastly, what happens when you do an snmpwalk from the remote host using the
 following?

 snmpwalk -c wiband -v 2c localhost .1.3.6.1.4.1.3582

 You should get a bunch of valid, snmp output.  If not, try using version 1.
 If you do get valid output, then SNMP/percSNMP are setup correctly on that
 host.


 James Moseley




 Bo Gusman ml...@bogusville.us wrote:

 Well, if I use the default snmpd.conf, I can connect to the host using
 snmpwalk locally and from the nagios host, but I can't see anything
 related to the perc array. It is this configuration that causes the perl
 substr error when I run check_sasraid_megaraid.

 Renaming percsnmpd.conf - snmpd.conf, I can't connect to the host at
 all either using snmpwalk or the script.

 Both conf files have a line pass .1.3.6.1.4.1.3582 /usr/sbin/percmain
 as the last line of the file, but I don't understand enough about snmp
 (reading the docs is giving me a headache! :) to be able to connect the
 dots.

 Would you share relevant snmpd.conf info for me, James?

 Much thanks for your patience and advice.



   


--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
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_mssql_health Plugin

2009-05-01 Thread Sean Carolan
We're trying to use the check_mssql_plugin from Gerhard's site here:

http://www.consol.de/opensource/nagios/check-mssql-health

It seems not to work on 64 bit systems.  When we run it on our 64 bit
nagios host we get this error:

[r...@monitorbox libexec]# ./check_mssql_health
--hostname=server.example.com --username=nagios --password=secret
--mode=list-databases
bumm Can't call method prepare on an undefined value at
./check_mssql_health line 1886.

Can't use an undefined value as an ARRAY reference at
./check_mssql_health line 1902.

Anyone have an idea why this is happening?  I did have to patch and
build perl-DBD-Sybase from source, because the Makefile.PL in CPAN did
not support 64 bit systems.

--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
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] experience with check_sasraid_megaraid for Dell PERC 4?

2009-05-01 Thread Bo Gusman
Wow, that changed things big time.

Using snmpwalk locally this time resulted in 221 lines of output along 
the lines of

SNMPv2-SMI::enterprises.3582.1.1.14.0 = INTEGER: -1

check_sasraid_megaraid says

Megaraid OK - 2 logical disks, 6 physical drives, 1 controllers found

I think I'll compare the two snmpd.conf files that I've got. Maybe learn 
something.

Dude, you rock!

Thanks again!

Bo

jmose...@corp.xanadoo.com wrote:
 Attached is a sample snmpd.conf config.

 Just change COMMUNITY-STRING and the 192.168.1.0/24 settings to what works
 for you.  If you are still having problems, then it's most likely your RAID
 card is not supported by the version of Perc agent you downloaded.

 (See attached file: snmpd.conf)

 James Moseley



 Bo Gusman ml...@bogusville.us wrote:

 Well, krikey!

 SELinux is disabled so that isn't in play. I will get in touch with
 Dell, although their linux-poweredge mailing list (where I also asked
 the same question as here) has returned null.

 I appreciate all of your help with this, James. Karma points for you!


   


--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
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] experience with check_sasraid_megaraid for Dell PERC 4?

2009-05-01 Thread jmoseley
You're welcome.  I'd be interested in the diff output...

James Moseley




Bo Gusman ml...@bogusville.us wrote:

Wow, that changed things big time.

Using snmpwalk locally this time resulted in 221 lines of output along
the lines of

SNMPv2-SMI::enterprises.3582.1.1.14.0 = INTEGER: -1

check_sasraid_megaraid says

Megaraid OK - 2 logical disks, 6 physical drives, 1 controllers found

I think I'll compare the two snmpd.conf files that I've got. Maybe learn
something.

Dude, you rock!






--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
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] experience with check_sasraid_megaraid for Dell PERC 4?

2009-05-01 Thread jmoseley
Yep, all the important stuff was commented out.


James Moseley




Bo Gusman ml...@bogusville.us wrote:

Your file is first.

I did 0 configuration on it - so much for trusting things right out of the
box. :)

 Bo

41c41
 com2sec notConfigUser  default   OcwyronAs4
---

  com2sec notConfigUser  default   public

74,75c74,75
 com2sec local   localhost   nagiosofc
 com2sec mynetwork   192.168.1.0/24  nagiosofc
---

  #com2sec local localhost   COMMUNITY
  #com2sec mynetwork NETWORK/24  COMMUNITY

78,79c78,79
 group   MyRWGroup  v2c local
 group   MyROGroup  v2cmynetwork
---

  #group MyRWGroup  anylocal
  #group MyROGroup  anymynetwork

85c85
 view allincluded  .1   80
---

  #view allincluded  .1   80

93,94c93,94
 access MyROGroup   any   noauthexact  allnone
none
 access MyRWGroup   any   noauthexact  allallall
---

  #access MyROGroup   any   noauth0  allnone   none
  #access MyRWGroup   any   noauth0  allallall

162,163c162,163
 syslocation Your City
 syscontact  Network Operations
---

  syslocation Unknown (edit /etc/snmp/snmpd.conf)
  syscontact Root r...@localhost (configure /etc/snmp/snmp.local.conf)

452,454d451
 # Dell MegaRAID data will be exported on port 161 by the main snmpd
 pass .1.3.6.1.4.1.3582 /usr/sbin/percmain


458a456

  pass .1.3.6.1.4.1.3582 /usr/sbin/percmain




--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
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 Windows Updates question

2009-05-01 Thread Jon Angliss
On Fri, 01 May 2009 15:24:39 +0200, Albrecht Dreß
albrecht.dr...@arcor.de wrote:

Hi,

I try to use the plugin  
http://www.nagiosexchange.org/cgi-bin/page.cgi?g=2639.html;d=1 via  
nrpe as to detect pending Windows updates.  However, running the  
plug-in says

snip
r...@my-server:/opt/nagios/libexec# ./check_nrpe -H winbox -c  
check_win_updates ; echo $?
Critical: 10 Updates detected! No Reboot required!
2
/snip

but when I log onto the Win box and run the Win update, it says that  
there are no pending updates.

Any idea what I missed here?  I would really like to use that plug-in...

Not something you missed, but the plugin author.  The plugin reads the
ReportingEvents.log file in the SoftwareDistribution folder, and
looks for a specific ID.  Unfortunately it appears that log isn't
rotated on each check, which means that you had, at one point, several
updates pending, and WSUS hasn't updated the status successfully
since.

Try stopping wuauctl on the server in question, and renaming the log
file.

net stop wuauctl
C:\windows\softwaredistribution\ReportingEvents.log rename/move
net start wuauctl
wuauclt /detectnow

Trigger another check, and see what comes back.  If you still see odd
issues, take a look at the log file, and search for the line that
looks like this:

  Windows Update Client successfully detected 0 updates

If this still doesn't work out for you, there are plenty of other
options on the http://nagiosexchange.org such as:

  http://www.nagiosexchange.org/cgi-bin/page.cgi?g=2547.html;d=1

Good luck
-- 
Jonathan Angliss
j...@netdork.net


--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
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: External directory permission issue.

2009-05-01 Thread Jimmyboy
Hi,

After installing Nagios 3.0.6, I login to the web interface using
http://localhost/nagios.
When I attempt to restart the Nagios service using 'Process Info', the error
thrown is as seen below.

=-=-=
Error: Could not open command file '/usr/local/nagios/var/rw/nagios.cmd' for
update!

The permissions on the external command file and/or directory may be
incorrect. Read the FAQs on how to setup proper permissions.

An error occured while attempting to commit your command for processing.

*Return from whence you came
*=-=-=

I checked the directory permissions and here is the output.

*Output of 'ls -al /usr/local/nagios/var'*
drwxrwsr-x 2 nagios nagcmd 4096 2009-04-18 07:25 rw

*Output of 'ls -al /usr/local/nagios/var/rw'*
prw-rw 1 nagios nagcmd 14049 2009-04-18 07:25 nagios.cmd
=-=-=

Any idea what else need to be done?

Regards,
Jim
--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf___
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