Re: [Nagios-users] nagios newbie looking for guidance
On 11 May 2010 00:48, Giorgio Zarrelli zarre...@linux.it wrote: Start with the online docs, they are really helpful I agree. I'm newbie too and I'm finding too helpful -- Enrico Zimol -- ___ 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] Odd long URL
On 11 May 2010 01:45, ward.p.fonte...@wellsfargo.com wrote: Hello, “How can I monitor the following URL with Nagios?” http://server.domain.com/crltest/http?server=server-m3.domain.compath=/CRL/crl=test.crl What do you mean with check? Check the result of your http request (202, 403 etc) or check the page to find an expression? -- Enrico Zimol -- ___ 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] Monitor network traffic
What I am looking for is something like this, but I would prefer something more basic - I have only a handful of servers I want to monitor the network bandwith on, and to be honest MRTG looks like it has way more functionality than I need. I really just want something basic. What platforms exactly? -- ___ 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] UTF-8 characters in Nagios UI
Is this relevant? http://www.mail-archive.com/pld-cvs-com...@lists.pld-linux.org/msg195151.html Looks like it might be but I don't really understand it. I'm using Nagios Version 3.0.6 on CentOS. I wonder if this is fixed in a later version. Ian I think the status info is Ajax-ed in... If so, it’s a separate HTTP request and process to display it, so being “different” should come as no surprise. Thanks guys for head ups. Richard: There is no Ajax in whole CGI UI. I tried modifying few things in status.c but things didn't seem to work out. I will try again sometime :) Warm regards. -- ___ 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_snmp_netint, stats pb.
Hello, I use to check the speed and the stae of my interfaces the plugin check_snmp_netint.pl ( http://exchange.nagios.org/directory/Plugins/Uncategorized/Software/SNMP/Advanced-Network-Interface-Check/details) with this command: /check_snmp_netint.pl -H $HOSTADDRESS$ -C $USER2$ --2 -n $ARG1$ -y -k -B -M -w$ARG2$ -c$ARG3$ So on my interface where my nagios server is directly connected (FA0/0 BI1800), the stats are show and calculated, but on the others interfaces i've this message: no usable data - 0 rows, I don't no where the problem could come. [URL= http://photomaniak.com/upload/out.php/i964250_Debits.PNG][IMG]http://photomaniak.com/upload/out.php/t964250_Debits.PNG[/IMG][/URL ] Thanks per advance. (Srry for my bad english i'm a french user.) -- ___ 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_disk plugin
Hi Davide. Sorry it took so long for me to respond, I had to wait for my plugin to be approved before it would show up on Nagios Exchange. I don't know if you have already solved you disk regex problem or not, but I uploaded the one that I wrote and use if you want to give it a whirl. http://exchange.nagios.org/directory/Plugins/System-Metrics/File-System/ check_disk_snmp/details If you decide to try it out, please do read the help! (-h and for more details: -H) I have been able to use it to do something like you mentioned, but mine is not multiple -i arguments. Instead, it is a single -i followed by multiple expressions, each comma separated. e.g. your example would look like this with my script: -i '/my/fist/,/second/' HTH, Brent -Original Message- From: Davide Blasi [mailto:davide.bl...@infracom.it] Sent: Thursday, May 06, 2010 1:01 PM To: Nagios Users List Subject: Re: [Nagios-users] check_disk plugin Aidan Anderson wrote : Davide Blasi wrote: with or without quotes give me the same result :( Try using single quotes, e.g. -I '/my/fist/.*' -I '/second/.*' No, It doesn't works :( But I don't think that is a quote problem. If I invert path order, the check correctly accepts first argument but ignore the others. Dave -- ___ 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 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] (no subject)
Good Day every one, I am looking for a way to present the Tactical Monitoring Overview page as part of a dashboard (without the left hand column) can any one point me in the direction to achieve this. Thanks, Luis -- ___ 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] (no subject)
Lacayo, Luis F wrote: Good Day every one, I am looking for a way to present the Tactical Monitoring Overview page as part of a dashboard (without the left hand column) can any one point me in the direction to achieve this. Thanks, Luis use the direct url to call the tac.cgi i.e : http://nagios.server/nagios/tac.cgi -- Never,Ever Cut A Deal With a Dragon I am doing a Charity Bike ride On the 27 of June for the Capital to Coast Charity. Please help by Donating http://www.justgiving.com/Lovefilm-capital-to-coast -- ___ 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] (no subject)
If you open it as a new page, it will only show the tac screen. you can use the url as your path to the screen. Steve Date: Tue, 11 May 2010 08:49:37 -0500 From: lflac...@cps.k12.il.us To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] (no subject) Good Day every one, I am looking for a way to present the Tactical Monitoring Overview page as part of a dashboard (without the left hand column) can any one point me in the direction to achieve this. Thanks, Luis -- ___ 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 _ The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with Hotmail. http://www.windowslive.com/campaign/thenewbusy?tile=multicalendarocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5-- ___ 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 Appender - NagiosIncludeExcludeFilters.properties
Hi Folks I am having some difficulty with the Filters.properties file which is used with the nagios appender for the log4j. Now the appender is working fine which is great as it speaking to nagios etc. However I am looking to use the filter file which is causing me a little bit of a grief. Now when turning this on and applying some filters to appears to be blocking everything. All the documentation which I can find the matter is pretty hazy. I am looking for someone who has used this filter and how to apply it to JBoss and block all those annoying errors. If anybody could shed some light on the matter that would be fantastic! Kindest Regards Raymond -- ___ 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 question on check_http to over 100 sites
I have a need to verify that vendor urls for my company do not change. Since we only allow our locations to see approved urls, this is important. I was hoping there was some way I could use a macro to do the check_http and have all of the urls for the sites listed as the macro contents . Something like this - define url{ url_namewww.test.com,www.test2.com,www.test3.com. check_command check_http ... } define command{ command_namecheck_http command_line/usr/local/nagios/plugins/check_http -L $URL$ -c $ARG1$ -w $ARG2$ } Can I create a $URL$ macro for use here? Would doing something like this work? Is there an easier way for me to have a single host ( localhost) to verify the list of 100 + urls ? The plan is to do it 1 time a day send a notification of it fails to get there. They can then update the approved list of the new url. Is it not advisable to use check_http in this manner? I am using it to watch a corporate now it has been reliable. Thanks, Steve _ The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail. http://www.windowslive.com/campaign/thenewbusy?tile=multiaccountocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4-- ___ 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 question on check_http to over 100 sites
steve f wrote: I have a need to verify that vendor urls for my company do not change. Since we only allow our locations to see approved urls, this is important. I was hoping there was some way I could use a macro to do the check_http and have all of the urls for the sites listed as the macro contents . Something like this - define url{ url_namewww.test.com,www.test2.com,www.test3.com. check_command check_http ... } define command{ command_namecheck_http command_line/usr/local/nagios/plugins/check_http -L $URL$ -c $ARG1$ -w $ARG2$ } Can I create a $URL$ macro for use here? Would doing something like this work? Is there an easier way for me to have a single host ( localhost) to verify the list of 100 + urls ? The plan is to do it 1 time a day send a notification of it fails to get there. They can then update the approved list of the new url. Is it not advisable to use check_http in this manner? I am using it to watch a corporate now it has been reliable. Thanks, Steve you can make it with a hostgroup and -I in the check_http request . that way you do not need to define a macro , but use existing configuration and capabilities with in nagios . use a template for all the base definitions and just add the url in the host name example: define host{ name url-host hostgroups url-hosts check_period24x7 check_interval 5 retry_interval 1 max_check_attempts 3 passive_checks_enabled 1 active_checks_enabled 0 notification_period 24x7 notification_interval 60 notification_optionsd,r contact_groups admins check_commandcheck-url register0 } define command{ command_namecheck-url command_line$USER1$/check_http -I $HOSTADDRESS$ $ARG1$ $ARG2$ $ARG3$ } define host{ use url-host host_name foo.bar alias just some site address www.foo.bar } -- Never,Ever Cut A Deal With a Dragon I am doing a Charity Bike ride On the 27 of June for the Capital to Coast Charity. Please help by Donating http://www.justgiving.com/Lovefilm-capital-to-coast -- ___ 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 question on check_http to over 100 sites
Le Tue, 11 May 2010 11:21:05 -0400, steve f a31mod...@hotmail.com a écrit : Can I create a $URL$ macro for use here? Would doing something like this work? You can define custom object variables [1] on host and/or service. http://nagios.sourceforge.net/docs/3_0/customobjectvars.html -- Flyinvap -- ___ 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] Odd long URL
On Tue, May 11, 2010 at 12:13, ward.p.fonte...@wellsfargo.com wrote: Check_http returns an incorrect response code, check_http returns the following [r...@pkinagios plugins]# HTTP WARNING: HTTP/1.1 404 Not Found - 1099 bytes in 0.177 second response time |time=0.176506s;;;0.00 size=1099B;;;0 While our BB server returns a 200 - which is correct. Of course I could very well be using check_http incorrectly, I have tried both of the following and neither return the correct value ./check_http http://server.domain.com/crltest/http?server=server-m3.domain.compath=/CRL/crl=ent.crl ./check_http -H server.domain.com -u /crltest/http?server= server-m3.domain.compath=/CRL/crl=ent.crl Can you confirm you used quotes or shell-escapes to get around the bare ? -- all...@chickenandporn.com 金鱼 http://linkedin.com/in/goldfish please, no proprietary attachments (http://tinyurl.com/cbgq) -- ___ 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] Odd long URL
Could it be from the metacharacters on the command line? What do you get if you enclose the entire URL in single quotes? -Original Message- From: ward.p.fonte...@wellsfargo.com [mailto:ward.p.fonte...@wellsfargo.com] Sent: Tuesday, May 11, 2010 12:14 PM To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Odd long URL Check_http returns an incorrect response code, check_http returns the following [r...@pkinagios plugins]# HTTP WARNING: HTTP/1.1 404 Not Found - 1099 bytes in 0.177 second response time |time=0.176506s;;;0.00 size=1099B;;;0 While our BB server returns a 200 - which is correct. Of course I could very well be using check_http incorrectly, I have tried both of the following and neither return the correct value ./check_http http://server.domain.com/crltest/http?server=server-m3.domain.compath=/ CRL/crl=ent.crl ./check_http -H server.domain.com -u /crltest/http?server=server-m3.domain.compath=/CRL/crl=ent.crl -Original Message- From: Enrico Zimol [mailto:lomiz.m...@gmail.com] Sent: Tuesday, May 11, 2010 12:34 AM To: Nagios Users List Subject: Re: [Nagios-users] Odd long URL On 11 May 2010 01:45, ward.p.fonte...@wellsfargo.com wrote: Hello, How can I monitor the following URL with Nagios? http://server.domain.com/crltest/http?server=server-m3.domain.compath=/ CRL/crl=test.crl What do you mean with check? Check the result of your http request (202, 403 etc) or check the page to find an expression? -- Enrico Zimol -- ___ 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 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 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] Odd long URL
Try double quoting the URL. Ciao, Giorgio Il giorno 11/mag/2010, alle ore 18.13, ward.p.fonte...@wellsfargo.com ha scritto: Check_http returns an incorrect response code, check_http returns the following [r...@pkinagios plugins]# HTTP WARNING: HTTP/1.1 404 Not Found - 1099 bytes in 0.177 second response time |time=0.176506s;;;0.00 size=1099B;;;0 While our BB server returns a 200 - which is correct. Of course I could very well be using check_http incorrectly, I have tried both of the following and neither return the correct value ./check_http http://server.domain.com/crltest/http?server=server-m3.domain.compath=/CRL/crl=ent.crl ./check_http -H server.domain.com -u /crltest/http?server=server- m3.domain.compath=/CRL/crl=ent.crl -Original Message- From: Enrico Zimol [mailto:lomiz.m...@gmail.com] Sent: Tuesday, May 11, 2010 12:34 AM To: Nagios Users List Subject: Re: [Nagios-users] Odd long URL On 11 May 2010 01:45, ward.p.fonte...@wellsfargo.com wrote: Hello, How can I monitor the following URL with Nagios? http://server.domain.com/crltest/http?server=server-m3.domain.compath=/CRL/crl=test.crl What do you mean with check? Check the result of your http request (202, 403 etc) or check the page to find an expression? -- Enrico Zimol --- --- --- - ___ 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 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 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 plugin problem using check_nrpe
Hi. I'm writing a new Nagios plugin that will be responsible to monitor the server internal components temperature. I have a Proliant DL380 G5 with the HP Management CLI for Linux installed on it, and I wrote a perl program to check the Temperature. When I execute the perl script directly from the command prompt, I receive a message indicating the behavior of the Temperature. But, when I call this script perl using check_nrpe command, I received the same message, but the information of the temperature stays in blank. Following are my nrpe.cfg configuration file and the perl script. Does anybody know how can I fix this? NRPE.CFG pid_file=/var/run/nrpe.pid server_port=5666 nrpe_user=nagios nrpe_group=nagios allowed_hosts=172.16.4.56,localhost dont_blame_nrpe=0 debug=1 command_timeout=60 connection_timeout=300 command[check_load]=/usr/local/nagios/libexec/check_load -w 3,3,3 -c 4,4,4 command[check_sda1]=/usr/local/nagios/libexec/check_disk -w 15% -c 10% -p /dev/mapper/vg01-lvol1 command[check_sda2]=/usr/local/nagios/libexec/check_disk -w 15% -c 10% -p /dev/cciss/c0d0p1 command[check_sda3]=/usr/local/nagios/libexec/check_disk -w 15% -c 10% -p /dev/mapper/vg01-lvol6 command[check_sda4]=/usr/local/nagios/libexec/check_disk -w 15% -c 10% -p /dev/mapper/vg01-lvol4 command[check_sda5]=/usr/local/nagios/libexec/check_disk -w 15% -c 10% -p /dev/mapper/vg01-lvol3 command[check_sda6]=/usr/local/nagios/libexec/check_disk -w 15% -c 10% -p /dev/mapper/vg01-lvol2 command[check_sda7]=/usr/local/nagios/libexec/check_disk -w 15% -c 10% -p /dev/sda7 command[check_sda8]=/usr/local/nagios/libexec/check_disk -w 15% -c 10% -p /dev/sda8 command[check_sda9]=/usr/local/nagios/libexec/check_disk -w 15% -c 10% -p /dev/sda9 command[check_sda10]=/usr/local/nagios/libexec/check_disk -w 15% -c 10% -p /dev/sda10 command[check_drbd0]=/usr/local/nagios/libexec/check_disk -w 15% -c 10% -p /dev/drbd0 command[check_drbd1]=/usr/local/nagios/libexec/check_disk -w 15% -c 10% -p /dev/drbd1 command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs -w 2 -c 4 -s Z command[check_informix]=/usr/local/nagios/libexec/check_procs -c 1:50 -C oninit command[check_crond]=/usr/local/nagios/libexec/check_procs -c 1:50 -C crond command[check_cupsd]=/usr/local/nagios/libexec/check_procs -c 1:50 -C cupsd command[check_freemem]=/usr/local/nagios/libexec/check_mem.pl -w 10 -c 5 -f command[check_swap]=/usr/local/nagios/libexec/check_swap -w 90% -c 80% command[check_bonding]=/usr/local/nagios/libexec/check_linux_bonding command[check_iozone]=/usr/local/nagios/libexec/check_temperature_hp.pl -s1 -w80 -c85 command[check_ambient]=/usr/local/nagios/libexec/check_temperature_hp.pl -s2 -w80 -c85 command[check_sensor1_cpu1]=/usr/local/nagios/libexec/check_temperature_hp.pl -s3 -w80 -c85 command[check_sensor2_cpu1]=/usr/local/nagios/libexec/check_temperature_hp.pl -s4 -w80 -c85 command[check_teste]=/usr/local/nagios/libexec/check_teste.pl -s 4 -w 80 -c 85 The Perl program: #! /usr/bin/perl -w # $Id: check_teste.pl use lib /usr/local/nagios/libexec ; # Tell Perl what we need to use use strict; use Getopt::Std; # Predefined exit codes for Nagios use vars qw($opt_s $opt_c $opt_f $opt_u $opt_w $opt_C $opt_v %exit_codes); #use vars qw($numero $descricao $tempatual $templimite $sensor); %exit_codes = ('UNKNOWN' ,-1, 'OK' , 0, 'WARNING' , 1, 'CRITICAL', 2, ); # Get our variables, do our checking: init(); get_temperature(); # Show usage sub usage() { print \ncheck_mem.pl v1.0 - Nagios Plugin\n\n; print usage:\n; print check_mem.pl -f|u -w warnlevel -c critlevel\n\n; print options:\n; print -f Check FREE memory\n; print -u Check USED memory\n; print -C Count OS caches as FREE memory\n; print -w PERCENT Percent free/used when to warn\n; print -c PERCENT Percent free/used when critical\n; print \nCopyright (C) 2000 Dan Larsson d...@tyfon.net\n; print check_mem.pl comes with absolutely NO WARRANTY either implied or explicit\n; print This program is licensed under the terms of the\n; print GNU General Public License (check source code for details)\n; exit $exit_codes{'UNKNOWN'}; } #- # Verifica parametros passados #- sub init { # Get the options if ($#ARGV le 0) { usage; } else { getopts('c:s:w:vh'); } # Shortcircuit the switches if (!$opt_w or $opt_w == 0 or !$opt_c or $opt_c == 0) { print *** You must define WARN and CRITICAL levels!\n; usage; } elsif (!$opt_s) { print *** You must select the SENSOR number!\n; usage; } # Check if levels are sane if ($opt_w = $opt_c) { print *** WARN level must not be greather than CRITICAL!\n;
Re: [Nagios-users] Odd long URL
Thanks everyone, for future reference it worked like this for me ./check_http -H server.domain.com -u /crltest/http?server=server-m3.domain.compath=/CRL/crl=ent.crl -Original Message- From: Giorgio Zarrelli [mailto:zarre...@linux.it] Sent: Tuesday, May 11, 2010 9:32 AM To: Nagios Users List Cc: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Odd long URL Try double quoting the URL. Ciao, Giorgio Il giorno 11/mag/2010, alle ore 18.13, ward.p.fonte...@wellsfargo.com ha scritto: Check_http returns an incorrect response code, check_http returns the following [r...@pkinagios plugins]# HTTP WARNING: HTTP/1.1 404 Not Found - 1099 bytes in 0.177 second response time |time=0.176506s;;;0.00 size=1099B;;;0 While our BB server returns a 200 - which is correct. Of course I could very well be using check_http incorrectly, I have tried both of the following and neither return the correct value ./check_http http://server.domain.com/crltest/http?server=server-m3.domain.compath=/CRL/crl=ent.crl ./check_http -H server.domain.com -u /crltest/http?server=server- m3.domain.compath=/CRL/crl=ent.crl -Original Message- From: Enrico Zimol [mailto:lomiz.m...@gmail.com] Sent: Tuesday, May 11, 2010 12:34 AM To: Nagios Users List Subject: Re: [Nagios-users] Odd long URL On 11 May 2010 01:45, ward.p.fonte...@wellsfargo.com wrote: Hello, How can I monitor the following URL with Nagios? http://server.domain.com/crltest/http?server=server-m3.domain.compath=/CRL/crl=test.crl What do you mean with check? Check the result of your http request (202, 403 etc) or check the page to find an expression? -- Enrico Zimol --- --- --- - ___ 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 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 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 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 plugin problem using check_nrpe
Antonio Fernando Evangelista wrote: Hi. I’m writing a new Nagios plugin that will be responsible to monitor the server internal components temperature. I have a Proliant DL380 G5 with the HP Management CLI for Linux installed on it, and I wrote a perl program to check the Temperature. When I execute the perl script directly from the command prompt, I receive a message indicating the behavior of the Temperature. But, when I call this script perl using check_nrpe command, I received the same message, but the information of the temperature stays in blank. Following are my nrpe.cfg configuration file and the perl script. Does anybody know how can I fix this? *_NRPE.CFG_* pid_file=/var/run/nrpe.pid server_port=5666 nrpe_user=nagios nrpe_group=nagios allowed_hosts=172.16.4.56,localhost dont_blame_nrpe=0 debug=1 command_timeout=60 connection_timeout=300 command[check_load]=/usr/local/nagios/libexec/check_load -w 3,3,3 -c 4,4,4 command[check_sda1]=/usr/local/nagios/libexec/check_disk -w 15% -c 10% -p /dev/mapper/vg01-lvol1 command[check_sda2]=/usr/local/nagios/libexec/check_disk -w 15% -c 10% -p /dev/cciss/c0d0p1 command[check_sda3]=/usr/local/nagios/libexec/check_disk -w 15% -c 10% -p /dev/mapper/vg01-lvol6 command[check_sda4]=/usr/local/nagios/libexec/check_disk -w 15% -c 10% -p /dev/mapper/vg01-lvol4 command[check_sda5]=/usr/local/nagios/libexec/check_disk -w 15% -c 10% -p /dev/mapper/vg01-lvol3 command[check_sda6]=/usr/local/nagios/libexec/check_disk -w 15% -c 10% -p /dev/mapper/vg01-lvol2 command[check_sda7]=/usr/local/nagios/libexec/check_disk -w 15% -c 10% -p /dev/sda7 command[check_sda8]=/usr/local/nagios/libexec/check_disk -w 15% -c 10% -p /dev/sda8 command[check_sda9]=/usr/local/nagios/libexec/check_disk -w 15% -c 10% -p /dev/sda9 command[check_sda10]=/usr/local/nagios/libexec/check_disk -w 15% -c 10% -p /dev/sda10 command[check_drbd0]=/usr/local/nagios/libexec/check_disk -w 15% -c 10% -p /dev/drbd0 command[check_drbd1]=/usr/local/nagios/libexec/check_disk -w 15% -c 10% -p /dev/drbd1 command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs -w 2 -c 4 -s Z command[check_informix]=/usr/local/nagios/libexec/check_procs -c 1:50 -C oninit command[check_crond]=/usr/local/nagios/libexec/check_procs -c 1:50 -C crond command[check_cupsd]=/usr/local/nagios/libexec/check_procs -c 1:50 -C cupsd command[check_freemem]=/usr/local/nagios/libexec/check_mem.pl -w 10 -c 5 -f command[check_swap]=/usr/local/nagios/libexec/check_swap -w 90% -c 80% command[check_bonding]=/usr/local/nagios/libexec/check_linux_bonding command[check_iozone]=/usr/local/nagios/libexec/check_temperature_hp.pl -s1 -w80 -c85 command[check_ambient]=/usr/local/nagios/libexec/check_temperature_hp.pl -s2 -w80 -c85 command[check_sensor1_cpu1]=/usr/local/nagios/libexec/check_temperature_hp.pl -s3 -w80 -c85 command[check_sensor2_cpu1]=/usr/local/nagios/libexec/check_temperature_hp.pl -s4 -w80 -c85 command[check_teste]=/usr/local/nagios/libexec/check_teste.pl -s 4 -w 80 -c 85 *_The Perl program:_* #! /usr/bin/perl -w # $Id: check_teste.pl use lib /usr/local/nagios/libexec ; # Tell Perl what we need to use use strict; use Getopt::Std; # Predefined exit codes for Nagios use vars qw($opt_s $opt_c $opt_f $opt_u $opt_w $opt_C $opt_v %exit_codes); #use vars qw($numero $descricao $tempatual $templimite $sensor); %exit_codes = ('UNKNOWN' ,-1, 'OK' , 0, 'WARNING' , 1, 'CRITICAL', 2, ); # Get our variables, do our checking: init(); get_temperature(); # Show usage sub usage() { print \ncheck_mem.pl v1.0 - Nagios Plugin\n\n; print usage:\n; print check_mem.pl -f|u -w warnlevel -c critlevel\n\n; print options:\n; print -f Check FREE memory\n; print -u Check USED memory\n; print -C Count OS caches as FREE memory\n; print -w PERCENT Percent free/used when to warn\n; print -c PERCENT Percent free/used when critical\n; print \nCopyright (C) 2000 Dan Larsson d...@tyfon.net\n; print check_mem.pl comes with absolutely NO WARRANTY either implied or explicit\n; print This program is licensed under the terms of the\n; print GNU General Public License (check source code for details)\n; exit $exit_codes{'UNKNOWN'}; } #- # Verifica parametros passados #- sub init { # Get the options if ($#ARGV le 0) { usage; } else { getopts('c:s:w:vh'); } # Shortcircuit the switches if (!$opt_w or $opt_w == 0 or !$opt_c or $opt_c == 0) { print *** You must define WARN and CRITICAL levels!\n; usage; } elsif (!$opt_s) { print *** You must select the SENSOR number!\n; usage; } # Check if levels are sane if ($opt_w = $opt_c) { print *** WARN level must not be greather than CRITICAL!\n;
Re: [Nagios-users] Nagios plugin problem using check_nrpe
Antonio Fernando Evangelista wrote: [r...@lnxaphmoa04 libexec]# /usr/local/nagios/libexec/check_teste.pl -s4 -w80 -c85 OK: TEMPERATURA ATUAL: 30 C - THRESHOLD: 127 C *If I execute the script calling through the check_nrpe command:* [r...@lnxaphmoa04 libexec]# /usr/local/nagios/libexec/check_nrpe -H localhost -c check_teste CRITICAL: TEMPERATURA ATUAL: C - THRESHOLD: C You're running the check as root, but NRPE executes checks as the nagios user. You'll probably be able to replicate the empty variables f you run: [r...@lnxaphmoa04 libexec]# sudo -H -u nagios /usr/local/nagios/libexec/check_teste.pl -s4 -w80 -c85 The solution is: 1. Add permissions in sudoers for the nagios user to exec that script as root without a password. The following line would allow the nagios user to do passwordless sudo on any plugins: nagios ALL=(root) NOPASSWD:/usr/lcoal/nagios/libexec/ 2. Change your nrpe.cfg to be: command[check_teste]=/path/to/sudobinary /usr/local/nagios/libexec/check_teste.pl -s 4 -w 80 -c 85 3. Restart npre -- Sean McAfee Senior Systems Engineer -- ___ 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] UTF-8 characters in Nagios UI
As I look at the ³Technical Monitoring Overview² frame on my laptop proof of concept install, there is no DOCTYPE, and the encoding is ISO-8859-1... #fail On 5/11/10 3:07 AM, Kumar, Ashish xml.de...@gmail.com wrote: Is this relevant? http://www.mail-archive.com/pld-cvs-com...@lists.pld-linux.org/msg195151.html Looks like it might be but I don't really understand it. I'm using Nagios Version 3.0.6 on CentOS. I wonder if this is fixed in a later version. Ian I think the status info is Ajax-ed in... If so, it¹s a separate HTTP request and process to display it, so being ³different² should come as no surprise. Thanks guys for head ups. Richard: There is no Ajax in whole CGI UI. I tried modifying few things in status.c but things didn't seem to work out. I will try again sometime :) Warm regards. -- ___ 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 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] RES: Nagios plugin problem using check_nrpe
Hi All, I solved my problem including enabling the user nagios to execute the command /sbin/hpasmcli as root user. Thank all of you. Regards, Antonio Evangelista Especialista de Sistemas - Infraestrutura - TI DASA - www.dasa.com.br e-mail: antonio.evangeli...@dasa.com.br Tel.: (11) 4197-5450 Nextel: (11) 7719-4643 - 55*6013*626 -Mensagem original- De: Sean McAfee [mailto:smca...@collaborativefusion.com] Enviada em: terça-feira, 11 de maio de 2010 13:52 Para: Nagios Users List Assunto: Re: [Nagios-users] Nagios plugin problem using check_nrpe Antonio Fernando Evangelista wrote: [r...@lnxaphmoa04 libexec]# /usr/local/nagios/libexec/check_teste.pl -s4 -w80 -c85 OK: TEMPERATURA ATUAL: 30 C - THRESHOLD: 127 C *If I execute the script calling through the check_nrpe command:* [r...@lnxaphmoa04 libexec]# /usr/local/nagios/libexec/check_nrpe -H localhost -c check_teste CRITICAL: TEMPERATURA ATUAL: C - THRESHOLD: C You're running the check as root, but NRPE executes checks as the nagios user. You'll probably be able to replicate the empty variables f you run: [r...@lnxaphmoa04 libexec]# sudo -H -u nagios /usr/local/nagios/libexec/check_teste.pl -s4 -w80 -c85 The solution is: 1. Add permissions in sudoers for the nagios user to exec that script as root without a password. The following line would allow the nagios user to do passwordless sudo on any plugins: nagios ALL=(root) NOPASSWD:/usr/lcoal/nagios/libexec/ 2. Change your nrpe.cfg to be: command[check_teste]=/path/to/sudobinary /usr/local/nagios/libexec/check_teste.pl -s 4 -w 80 -c 85 3. Restart npre -- Sean McAfee Senior Systems Engineer -- ___ 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 Esta mensagem, incluindo seus anexos, pode conter informações privilegiadas e/ou de caráter confidencial, não podendo ser retransmitida sem autorização do remetente. Se você não é o destinatário ou pessoa autorizada a recebê-la, informamos que o seu uso, divulgação, cópia ou arquivamento são proibidos. Portanto, se você recebeu esta mensagem por engano, por favor, nos informe respondendo imediatamente a este e-mail e em seguida apague-a. This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation. -- ___ 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] turning off service inheritance of host settings?
I don't suppose there's any way (short of changing the source and recompiling) to turn off the feature of inheriting host settings to services? This is one thing I've found *really* annoying about 3.2.0 and would like to have a way to turn it off. I didn't see anything in the docs or in the nagios.cfg file that let me turn this behavior on or off or something I could put in a host or service setting that would let me disable it. Thanks Mark -- ___ 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 compilation on HPUX
2010/2/11 Frost, Mark {PBG} mark.fro...@pepsi.com: It's kind of strange, but I know I had the problem you're having at one point, but I no longer seem to have it on HPUX 11.31 (IA64). I wonder if there was some OS patch that was applied that took care of that. The OS level on our servers is shown as HP-UX B.11.31 U ia64 1200835863 if that helps. swlist does show that we have an installed tcp wrapper package, however: HPUX-TCPWRAP B.11.31 HPUX TCPWrapper daemon 'nm' shows that there is a fromhost() entity in /usr/lib/libwrap.sl (libwrap.1) Unless I'm mistaken, your issue is with the libwrap library which I think exists on HPUX, but isn't complete as far as NRPE is concerned. I never spent a lot of time trying to find a generalized solution to this, but instead kind of hacked something into nrpe.c where I think I just commented out some of the #ifdef HAVE_LIBWRAP code segments. Note that the fromhost() call you're missing is in one of the HAVE_LIBRWRAP sections. I believe that NRPE expects that . We don’t use TCP wrappers anyway, so it's not a loss. I first encountered this issue with PA-RISC HPUX and I believe the way I got around was to download the latest tcp wrapper code from the internet, then pulled out the function that I was missing (I don't recall if it was from host My current issue with NRPE on HPUX is twofold -- the lack of some syslog capabilities, and that the configure script doesn't correctly find our SSL libraries. I have made the following 2 hacky changes to make ours work: *** configure.old Mon Mar 31 13:49:11 2008 --- configure Thu Feb 11 11:07:10 2010 *** *** 6676,6686 fi done ! if test x_$found_ssl != x_yes; then ! { { echo $as_me:$LINENO: error: Cannot find ssl libraries 5 ! echo $as_me: error: Cannot find ssl libraries 2;} ! { (exit 1); exit 1; }; } ! else printf SSL libraries found in $ssllibdir\n; LDFLAGS=$LDFLAGS -L$ssllibdir; --- 6676,6686 fi done ! # if test x_$found_ssl != x_yes; then ! # { { echo $as_me:$LINENO: error: Cannot find ssl libraries 5 ! #echo $as_me: error: Cannot find ssl libraries 2;} ! # { (exit 1); exit 1; }; } ! # else printf SSL libraries found in $ssllibdir\n; LDFLAGS=$LDFLAGS -L$ssllibdir; *** *** 6701,6707 fi # awk to strip off meta data at bottom of dhparam output $sslbin dhparam -C 512 | awk '/^-/ {exit} {print}' include/dh.h ! fi fi echo $as_me:$LINENO: checking for Kerberos include files 5 --- 6701,6707 fi # awk to strip off meta data at bottom of dhparam output $sslbin dhparam -C 512 | awk '/^-/ {exit} {print}' include/dh.h ! # fi fi echo $as_me:$LINENO: checking for Kerberos include files 5 *** src/nrpe.c.old Mon Mar 31 14:02:59 2008 --- src/nrpe.c Thu Feb 11 11:18:34 2010 *** *** 613,622 log_facility=LOG_UUCP; else if(!strcmp(varvalue,cron)) log_facility=LOG_CRON; ! else if(!strcmp(varvalue,authpriv)) log_facility=LOG_AUTHPRIV; else if(!strcmp(varvalue,ftp)) ! log_facility=LOG_FTP; else if(!strcmp(varvalue,local0)) log_facility=LOG_LOCAL0; else if(!strcmp(varvalue,local1)) --- 613,622 log_facility=LOG_UUCP; else if(!strcmp(varvalue,cron)) log_facility=LOG_CRON; ! /* else if(!strcmp(varvalue,authpriv)) log_facility=LOG_AUTHPRIV; else if(!strcmp(varvalue,ftp)) ! log_facility=LOG_FTP; */ else if(!strcmp(varvalue,local0)) log_facility=LOG_LOCAL0; else if(!strcmp(varvalue,local1)) Hope that's helpful. Mark Thanks a lot for your feedback, I finally had some time to finish this pending task and took some notes about the procedure. Ref: http://cyruspy.wordpress.com/2010/05/11/compiling-nrpe-in-hpux-11-31-2/ Regards, -- Ciro Iriarte http://cyruspy.wordpress.com -- -- ___ 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