Re: [Nagios-users] Trying to develop a new perl plugin
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? On Sun, Jan 23, 2011 at 10:44 PM, Boyer, Timothy A. timothy.bo...@opm.govwrote: Permissions problem? You're running the command line as root; try running the command line as your Nagios username. From: Nibin VM [nibin...@piserve.com] Sent: Sunday, January 23, 2011 10:46 AM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Trying to develop a new perl plugin Hello guys, I am trying to write some nagios perl plugin to monitor some services I'm responsible for. Initially I tried to write custom plugin to monitor mail queue using the following script. === #!/usr/bin/perl -w use strict; use Net::SNMP; use Getopt::Long; use lib /usr/lib64/nagios/libexec; my %ERRORS=('OK'=0,'WARNING'=1,'CRITICAL'=2,'UNKNOWN'=3); my $host = undef; my $result = undef; my @array = undef; $host=$ARGV[0]; $result=`/usr/lib64/nagios/plugins/check_snmp -H $host -C community -o extOutput.1`; @array = split(/\ /, $result); chomp($array[3]); if ( $array[3] le 1 ) { print OK: current emails queue is $array[3]\n; exit $ERRORS{OK}; } elsif ( $array[3] ge 2$array[3] le 2 ) { print Warning: current emails queue is $array[3]\n; exit $ERRORS{WARNING}; } elsif ( $array[3] ge 3 ) { print Critical: current emails queue is $array[3]\n; exit $ERRORS{CRITICAL}; } else { print Unknown; exit $ERRORS{UNKNOWN}; } As you can see, I use snmp to pull mail queue from the remote server. When I try the command from command line it work fine. ]# ./test.plhttp://test.pl server name OK: current emails queue is 264 But from the nagios from end it shows as critical and it shows Critical: current emails queue is Unknown error :( Please somebody help me to sort this out. Obviously its the first perl script that I ever wrote and I really interested to write more plugins in perl(I am in love with perl now :) ). Thanks in advance! -- Regards, Nibin. -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d ___ 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 -- Regards, Nibin. -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d___ 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] Trying to develop a new perl plugin
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 use a plugin that does what you need? /usr/lib64/nagios/plugins/check_snmp --help You can search/grep on values/ranges... -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d ___ 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] Trying to develop a new perl plugin
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 things, they provide a convenient wrapper for Getopt::Long and Params::Validate so you can do position independent options and argument validation for your Perl plugins. Using it could save you quite a bit of time and code maintenance headaches in the long run. Paul Dubuc Nibin VM wrote: 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 http://test.pl -H hostname? On Sun, Jan 23, 2011 at 10:44 PM, Boyer, Timothy A. timothy.bo...@opm.gov mailto:timothy.bo...@opm.gov wrote: Permissions problem? You're running the command line as root; try running the command line as your Nagios username. From: Nibin VM [nibin...@piserve.com mailto:nibin...@piserve.com] Sent: Sunday, January 23, 2011 10:46 AM To: nagios-users@lists.sourceforge.net mailto:nagios-users@lists.sourceforge.net Subject: [Nagios-users] Trying to develop a new perl plugin Hello guys, I am trying to write some nagios perl plugin to monitor some services I'm responsible for. Initially I tried to write custom plugin to monitor mail queue using the following script. === #!/usr/bin/perl -w use strict; use Net::SNMP; use Getopt::Long; use lib /usr/lib64/nagios/libexec; my %ERRORS=('OK'=0,'WARNING'=1,'CRITICAL'=2,'UNKNOWN'=3); my $host = undef; my $result = undef; my @array = undef; $host=$ARGV[0]; $result=`/usr/lib64/nagios/plugins/check_snmp -H $host -C community -o extOutput.1`; @array = split(/\ /, $result); chomp($array[3]); if ( $array[3] le 1 ) { print OK: current emails queue is $array[3]\n; exit $ERRORS{OK}; } elsif ( $array[3] ge 2 $array[3] le 2 ) { print Warning: current emails queue is $array[3]\n; exit $ERRORS{WARNING}; } elsif ( $array[3] ge 3 ) { print Critical: current emails queue is $array[3]\n; exit $ERRORS{CRITICAL}; } else { print Unknown; exit $ERRORS{UNKNOWN}; } As you can see, I use snmp to pull mail queue from the remote server. When I try the command from command line it work fine. ]# ./test.pl http://test.plhttp://test.pl server name OK: current emails queue is 264 But from the nagios from end it shows as critical and it shows Critical: current emails queue is Unknown error :( Please somebody help me to sort this out. Obviously its the first perl script that I ever wrote and I really interested to write more plugins in perl(I am in love with perl now :) ). Thanks in advance! -- Regards, Nibin. -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net mailto: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 -- Regards, Nibin. -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d ___ 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 -- Special Offer-- Download ArcSight Logger
Re: [Nagios-users] Trying to develop a new perl plugin
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 need to specify the host name like ./test.pl -H hostname? My Perl is a bit rusty, but wouldn't '$host=$ARGV[0]' have a value of -H with these command line arguments (with hostname getting ignored because only the first element of the ARGV array is specified)? Perhaps something like Getopt::Long might get you were you need (or just leave off the '-H' and pass only the hostname)? Or did I miss the point somewhere? :) Cheers Steve This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system. -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] Problem with check_openmanage
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 value $reading in sprintf at /usr/lib/nagios/plugins/check_openmanage line 3565. Has anyone else seen this error? I'm running version 3.6.4. Please let me know what additional information is needed. Thanks in advance, Jeffrey. -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Problem with check_openmanage
$ 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 uninitialized value $reading in sprintf at /usr/lib/nagios/plugins/check_openmanage line 3565. Whoopsie, that looks like a bug in check_openmanage. Trond is excellent about fixing issues, I'd expect to hear from him shortly. Benny -- Hairy ape nads.-- Colleen, playing Neverwinter Nights -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Problem with check_openmanage
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 2 Voltage 2] is INTERNAL ERROR: Use of uninitialized value $reading in sprintf at /usr/lib/ nagios/plugins/check_openmanage line 3565. Has anyone else seen this error? I'm running version 3.6.4. Please let me know what additional information is needed. Hi Jeffrey, This shouldn't happen, and I think I see where the problem is. Please try the version available here, and let me know if it performs any better: http://folk.uio.no/trondham/software/test/ Cheers, -- Trond H. Amundsen t.h.amund...@usit.uio.no Center for Information Technology Services, University of Oslo -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d ___ 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] a quick check on nagwin and nsclient++
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 wondering if it humanly possible and I am just a moron or what. Thanks -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d ___ 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] Trying to develop a new perl plugin
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) { print_help(); exit $ERRORS{OK}; } $opt_H = shift unless ($opt_H); $host = $1 if ($opt_H $opt_H =~ m/^([a-zA-Z][-a-zA-Z0-9]+(\.[a-zA-Z][-a-zA-Z0-9]+)*)$/); unless ($host) { print No target host specified\n; print_usage(); exit $ERRORS{UNKNOWN}; } - Eng. Alexandro Conde Martínez - Alcon CTO, Fonet Global Inc. Phone: +1.972.749.9970 Voip: 523663800 a...@fonetglobal.com http://www.fonetglobal.com Stop Spam: http://www.cauce.org - Original Message - From: Nibin VM nibin...@piserve.com To: Nagios Users List nagios-users@lists.sourceforge.net Sent: Monday, January 24, 2011 9:16:51 AM Subject: Re: [Nagios-users] Trying to develop a new perl plugin 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? On Sun, Jan 23, 2011 at 10:44 PM, Boyer, Timothy A. timothy.bo...@opm.gov wrote: Permissions problem? You're running the command line as root; try running the command line as your Nagios username. From: Nibin VM [ nibin...@piserve.com ] Sent: Sunday, January 23, 2011 10:46 AM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Trying to develop a new perl plugin Hello guys, I am trying to write some nagios perl plugin to monitor some services I'm responsible for. Initially I tried to write custom plugin to monitor mail queue using the following script. === #!/usr/bin/perl -w use strict; use Net::SNMP; use Getopt::Long; use lib /usr/lib64/nagios/libexec; my %ERRORS=('OK'=0,'WARNING'=1,'CRITICAL'=2,'UNKNOWN'=3); my $host = undef; my $result = undef; my @array = undef; $host=$ARGV[0]; $result=`/usr/lib64/nagios/plugins/check_snmp -H $host -C community -o extOutput.1`; @array = split(/\ /, $result); chomp($array[3]); if ( $array[3] le 1 ) { print OK: current emails queue is $array[3]\n; exit $ERRORS{OK}; } elsif ( $array[3] ge 2 $array[3] le 2 ) { print Warning: current emails queue is $array[3]\n; exit $ERRORS{WARNING}; } elsif ( $array[3] ge 3 ) { print Critical: current emails queue is $array[3]\n; exit $ERRORS{CRITICAL}; } else { print Unknown; exit $ERRORS{UNKNOWN}; } As you can see, I use snmp to pull mail queue from the remote server. When I try the command from command line it work fine. ]# ./ test.pl http://test.pl server name OK: current emails queue is 264 But from the nagios from end it shows as critical and it shows Critical: current emails queue is Unknown error :( Please somebody help me to sort this out. Obviously its the first perl script that I ever wrote and I really interested to write more plugins in perl(I am in love with perl now :) ). Thanks in advance! -- Regards, Nibin. -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d ___ 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 -- Regards, Nibin. -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d ___ 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-- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even
Re: [Nagios-users] a quick check on nagwin and nsclient++
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 are the 'latest and greatest' downloads. Just wondering if it humanly possible and I am just a moron or what. Thanks I didn't search/find/read the appropriate docs. Got nrpe to do something. My other 'issues' have got to be similarly self-inflicted. Sorry to bother the list. -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Problem with check_openmanage
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. Thanks! Jeffrey. On Mon, Jan 24, 2011 at 10:55 AM, Trond Hasle Amundsen t.h.amund...@usit.uio.no wrote: 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 2 Voltage 2] is INTERNAL ERROR: Use of uninitialized value $reading in sprintf at /usr/lib/ nagios/plugins/check_openmanage line 3565. Has anyone else seen this error? I'm running version 3.6.4. Please let me know what additional information is needed. Hi Jeffrey, This shouldn't happen, and I think I see where the problem is. Please try the version available here, and let me know if it performs any better: http://folk.uio.no/trondham/software/test/ Cheers, -- Trond H. Amundsen t.h.amund...@usit.uio.no Center for Information Technology Services, University of Oslo -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Problem with check_openmanage
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 reading It comes up correctly now as a CRIT, too. Good, thanks for reporting back. I'll include this fix in the next release. The problem was that where the reading is not available, the plugin assumes that the reading is discrete (i.e. not a number but good, bad etc.). This assumption is wrong in cases where the reading is NOT discrete and simply not available via SNMP. The fixed version will set the reading to Unknown reading when the reading can't be obtained. (However, this situation shouldn't occur at all if OMSA it behaving as it should. Pulling the cable on one power supply would normally lead to a reading of 0 volts for that voltage probe.) Cheers, -- Trond H. Amundsen t.h.amund...@usit.uio.no Center for Information Technology Services, University of Oslo -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d ___ 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] Writing nrpe commands
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 -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d ___ 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] Writing nrpe commands
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 commands, and then check out consul.de's excellent check_logfiles plugin to do the work with the logs. Benny -- Hairy ape nads.-- Colleen, playing Neverwinter Nights -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d ___ 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] a quick check on nagwin and nsclient++
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 better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d ___ 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] External Command Interface - broken named pipes on Cygwin
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 with timeouts. I've tried several other alternatives like blocked or read-only opening of the pipe to no avail. Things get just worse. My conclusion is that the current External Command Interface can not be implemented as a stable solution on Cygwin. Questions: - Has anybody succeeded porting External Command Interface to Cygwin? - Do you have any suggestions ? I am considering to move command fifo structure and processing logic out of Nagios to a network service. Tev -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d___ 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] Unregister to Nagios userlist mail
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: 2718/3016 Mobile: 9663320455 Email: navee...@philips.commailto:navee...@philips.com intranet: http://pww.bangalore.philips.com, internet: http://www.bangalore.philips.com [cid:image001.png@01CBBC7C.CCAB0E00] The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message. inline: image001.png-- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d___ 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_openmanage showing 0 logical drives with OMSA 6.4 and PERC4
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 Nagios: OK - System: 'PowerEdge 1850', SN: '', 3 GB ram (6 dimms), 0 logical drives, 2 physical drives OK - System: 'PowerEdge 1850', SN: 'XXX', 12 GB ram (6 dimms), 0 logical drives, 2 physical drives OK - System: 'PowerEdge 1850', SN: 'XXX', 4 GB ram (6 dimms), 0 logical drives, 2 physical drives All three display 0 logical drives, even though they all have a working RAID array. All three of these boxes are running the 32-bit version of OMSA 6.4, even though two of them are 64-bit CentOS systems. I had to run the 32-bit version of OMSA 6.4 because the 64-bit version won't see the PERC 4 controller. For comparison, I have a 2950 running OMSA 6.4 that's showing: OK - System: 'PowerEdge 2950', SN: 'XXX', 16 GB ram (8 dimms), 1 logical drives, 2 physical drives So I know that OMSA 6.4 is passing the appropriate info the check_openmanage in that case. The debug output on the 1850s shows : # ./check_openmanage -d System: PowerEdge 1850 OMSA version:6.4.0 ServiceTag: XXX Plugin version: 3.6.4 BIOS/date: A07 04/25/2008 Checking mode: local - Storage Components = STATE |ID| MESSAGE TEXT -+--+ OK |0 | Controller 0 [PERC 4e/Si] is Ready OK |0:0:0 | Physical Disk 0:0 [SCSI-HDD 37GB] on ctrl 0 is Online OK |0:0:1 | Physical Disk 0:1 [SCSI-HDD 36GB] on ctrl 0 is Online OK | 0:0 | Cache Battery 0 in controller 0 is Ready OK | 0:0 | Connector 0 [SCSI Channel RAID Mode] on controller 0 is Ready OK | 0:0 | Enclosure 0:0 [Backplane] on controller 0 is Ready Which is clearly missing the Logical Drive output that does appear on the 2950 running OMSA 6.4, which is: OK | 0:0 | Logical Drive '/dev/sda' [RAID-1, 67.75 GB] is Ready The strange part is that OMSA 6.4 on the 1850s is clearly aware that there's a logical drive, because the GUI shows Virtual Disk 0 RAID-1 in the Storage Dashboard. I'm pretty certain that all three of these 1850s used to report 1 logical drive under OMSA 6.3, so I'm thinking that some combination of OMSA 6.4 and the PERC 4 isn't giving enough info to check_openmanage for it to know that the logical drive is there. The OMSA 6.4 GUI is getting the message somehow, but check_openmanage isn't. I'm happy to provide any other output to help debug. Thanks in advance for any assistance! SteveJ -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d ___ 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