Re: [Nagios-users] alerts still received each hour
hello here is the templates: define host{ namegeneral-server use generic-host check_period24x7 max_check_attempts 10 check_command check-host-alive notification_interval 120 notification_optionsd,u,r contact_groups admins register0 } define host{ namegeneric-host ; The name of this host template notifications_enabled 1 ; Host notifications are enabled event_handler_enabled 1 ; Host event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled failure_prediction_enabled 1 ; Failure prediction is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information1 ; Retain non-status information across program restarts notification_period 24x7 ; Send host notifications at any time register0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! } --- "Valdinger, Stephen (DOV, MSX)" <[EMAIL PROTECTED]> wrote: > What does your template look like for the host? > Could you post that too? > > Stephen Valdinger > MIS Helpdesk Coordinator > 330-365-3622 > [EMAIL PROTECTED] > > > Why do we tell computers to shut down and people to > shut up? > > -Original Message- > From: Melanie Pfefer > [mailto:[EMAIL PROTECTED] > Sent: Friday, February 29, 2008 10:51 AM > To: nagios-users@lists.sourceforge.net > Subject: [Nagios-users] alerts still received each > hour > > hello again > > I added this to escalation.cfg > > define hostescalation{ > host_name zeus > contact_groups admins > first_notification 1 > last_notification 3 > notification_interval 180 > } > > Hosts.cfg > > define host{ > use general-server > host_name zeus > alias zeus > address 172.21.192.17 > notification_interval 180 > } > > I am still receiving an alert every 1 hour > > could you please advise? > thanks. > > > > ___ > Yahoo! Answers - Got a question? Someone out there > knows the answer. Try it > now. > http://uk.answers.yahoo.com/ > > - > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio > 2008. > http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ > ___ > 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 > > ___ Yahoo! Answers - Got a question? Someone out there knows the answer. Try it now. http://uk.answers.yahoo.com/ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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 compared to Sun's SMC
Don, On Thu, Feb 21, 2008 at 4:40 PM, Don Shesnicky <[EMAIL PROTECTED]> wrote: > wondering if anyone on the list has compared Nagios to Sun Management > Center or has thoughts on the two? We're a Solaris shop and the > container/zone features of SMC are definitely of interest but my While SMC has a web based console too, Nagios has a bit less overhead and better handling of root cause. Being from a heavy Sun shop too, we're looking at running both as it supports Sun N1 Provisioning, with Nagios being more the big picture look and SMC for day-to-day management and drill-down. Either way, dedicate a machine for this ... we have a Sun T1000 set aside. Nagios is also great for an "outside" prospective look at your network. We have a web application environment with a Nagios install stood up on a VPS account. This provides an external view of our websites without the overhead of SMC. Nagios also provides better support for multiple platforms (i.e. CISCO, .Windows 2003, ...), unless you can use SNMP then both products can see everything. Sincerely, Justin -- Attention Sales And Marketing Professionals Who Serve B2B Executives http://hittpublishingdirect.com/ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] Retention?
> -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Ugo Bellavance > Sent: Friday, February 29, 2008 2:21 PM > To: nagios-users@lists.sourceforge.net > Subject: Re: [Nagios-users] Retention? > > Marc Powell wrote: > > > > You need to set the values of retain_status_information and > > retain_nonstatus_information in your service definitions. > > > > http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#service > > define host{ > namestd_host_templ > alias Standard Host Template > All my hosts have > > "use std_host_templ" > > in their definitions. That's great but weren't you asking about services? The template above doesn't have any effect on the service retentions. -- Marc - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] Retention?
Adam Kennedy wrote: > State retention data is written to the retention file at the interval > specified by retention_update_interval > The default is to write it every hour. [EMAIL PROTECTED] nagios]# grep retention nagios.cfg state_retention_file=/var/log/nagios/status.dat retention_update_interval=60 > This is also dependent on how you are restarting nagios. Killing off the > process with -9 won't allow nagios to write it's data. I'm using the init scripts, using reload or restart. No -9 there. > I would also check the permissions of the retention file to verify > nagios can write to it. Does that file have any data in it? Yes, full of data. Timestamp shows that it is updated: [EMAIL PROTECTED] nagios]# ll /var/log/nagios/status.dat -rw-rw-r-- 1 nagios nagios 167055 Feb 29 15:22 /var/log/nagios/status.dat (it is 15:22 right now) Ugo - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] Retention?
Marc Powell wrote: > > You need to set the values of retain_status_information and > retain_nonstatus_information in your service definitions. > > http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#service define host{ namestd_host_templ alias Standard Host Template check_command check_host_alive max_check_attempts 5 check_interval 5 active_checks_enabled 1 passive_checks_enabled 0 check_periodnone event_handler_enabled 0 process_perf_data 1 retain_status_information 1 retain_nonstatus_information1 contact_groups fsl-support notification_interval 30 notification_period 24x7 notifications_enabled 0 register0 } All my hosts have "usestd_host_templ" in their definitions. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] nrpe oddity
Hi, I'm trying to use a nagios plugin to monitor sendmail instances. When I run the plugin locally, using user nagios, I get the right result: [EMAIL PROTECTED]:/var/log> /usr/local/nagios/libexec/check_sendmail_instances --sender [OK sender] However, if I run it via nrpe, I get another result. -sh-3.00$ /usr/lib/nagios/plugins/check_nrpe -c check_sendmail_out -H gandalf.selection-services.net [CRIT sender not running] The target host is a Suse system. I don't see this problem on Centos systems. I did a chown nagios:nagios on the check_sendmail Here are the nrpe logs on the Suse system (debug enabled): Feb 29 17:37:45 server1 nrpe[10971]: Running command: /usr/local/nagios/libexec/check_sendmail_instances --sender Feb 29 17:37:45 server1 nrpe[10971]: Command completed with return code 2 and output: [CRIT sender not running] Feb 29 17:37:45 server1 nrpe[10971]: Return Code: 2, Output: [CRIT sender not running] Any ideas of what could be doing that? Thanks, Ugo - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] Ethernet based sensors
See this thread: http://sourceforge.net/mailarchive/message.php?msg_id=Pine.LNX.4.64.0711280946090.24823%40kernel.panic.unc.edu On Fri, Feb 29, 2008 at 11:18:58AM -0600, Jeff Chapin wrote: > Hello, > > I am in the market for Nagios compatible environmental sensors, mainly > concerned with temperature, but humidity, etc would be a plus. We are > looking to buy 1-5 of them, and I was wondering if people have any good > (or bad) experience with these things, and have any recommendations. > > > > Only real requirement is Nagios friendly. > > > > Thanks, > > Jeff > > > > > > JEFF CHAPIN > SYSTEMS ADMINISTRATOR > > T8DESIGN.COM | P 319.266.7574 - x267 | 877.T8IDEAS | F 888.290.4675 > > > This e-mail, including attachments, is covered by the Electronic > Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential, and > may be legally privileged. If you are not the intended recipient, you > are hereby notified that any retention, dissemination, distribution, or > copying of this communication is strictly prohibited. Please reply to > the sender that you have received the message in error, and then please > delete it. Thank you. > > > > - > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ > ___ > 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 -- Russell Adams[EMAIL PROTECTED] PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint:1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3 - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] Ethernet based sensors
> -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Jeff Chapin > Sent: Friday, February 29, 2008 11:19 AM > To: nagios-users@lists.sourceforge.net > Subject: [Nagios-users] Ethernet based sensors > > Hello, > > I am in the market for Nagios compatible environmental sensors, mainly > concerned with temperature, but humidity, etc would be a plus. We are > looking to buy 1-5 of them, and I was wondering if people have any good > (or bad) experience with these things, and have any recommendations. > > > > Only real requirement is Nagios friendly. Ethan supports this one and you get a discount as a nagios user -- http://www.nagios.org/products/environmental/esensors/em01b.php -- Marc - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] Ethernet based sensors
Hi, Ingrasys have good products ... works well with SNMP in Nagios http://www.ingrasys.com/product/insentry/pd_insentry_1.htm -- Christophe Suire<[EMAIL PROTECTED]> Le 29 févr. 08 à 18:18, Jeff Chapin a écrit : > Hello, > I am in the market for Nagios compatible environmental sensors, > mainly concerned with temperature, but humidity, etc would be a > plus. We are looking to buy 1-5 of them, and I was wondering if > people have any good (or bad) experience with these things, and have > any recommendations. > > Only real requirement is Nagios friendly. > > Thanks, > Jeff > > > JEFF CHAPIN > SYSTEMS ADMINISTRATOR > T8DESIGN.COM | P 319.266.7574 - x267 | 877.T8IDEAS | F 888.290.4675 > > This e-mail, including attachments, is covered by the Electronic > Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential, > and may be legally privileged. If you are not the intended > recipient, you are hereby notified that any retention, > dissemination, distribution, or copying of this communication is > strictly prohibited. Please reply to the sender that you have > received the message in error, and then please delete it. Thank you. > > - > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ > 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 - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] Ethernet based sensors
Hello, I am in the market for Nagios compatible environmental sensors, mainly concerned with temperature, but humidity, etc would be a plus. We are looking to buy 1-5 of them, and I was wondering if people have any good (or bad) experience with these things, and have any recommendations. Only real requirement is Nagios friendly. Thanks, Jeff JEFF CHAPIN SYSTEMS ADMINISTRATOR T8DESIGN.COM | P 319.266.7574 - x267 | 877.T8IDEAS | F 888.290.4675 This e-mail, including attachments, is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential, and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, and then please delete it. Thank you. <>- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ 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] Redhat check_file _size script
> -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Edwin Zoeller > Sent: Friday, February 29, 2008 8:10 AM > To: nagios-users@lists.sourceforge.net > Subject: [Nagios-users] Redhat check_file _size script > > Can anyone who has or is using scripts for Redhat explain to me what size > options for min and max the script is asking for? Thanks for the help. I'd like to help but there are at least 4 check_file_size plugins that I can find. Some measure in megs, some measure in bytes. Where did you get yours? If you don't know, take a look at the script, it may be easy to see what command it's using to determine the size. -- Marc - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] alerts still received each hour
hello again I added this to escalation.cfg define hostescalation{ host_name zeus contact_groups admins first_notification 1 last_notification 3 notification_interval 180 } Hosts.cfg define host{ use general-server host_name zeus alias zeus address 172.21.192.17 notification_interval 180 } I am still receiving an alert every 1 hour could you please advise? thanks. ___ Yahoo! Answers - Got a question? Someone out there knows the answer. Try it now. http://uk.answers.yahoo.com/ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] Redhat check_file _size script
Can anyone who has or is using scripts for Redhat explain to me what size options for min and max the script is asking for? Thanks for the help. Ed - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ 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_hd problem {Disarmed} {Fraud?}
On Feb 29, 2008, at 7:01 AM, Domenico Dig wrote: > Hi all > I'm having a problem with check_hd( the same problem with > check_winmem). > > With nagios server (debian & nagios 2.5) I try to check hd on > windows 2003, where i have installed snmp ( > I have tested it with snmpwalk and it works, all mibs are shown) but > manually with: > > nagios:/# /usr/lib/nagios/plugins/check_hd 10.1.1.8 public 10 10 c > Critical : no response FSS: Don't run plugins as root, nagios doesn't. > while trouth web interface I see the follow error > > **ePN failed to compile /usr/lib/nagios/plugins/check_hd: "Global > symbol "$PROGNAME" requires explicit package name at (eval 3) line 21, Nagios has been compiled with embedded perl support but this plugin isn't made to work with it. http://nagios.sourceforge.net/docs/2_0/embeddedperl.html . Either recompile without embedded perl, modify the plugin to 'fix' it or use the workaround below. > using this: > define command{ > > command_name check_hd > > command_line $USER1$/check_hd $HOSTADDRESS$ public $ARG1$ $ARG2$ > $ARG3$ > > } > Using the following command_line will bypass use of the ePN for this plugin specifically -- command_line /your/path/to/perl $USER1$/check_hd $HOSTADDRESS$ public $ARG1$ $ARG2$ $ARG3$ -- Marc - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] Some questions on Escalations
Hi, maybe someone can help me on "escalations". I looked at the documentation and as I understand it, a host/service escalation will just send the same notification that would be sent anyway to a potentially different set of people. Is this basically correct? Actually I would like to do two different things: a) when a service is in "Warning" state for more than X minutes, I would like to escalate the state to "Critical". Can that be done in NAGIOS? Would it be useful to add? b) in case of an escalation, I would like to send a completetly different message as in a normal notification. In addition I also would like to execute a special event-handler. Another question: is there a MACRO that tells me that a service is in "escalation"? That would likely help a lot to do b) Cheers Martin -- Martin Knoblauch email: k n o b i AT knobisoft DOT de www: http://www.knobisoft.de - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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_hd problem
Hi all I'm having a problem with check_hd( the same problem with check_winmem). With nagios server (debian & nagios 2.5) I try to check hd on windows 2003, where i have installed snmp ( I have tested it with snmpwalk and it works, all mibs are shown) but manually with: nagios:/# /usr/lib/nagios/plugins/check_hd 10.1.1.8 public 10 10 c Critical : no response while trouth web interface I see the follow error **ePN failed to compile /usr/lib/nagios/plugins/check_hd: "Global symbol "$PROGNAME" requires explicit package name at (eval 3) line 21, using this: define command{ command_name check_hd command_line $USER1$/check_hd $HOSTADDRESS$ public $ARG1$ $ARG2$ $ARG3$ } Could someone give me some helps? - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ 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_http and differents ports
On Feb 29, 2008, at 4:51 AM, Diego Giurgola wrote: > Hi all. I have a problem with check_http. I'd like to monitor my > apache server, which is running on 10080 port. When I try to use the > script from shell, it works wonderfully: > > [EMAIL PROTECTED] /usr/lib/nagios/plugins/check_http -I localhost > -p 10080 > HTTP OK HTTP/1.1 200 OK - 306 bytes in 0,004 seconds | > time=0,003844s;;;0,00 size=306B;;;0 > > But, when I setup the nagios services.cfg file and get nagios on, it > refuses to work, and it says me "Connection refused". > So, what is the clue? I agree with Hari. Most likely you're not checking what you believe you're checking. Without the service{} and command{} definitions to look at we can't really be more specific than that. -- Marc - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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_http and differents ports
First off Don't try checks as root. Root can do what ever it wants. Re run your check on the command line logged in as the nagios user. Let us know what you get as a result. HOST:/usr/local/nagios/libexec # su - nagios [EMAIL PROTECTED]:~> id uid=1001(nagios) gid=100(users) groups=100(users),1001(nagcmd) HOST: /usr/lib/nagios/plugins/check_http -I localhost -p 10080 -v -v Note im using verbose mode so we can see what going on. Also send excerpts from your log files showing what's going on Regards Tom From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Diego Giurgola Sent: 29 February 2008 10:51 To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] check_http and differents ports Hi all. I have a problem with check_http. I'd like to monitor my apache server, which is running on 10080 port. When I try to use the script from shell, it works wonderfully: [EMAIL PROTECTED] /usr/lib/nagios/plugins/check_http -I localhost -p 10080 HTTP OK HTTP/1.1 200 OK - 306 bytes in 0,004 seconds |time=0,003844s;;;0,00 size=306B;;;0 But, when I setup the nagios services.cfg file and get nagios on, it refuses to work, and it says me "Connection refused". So, what is the clue? Thanks a lot for your time. -- Diego Giurgola Contatti Cellulare: 328/1481314 Skype: diego.giurgola Profilo LinkedIn: http://www.linkedin.com/in/diegogiurgola - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ 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_http and differents ports
Hari Sekhon wrote: > Diego Giurgola wrote: >> Hi all. I have a problem with check_http. I'd like to monitor my >> apache server, which is running on 10080 port. When I try to use the >> script from shell, it works wonderfully: >> >> [EMAIL PROTECTED] /usr/lib/nagios/plugins/check_http -I localhost >> -p 10080 >> HTTP OK HTTP/1.1 200 OK - 306 bytes in 0,004 seconds >> |time=0,003844s;;;0,00 size=306B;;;0 >> >> But, when I setup the nagios services.cfg file and get nagios on, it >> refuses to work, and it says me "Connection refused". >> So, what is the clue? > your nagios configuration is probably wrong, double check your > checkcommands.cfg and your services.cfg where you are calling the > command. > > If you are specifying in services.cfg > > checkcommand check_http!-p 100080 > > then you will need the command to have an $ARG1$ variable after it in > checkcommands.cfg. > > > -h > err, correction, that's supposed to be check_command in services.cfg and you'll need a corresponding $ARG1$ on the line command_line in checkcommands.cfg. -h -- Hari Sekhon - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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_http and differents ports
Diego Giurgola wrote: > Hi all. I have a problem with check_http. I'd like to monitor my > apache server, which is running on 10080 port. When I try to use the > script from shell, it works wonderfully: > > [EMAIL PROTECTED] /usr/lib/nagios/plugins/check_http -I localhost > -p 10080 > HTTP OK HTTP/1.1 200 OK - 306 bytes in 0,004 seconds > |time=0,003844s;;;0,00 size=306B;;;0 > > But, when I setup the nagios services.cfg file and get nagios on, it > refuses to work, and it says me "Connection refused". > So, what is the clue? your nagios configuration is probably wrong, double check your checkcommands.cfg and your services.cfg where you are calling the command. If you are specifying in services.cfg checkcommand check_http!-p 100080 then you will need the command to have an $ARG1$ variable after it in checkcommands.cfg. -h -- Hari Sekhon - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] Heads up: Comments might bite you; was Re: Possible bug in 3.0rc3
Hi! Actually, this was both my and Nagios' fault. You see, faced with a config block like this: # foo=bar\ foo=baz Nagios will see... nothing. The trailing \ in the first line joins up the second and then both disappear since it's now one long comment. Logic-wise I'd say it's 50/50 bug/feature. I personally think that a # should have precedence over \-at-eol. Usability-wise it's definitely a bug and I've said as much on -devel. Still, a nasty trap to fall into. Beware when you next edit your configs. Regards, Tobias PS: It seems this behaviour was introduced somewhere between b7 and rc3, probably when adding line continuation support. -- "Have you any idea how successful censorship is on TV? Don't know the answer? Hm. Successful, isn't it?" -Max Headroom - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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_http and differents ports
Hi all. I have a problem with check_http. I'd like to monitor my apache server, which is running on 10080 port. When I try to use the script from shell, it works wonderfully: [EMAIL PROTECTED] /usr/lib/nagios/plugins/check_http -I localhost -p 10080 HTTP OK HTTP/1.1 200 OK - 306 bytes in 0,004 seconds |time=0,003844s;;;0,00 size=306B;;;0 But, when I setup the nagios services.cfg file and get nagios on, it refuses to work, and it says me "Connection refused". So, what is the clue? Thanks a lot for your time. -- Diego Giurgola Contatti Cellulare: 328/1481314 Skype: diego.giurgola Profilo LinkedIn: http://www.linkedin.com/in/diegogiurgola - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ 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