[Nagios-users] NRPE help
I know it's probably been covered before, but my google has not revealed much. I am trying to run nrpe, as either root, or using sudo, however when I do, I get RPE: Unable to read output If I sudo into nrpe, it can sudo any of the check_*'s without any problem. I get the same results if I sudo globally, or on the command. This is a fc9 box, as the client, and fc8 box running nagios. Any help welcomed :) - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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 help
Luke Sheldrick schrieb: I know it's probably been covered before, but my google has not revealed much. I am trying to run nrpe, as either root, or using sudo, however when I do, I get RPE: Unable to read output The Problem is, that there is no output from the check, which I once had as a problem too. The origin was, that I was lacking a perl-module, and the command failed therefore, if I remeber correctly. Maybe you can increase log-verbosity and see, if there are any errors printed, when you run the command. Best regards, Marcus - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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 failed to notify and run event handler
Our configuration on the master server (running nagios 2.11) includes the NDUUtils module which writes Nagios data into a set of MySQL tables. The MySQL server is in a separate rack from the Nagios master server. Late yesterday evening (Sunday) there was a network switch problem which meant (among other things that you do not need to know about) that the Nagios process lost contact with the MySQL server. From that point on there were no notifications nor event-handlers run. My assumption is that the loss of contact to the MySQL server caused the single-threaded part of the Nagios process to stall until contact was restored; as a result notifications and event-handlers did not run as they are also in the single-threaded part of the code. Is my assumption correct? If not, can anyone suggest an alternative explanation? As far as I can tell the Nagios process continued to run as the log continued to record events - however log switching (at midnight) did not happen (also in the single-threaded part of the code). Jonathan Wheeler e-Science Centre Rutherford Appleton Laboratory -- Scanned by iCritical. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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 generated when max_check_attempts set to 3
Hi, Just a quick question - I'm changing the max_check_attempts from 1 to 3 for a specific plugin and I wondered, does this mean that an email notification won't go out until the 3rd attempt is reached ? (Which is what I want to achieve). Or will all 3 attempts generate an email notification. The docs say the following :- max_check_attempts: This directive is used to define the number of times that Nagios will retry the service check command if it returns any state other than an OK state. Setting this value to 1 will cause Nagios to generate an alert without retrying the service check again. Am I understanding this correctly ? Thanks, Deborah *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. Kognitio Limited, a company registered in England and Wales. Registered number 0212 7833. Registered Office: 3a Waterside Park, Cookham Road, Bracknell, Berks, RG12 1RB. VAT number 864 4378 92. Kognitio Inc, a company incorporated in Delaware, principal office 180 North Stetson, Suite 3500, Chicago, IL 60601, USA *** - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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] Alerts generated when max_check_attempts set to 3
Yes you are. If you have a host notification and set max_check_attempts to 1 and, let's say you also have check_interval to 60 (1 min) for a host then disconnect the cable, within the next minute Nagios check will fail and send immediate notification of host down because the check attempt was 1. If you say max_check_attempts is 3, and do the same thing, the host will show as down, but unless you reconnect within the next couple min before that 3rd check, Nagios won't send out a notification. Once it hits that 3rd check and is still in a down state, it will then send notification of host down. If by the 3rd check it has recovered, no notification is sent. HTH -Original Message- From: Deborah Martin [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2008 6:08 AM To: 'nagios-users@lists.sourceforge.net' Subject: [Nagios-users] Alerts generated when max_check_attempts set to 3 Importance: High Hi, Just a quick question - I'm changing the max_check_attempts from 1 to 3 for a specific plugin and I wondered, does this mean that an email notification won't go out until the 3rd attempt is reached ? (Which is what I want to achieve). Or will all 3 attempts generate an email notification. The docs say the following :- max_check_attempts: This directive is used to define the number of times that Nagios will retry the service check command if it returns any state other than an OK state. Setting this value to 1 will cause Nagios to generate an alert without retrying the service check again. Am I understanding this correctly ? Thanks, Deborah *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. Kognitio Limited, a company registered in England and Wales. Registered number 0212 7833. Registered Office: 3a Waterside Park, Cookham Road, Bracknell, Berks, RG12 1RB. VAT number 864 4378 92. Kognitio Inc, a company incorporated in Delaware, principal office 180 North Stetson, Suite 3500, Chicago, IL 60601, USA *** - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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 the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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] Alerts generated when max_check_attempts set t o 3
Thanks Seth - that's brilliant - just what I wanted! Regards, Deborah -Original Message- From: Seth Simmons [mailto:[EMAIL PROTECTED] Sent: 24 November 2008 12:36 To: Deborah Martin Cc: Nagios User list Subject: RE: [Nagios-users] Alerts generated when max_check_attempts set to 3 Yes you are. If you have a host notification and set max_check_attempts to 1 and, let's say you also have check_interval to 60 (1 min) for a host then disconnect the cable, within the next minute Nagios check will fail and send immediate notification of host down because the check attempt was 1. If you say max_check_attempts is 3, and do the same thing, the host will show as down, but unless you reconnect within the next couple min before that 3rd check, Nagios won't send out a notification. Once it hits that 3rd check and is still in a down state, it will then send notification of host down. If by the 3rd check it has recovered, no notification is sent. HTH -Original Message- From: Deborah Martin [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2008 6:08 AM To: 'nagios-users@lists.sourceforge.net' Subject: [Nagios-users] Alerts generated when max_check_attempts set to 3 Importance: High Hi, Just a quick question - I'm changing the max_check_attempts from 1 to 3 for a specific plugin and I wondered, does this mean that an email notification won't go out until the 3rd attempt is reached ? (Which is what I want to achieve). Or will all 3 attempts generate an email notification. The docs say the following :- max_check_attempts: This directive is used to define the number of times that Nagios will retry the service check command if it returns any state other than an OK state. Setting this value to 1 will cause Nagios to generate an alert without retrying the service check again. Am I understanding this correctly ? Thanks, Deborah *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. Kognitio Limited, a company registered in England and Wales. Registered number 0212 7833. Registered Office: 3a Waterside Park, Cookham Road, Bracknell, Berks, RG12 1RB. VAT number 864 4378 92. Kognitio Inc, a company incorporated in Delaware, principal office 180 North Stetson, Suite 3500, Chicago, IL 60601, USA *** - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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 email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. Kognitio Limited, a company registered in England and Wales. Registered number 0212 7833. Registered Office: 3a Waterside Park, Cookham Road, Bracknell, Berks, RG12 1RB. VAT number 864 4378 92. Kognitio Inc, a company incorporated in Delaware, principal office 180 North Stetson, Suite 3500, Chicago, IL 60601, USA *** - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great
Re: [Nagios-users] Alerts generated when max_check_attempts set to 3
Hi Deborah, As Seth said, you are right! The point is when the service changes its state type. It is also responsable for the send notifications. http://nagios.sourceforge.net/docs/3_0/statetypes.html []'s -- Fernando Rocha [EMAIL PROTECTED] Analista de Suporte - Operação OpServices - Porto Alegre - RS - Brasil +55 51 3275.3588 www.opservices.com.br www.opmon.org - Seth Simmons [EMAIL PROTECTED] wrote: Yes you are. If you have a host notification and set max_check_attempts to 1 and, let's say you also have check_interval to 60 (1 min) for a host then disconnect the cable, within the next minute Nagios check will fail and send immediate notification of host down because the check attempt was 1. If you say max_check_attempts is 3, and do the same thing, the host will show as down, but unless you reconnect within the next couple min before that 3rd check, Nagios won't send out a notification. Once it hits that 3rd check and is still in a down state, it will then send notification of host down. If by the 3rd check it has recovered, no notification is sent. HTH -Original Message- From: Deborah Martin [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2008 6:08 AM To: 'nagios-users@lists.sourceforge.net' Subject: [Nagios-users] Alerts generated when max_check_attempts set to 3 Importance: High Hi, Just a quick question - I'm changing the max_check_attempts from 1 to 3 for a specific plugin and I wondered, does this mean that an email notification won't go out until the 3rd attempt is reached ? (Which is what I want to achieve). Or will all 3 attempts generate an email notification. The docs say the following :- max_check_attempts: This directive is used to define the number of times that Nagios will retry the service check command if it returns any state other than an OK state. Setting this value to 1 will cause Nagios to generate an alert without retrying the service check again. Am I understanding this correctly ? Thanks, Deborah *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. Kognitio Limited, a company registered in England and Wales. Registered number 0212 7833. Registered Office: 3a Waterside Park, Cookham Road, Bracknell, Berks, RG12 1RB. VAT number 864 4378 92. Kognitio Inc, a company incorporated in Delaware, principal office 180 North Stetson, Suite 3500, Chicago, IL 60601, USA *** - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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 the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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 the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/
[Nagios-users] Service check timeouts
Hi, I have a service check plugin which basically runs a query against our database (It's not a database that has standard plugins already in existence e.g Oracle, Mysql, SQL Server etc etc ) which I've written. Based on it's success or failure, most errors come from the database so I can manipulate the error handling tell Nagios what it's exit status should be. However, every now and again I get an error 'Service Check Timed Out' and the exit status changes to CRITICAL automatically. But I'd rather it didn't Is there a way to manipulate this exit status - I'd rather it was set to UNKNOWN. As far as I understand it, this error is based on the plugin itself having a timeout which I've set to 120 seconds (nagios.cfg: service_check_timeout=120) The timeouts we set for the database vary between 15 and 90 seconds (depending on the each database requirement for this) Or is there a way of looking at the $SERVICEOUTPUT$ string returned by Nagios and grepping for 'Service Check Timed Out' and manipulating the exit code that way ? I'm using v2.0b4 but I know there is a way of using the macros as environment variables in later versions of Nagios. If I can't resolve it until I upgrade then that's fine. If anyone has any pointers on the way forward for this it would be really appreciated. thanks, deborah *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. Kognitio Limited, a company registered in England and Wales. Registered number 0212 7833. Registered Office: 3a Waterside Park, Cookham Road, Bracknell, Berks, RG12 1RB. VAT number 864 4378 92. Kognitio Inc, a company incorporated in Delaware, principal office 180 North Stetson, Suite 3500, Chicago, IL 60601, USA *** - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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] Perl version
Hi all; I am just wondering what version of perl is required on FreeBSD systems I am currently running 5.8.7 added from package list. I am getting internal server errors on the scripts premature end of headers errors and am wondering if it might be my perl version. Thanks . Gary - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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] CheckEventLog Info
That is exactly what I was looking for. Thank you. Jon -Original Message- From: Martin Kamijo [mailto:[EMAIL PROTECTED] Sent: Friday, November 21, 2008 9:29 PM To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] CheckEventLog Info Jonathan Williams wrote: Looking for info on this feature. I am looking for Nagios to be able to monitor the Windows System Log for specific event types and notify accordingly when they appear. Does this require an additional plug in or is this something that is already part of NSCLient++ v 3.1.14? As far as I can see this is a part of the version you are using. If not just upgrade to the latest one. For usage take a look here in the NSClient++ documentation: http://www.nsclient.org/nscp/wiki/CheckEventLog/CheckEventLog -- Best Regards Martin Kamijo __ op5 AB Första Långgatan 19 SE-413 27 Göteborg Mobil: +46 735-17 70 95 Support: +46 31-774 09 24 www.op5.com - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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 the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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] CheckEventLog Info
That is a great resource. Thanks. One question I have is on defining the $ARG1$ etc. For example: Check for errors by eventid in the last 2 hours. $ARG1$ = file to check ie. Application, Security, System $ARG2$ = Max Warn amount $ARG3$ = Max Critical amount $ARG4$ = eventID Number Than: ./check_nrpe -H $HOSTNAME$ -c CheckEventLog -a filter=new file=$ARG1$ MaxWarn=$ARG2$ MaxCrit=$ARG3$ filter-generated=\2h filter-eventID==$ARG4$ filter-eventType==error filter=in filter=all My question is where are these ARG's defined. Where does NRPE know to lok to determince that ARG4= EventID. Is there a config for that? I looked through the different cfg. Files and didn't see that. Jon -Original Message- From: Martin Kamijo [mailto:[EMAIL PROTECTED] Sent: Friday, November 21, 2008 9:29 PM To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] CheckEventLog Info Jonathan Williams wrote: Looking for info on this feature. I am looking for Nagios to be able to monitor the Windows System Log for specific event types and notify accordingly when they appear. Does this require an additional plug in or is this something that is already part of NSCLient++ v 3.1.14? As far as I can see this is a part of the version you are using. If not just upgrade to the latest one. For usage take a look here in the NSClient++ documentation: http://www.nsclient.org/nscp/wiki/CheckEventLog/CheckEventLog -- Best Regards Martin Kamijo __ op5 AB Första Långgatan 19 SE-413 27 Göteborg Mobil: +46 735-17 70 95 Support: +46 31-774 09 24 www.op5.com - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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 the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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 for crash?
On Nov 21, 2008, at 10:07 AM, Fernando Rocha wrote: Hi Israel, I think that by the check_process is hard to identify this issue, because as you said the process still running and just stop to work. How do you know when it crashes? Is there some log occurrences? Does it gives some errors on the web page? The applet in question is a status display screen. I know it has crashed because a) the data displayed is out of date, and b) it doesn't respond to user input. Since it is a passive monitoring system, there is no log written. No error is displayed, it just stops updating properly. I guess what I was hoping for was that there might be some indication I could get from the process list or the like that I simply didn't know to look for, rather than an application-specific check. Something along the lines of how you can check for a zombie process by looking at the output of a ps. From the responses I have gotten so far, however, this wouldn't appear to be the case. Thanks anyway! --- Israel Brewster Computer Support Technician Frontier Flying Service Inc. 5245 Airport Industrial Rd Fairbanks, AK 99709 (907) 450-7250 x293 --- -- Fernando Rocha [EMAIL PROTECTED] Analista de Suporte - Operação OpServices - Porto Alegre - RS - Brasil +55 51 3275.3588 www.opservices.com.br www.opmon.org - Israel Brewster [EMAIL PROTECTED] wrote: I'm wondering if anyone can give me suggestions as to how to monitor a specific process to make sure it keeps running properly. The specific issue I have is that I have a Java Webstart applet running on OpenBSD 4.4 that, from time to time, randomly crashes. I can't just use check_process (I don't think so, at least) because when it crashes the process never actually exits- it just stops working. I have to go in and manually kill it before I can restart it. Does anyone have any thoughts as to how I could check for this situation? I realize this may not strictly be a nagios question, and I apologize to anyone who is bothered by that, but since I would be doing the monitoring with Nagios this seemed the most logical place I could think of to ask. Thanks! --- Israel Brewster Computer Support Technician Frontier Flying Service Inc. 5245 Airport Industrial Rd Fairbanks, AK 99709 (907) 450-7250 x293 --- - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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 the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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 for crash?
-Original Message- From: Israel Brewster [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2008 1:42 PM To: Fernando Rocha Cc: Nagios Mailinglist Subject: Re: [Nagios-users] check for crash? On Nov 21, 2008, at 10:07 AM, Fernando Rocha wrote: Hi Israel, I think that by the check_process is hard to identify this issue, because as you said the process still running and just stop to work. How do you know when it crashes? Is there some log occurrences? Does it gives some errors on the web page? The applet in question is a status display screen. I know it has crashed because a) the data displayed is out of date, and b) it doesn't respond to user input. Since it is a passive monitoring system, there is no log written. No error is displayed, it just stops updating properly. I guess what I was hoping for was that there might be some indication I could get from the process list or the like that I simply didn't know to look for, rather than an application-specific check. Something along the lines of how you can check for a zombie process by looking at the output of a ps. From the responses I have gotten so far, however, this wouldn't appear to be the case. Thanks anyway! --- Israel Brewster Computer Support Technician Frontier Flying Service Inc. 5245 Airport Industrial Rd Fairbanks, AK 99709 (907) 450-7250 x293 --- Is the applet the only interface to the system? Can you get the status from the command line of the machine or only via a web based applet? -Mike - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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 for crash?
-Original Message- From: Israel Brewster [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2008 1:42 PM To: Fernando Rocha Cc: Nagios Mailinglist Subject: Re: [Nagios-users] check for crash? On Nov 21, 2008, at 10:07 AM, Fernando Rocha wrote: Hi Israel, I think that by the check_process is hard to identify this issue, because as you said the process still running and just stop to work. How do you know when it crashes? Is there some log occurrences? Does it gives some errors on the web page? The applet in question is a status display screen. I know it has crashed because a) the data displayed is out of date, and b) it doesn't respond to user input. Since it is a passive monitoring system, there is no log written. No error is displayed, it just stops updating properly. I guess what I was hoping for was that there might be some indication I could get from the process list or the like that I simply didn't know to look for, rather than an application-specific check. Something along the lines of how you can check for a zombie process by looking at the output of a ps. From the responses I have gotten so far, however, this wouldn't appear to be the case. Thanks anyway! --- Israel Brewster Computer Support Technician Frontier Flying Service Inc. 5245 Airport Industrial Rd Fairbanks, AK 99709 (907) 450-7250 x293 --- Additional thoughts... Is this a Web Start applet that you wrote? Does it incorporate an offline mode interface? Do you have the sources? Does it log anywhere? - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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] Service check timeouts
On Nov 24, 2008, at 9:58 AM, Deborah Martin wrote: However, every now and again I get an error 'Service Check Timed Out' and the exit status changes to CRITICAL automatically. But I'd rather it didn't Is there a way to manipulate this exit status - I'd rather it was set to UNKNOWN. The only standard thing that would manipulate a plugin's exit status is the negate plugin but it doesn't look at the text of the response. Outside of enhancing nagios, none that I can think of. As far as I understand it, this error is based on the plugin itself having a timeout which I've set to 120 seconds (nagios.cfg: service_check_timeout=120) The timeouts we set for the database vary between 15 and 90 seconds (depending on the each database requirement for this) I'm not sure what you're trying to explain here. If your database checks can run at most 90 seconds, why is your database check plugin still running at 120 seconds? It sounds like that timeout isn't effective. Why don't you add an alarm/timeout to your plugin so that it will exit with your desired exit code before nagios kills it? Seems the easiest route to me. Or is there a way of looking at the $SERVICEOUTPUT$ string returned by Nagios and grepping for 'Service Check Timed Out' and manipulating the exit code that way ? You'd have to add code to nagios; at the place where nagios is setting the plugin output to be 'Service Check Timed Out' would be a logical place. Nagios doesn't really care what the text output is so there is little in place to act on it, let alone change anything related to it. -- Marc - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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] Perl version
On Nov 24, 2008, at 10:09 AM, Gary Hartl wrote: Hi all; I am just wondering what version of perl is required on FreeBSD systems I am currently running 5.8.7 added from package list. Any recent version of perl will do. The plugins are pretty straightforward. I am getting internal server errors on the scripts premature end of headers errors and am wondering if it might be my perl version. Internal server errors from what? If you're talking about the nagios web GUI, it's not written in perl so perl version doesn't matter. -- Marc - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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] Perl version
-Original Message- From: Marc Powell [mailto:[EMAIL PROTECTED] Sent: November-24-08 3:51 PM To: Nagios-Users Subject: Re: [Nagios-users] Perl version On Nov 24, 2008, at 10:09 AM, Gary Hartl wrote: Hi all; I am just wondering what version of perl is required on FreeBSD systems I am currently running 5.8.7 added from package list. Any recent version of perl will do. The plugins are pretty straightforward. I am getting internal server errors on the scripts premature end of headers errors and am wondering if it might be my perl version. Internal server errors from what? If you're talking about the nagios web GUI, it's not written in perl so perl version doesn't matter. Ok...well i'm getting internal server errors from the cgi's premature end of headers, are they C? I get the main menu down the side and the docs and main page load ok, but outside of that it is all botched. All the cgi's produce the same error. Thanks Gary -- Marc - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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 the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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] Perl version
Ok so I think i figured out what the problem is and i must attribute it to my massive level of mental retardedness. The nagios service wasn't running LOLZtoo funny. Well with that in mind I figure I should start the service. I've installed this via the freebsd package so I run ./nagios from /usr/local/etc/rc.d and get the following /--snip--/ netra1# ./nagios start Performing sanity check of nagios configuration: /usr/local/bin/nagios: 1: Syntax error: ( unexpected FAILED /usr/local/bin/nagios: 1: Syntax error: ( unexpected /-- end snip --/ Ummm. Gary -Original Message- From: Marc Powell [mailto:[EMAIL PROTECTED] Sent: November-24-08 3:51 PM To: Nagios-Users Subject: Re: [Nagios-users] Perl version On Nov 24, 2008, at 10:09 AM, Gary Hartl wrote: Hi all; I am just wondering what version of perl is required on FreeBSD systems I am currently running 5.8.7 added from package list. Any recent version of perl will do. The plugins are pretty straightforward. I am getting internal server errors on the scripts premature end of headers errors and am wondering if it might be my perl version. Internal server errors from what? If you're talking about the nagios web GUI, it's not written in perl so perl version doesn't matter. -- Marc - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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 the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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] CheckEventLog Info
Hi Jonathan, On Mon, 2008-11-24 at 10:05 -0800, Jonathan Williams wrote: That is a great resource. Thanks. One question I have is on defining the $ARG1$ etc. For example: Check for errors by eventid in the last 2 hours. $ARG1$ = file to check ie. Application, Security, System $ARG2$ = Max Warn amount $ARG3$ = Max Critical amount $ARG4$ = eventID Number Than: ./check_nrpe -H $HOSTNAME$ -c CheckEventLog -a filter=new file=$ARG1$ MaxWarn=$ARG2$ MaxCrit=$ARG3$ filter-generated=\2h filter-eventID==$ARG4$ filter-eventType==error filter=in filter=all My question is where are these ARG's defined. Where does NRPE know to lok to determince that ARG4= EventID. Is there a config for that? I looked through the different cfg. Files and didn't see that. You have to define a checkcommand to use for this check, eg check_eventid $USER1$/check_nrpe -H $HOSTADDRESS$ . then you do a service that uses check_eventid with paramenters defince service { host check_eventid argvalue1!argvalue2!argvalue3!argvalue4 ... } -- Vänliga hälsningar / Best Regards Mattias Ryrlén __ op5 AB Första Långgatan 19 SE-413 27 Göteborg Mobil: +46 735-17 70 99 Support: +46 31-774 09 24 www.op5.com - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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