Re: [Nagios-users] Trying to develop a new perl plugin

2011-01-24 Thread Nibin VM
Thanks for your reply folks.. :) Finally I have concluded that the portion which reads the argument has issues. $host=$ARGV[0]; It isn't taken correctly when its executed from nagios. Please somebody tell me what code should I put if I need to specify the host name like ./test.pl-H hostname?

Re: [Nagios-users] Trying to develop a new perl plugin

2011-01-24 Thread Joseph L. Casale
Finally I have concluded that the portion which reads the argument has issues. $host=$ARGV[0]; Read that link I gave you, it explains this thoroughly. On another note, your plugin looks like you simply query an OID for a value and return levels based on a range? Why are you writing a plugin to

Re: [Nagios-users] Trying to develop a new perl plugin

2011-01-24 Thread Paul M. Dubuc
If you're going to be writing many of your own plugins, it might be worth the effort to use the Nagios::Plugin modules (http://search.cpan.org/~tonvoon/Nagios-Plugin-0.35/lib/Nagios/Plugin.pm). They're probably installed under the perl/lib subdirectory of your Nagios installation. Among other

Re: [Nagios-users] Trying to develop a new perl plugin

2011-01-24 Thread Onotsky, Steve x55328
From: Nibin VM [mailto:nibin...@piserve.com] Sent: January-24-11 10:17 To: Nagios Users List Subject: Re: [Nagios-users] Trying to develop a new perl plugin $host=$ARGV[0];   It isn't taken correctly when its executed from nagios. Please somebody tell me what code should I put if I

[Nagios-users] Problem with check_openmanage

2011-01-24 Thread Jeffrey Watts
Hello, I'm using Mr. Amundsen's excellent check_openmanage plugin, and I'm getting an odd error: $ check_openmanage -H myserver -C public Power Supply 0 [AC] needs attention: Presence detected, Failure detected, AC lost Voltage sensor 14 [PS 2 Voltage 2] is INTERNAL ERROR: Use of uninitialized

Re: [Nagios-users] Problem with check_openmanage

2011-01-24 Thread C. Bensend
$ check_openmanage -H myserver -C public Power Supply 0 [AC] needs attention: Presence detected, Failure detected, AC lost You have a power supply #0, it is plugged in, but it has no AC input. Someone tripped over a cable. Voltage sensor 14 [PS 2 Voltage 2] is INTERNAL ERROR: Use of

Re: [Nagios-users] Problem with check_openmanage

2011-01-24 Thread Trond Hasle Amundsen
Jeffrey Watts jeffrey.w.wa...@gmail.com writes: Hello, I'm using Mr. Amundsen's excellent check_openmanage plugin, and I'm getting an odd error: $ check_openmanage -H myserver -C public Power Supply 0 [AC] needs attention: Presence detected, Failure detected, AC lost Voltage sensor 14 [PS

[Nagios-users] a quick check on nagwin and nsclient++

2011-01-24 Thread Steve
Hi, I have done my 'due dilligence' in trying to get nagwin/nsclient++ to 'work' in any regard. Meaning, read the requisite docs, config suggestions etc. But just to save myself time - does the nagwin/nsclient++ 'stuff' actuall work ? The items are the 'latest and greatest' downloads. Just

Re: [Nagios-users] Trying to develop a new perl plugin

2011-01-24 Thread Alexandro Conde Martínez
That's easy, just use the Getopt - use Getopt::Long; use vars qw($opt_h $opt_C $opt_H); # Get the options Getopt::Long::Configure('bundling'); GetOptions (h = \$opt_h, help = \$opt_h, # Help Flag H=s = \$opt_H, hostname=s = \$opt_H); # Hostname # Validate the options if ($opt_h) {

Re: [Nagios-users] a quick check on nagwin and nsclient++

2011-01-24 Thread Steve
Steve yackey_steve at emc.com writes: Hi, I have done my 'due dilligence' in trying to get nagwin/nsclient++ to 'work' in any regard. Meaning, read the requisite docs, config suggestions etc. But just to save myself time - does the nagwin/nsclient++ 'stuff' actuall work ? The items

Re: [Nagios-users] Problem with check_openmanage

2011-01-24 Thread Jeffrey Watts
Thanks Trond! That seems to have fixed it. Here's what I see now: ./check_openmanage -H pkc-search28 -C tomgeco Power Supply 0 [AC] needs attention: Presence detected, Failure detected, AC lost Voltage sensor 14 [PS 2 Voltage 2] is Unknown reading It comes up correctly now as a CRIT, too.

Re: [Nagios-users] Problem with check_openmanage

2011-01-24 Thread Trond Hasle Amundsen
Jeffrey Watts jeffrey.w.wa...@gmail.com writes: Thanks Trond!  That seems to have fixed it.  Here's what I see now: ./check_openmanage -H pkc-search28 -C tomgeco Power Supply 0 [AC] needs attention: Presence detected, Failure detected, AC lost Voltage sensor 14 [PS 2 Voltage 2] is Unknown

[Nagios-users] Writing nrpe commands

2011-01-24 Thread John Adams
Hi, folks, I'm in need of using nrpe to get information from log files, and I'm stumped on where to find guidance on doing so. Any pointers to the right information or the right place to ask (if this isn't it)? Thanks, John A

Re: [Nagios-users] Writing nrpe commands

2011-01-24 Thread C. Bensend
I'm in need of using nrpe to get information from log files, and I'm stumped on where to find guidance on doing so. Any pointers to the right information or the right place to ask (if this isn't it)? I would take a look at the sample nrpe.cfg that comes with NRPE for examples of

Re: [Nagios-users] a quick check on nagwin and nsclient++

2011-01-24 Thread Tevfik Karagulle
Nagwin + NSClient++ will work just fine as long as you run NSClient in NRPE mode. Tev -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even

[Nagios-users] External Command Interface - broken named pipes on Cygwin

2011-01-24 Thread Tevfik Karagulle
Hi, It seems that Cygwin support for named pipes may have some broken partshttp://cygwin.com/ml/cygwin/2010-08/msg00459.html, causing trouble during porting of External Command Interface. What I observe that Nagios manages to write to the named pipe for the first time. Following requests end up

[Nagios-users] Unregister to Nagios userlist mail

2011-01-24 Thread R, Naveen
Hello, I wanted to unregister for Nagios mail. Please remove my email id from this user list. Thank you. Warm regards, Naveen.R., Philips Consumer Lifestyle, Philips Innovation Campus, Philips Electronics India Ltd, Manyata Tech Park, Nagavara, Bangalore - 560045. Ph: +91 80 40162000 Extn:

[Nagios-users] check_openmanage showing 0 logical drives with OMSA 6.4 and PERC4

2011-01-24 Thread Steve Jenkins
I've been using Trond Amundsen's awesome check_openmanage script to babysit a dozen or so full of various Dell PowerEdges - all the way from x550s to x950s (thanks, Trond!) After upgrading three of the 1850s to Dell OMSA 6.4 today, I noticed something strange. The three of them now display in