Re: [Nagios-users] first_notification_delay set but notifications still being send immediately
> -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Im > Auftrag von Dave Horsfall > Gesendet: Donnerstag, 14. August 2008 08:00 > An: Nagios Users Mailinglist > Betreff: Re: [Nagios-users] first_notification_delay set but > notifications still being send immediately > > On Thu, 14 Aug 2008, Hugo van der Kooij wrote: > > > |service_description d.3 gateway > > > > And just for fun. Remove the whitespace from the > description. See if > > it matters. > > It's more likely complaining about the ".". From the > documentation, only spaces, dashes and colons are allowed as > punctuation; I guess it's a way to avoid funny business with > shell characters. > Thanks for the responses. Sorry about forgetting the version: Nagios 3.0. I'll give it a shot and rename the service and see what happens. Regards Jim Mohr - 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=100&url=/ ___ 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] first_notification_delay set but notifications still being send immediately
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohr James wrote: | define service { |use archiv_service |host_name c21-app-01 |service_description d.3 gateway |check_command none |active_checks_enabled 0 |max_check_attempts 1 |first_notification_delay5 |normal_check_interval 180 |notification_interval 180 | } What Nagios version? And just for fun. Remove the whitespace from the description. See if it matters. Hugo. - -- [EMAIL PROTECTED] http://hugo.vanderkooij.org/ PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc A: Yes. >Q: Are you sure? >>A: Because it reverses the logical flow of conversation. >>>Q: Why is top posting frowned upon? Bored? Click on http://spamornot.org/ and rate those images. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFIo8fXBvzDRVjxmYERAvGHAKCI3hsCiOBnX23nGcdu46HziZYYqwCgsEKc RJcXeEMPGY1Wfa+NmLevC0c= =MRrF -END PGP SIGNATURE- - 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=100&url=/ ___ 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] first_notification_delay set but notifications still being send immediately
Hi All! We have a service that is configured like this: define service { use archiv_service host_name c21-app-01 service_description d.3 gateway check_command none active_checks_enabled 0 max_check_attempts 1 first_notification_delay5 normal_check_interval 180 notification_interval 180 } With interval_length=60, this should mean that the services should wait 5 minutes before sending out a notification. This morining, we had these entries in the history: [08-14-2008 06:19:51] SERVICE ALERT: c21-app-01;d.3 gateway;OK;HARD;1;OK [08-14-2008 06:19:41] SERVICE ALERT: c21-app-01;d.3 gateway;CRITICAL;HARD;1;Error A notification was sent at 08-14-2008 06:19:41, but this it does not make sense to me. Any help is appreciated. Regards, Jim Mohr - 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=100&url=/ ___ 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] Blocking ICMP and other issues
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [EMAIL PROTECTED] wrote: | I have just installed Fedora 9 and then setup Nagios. I followed Quick Install and it worked wonderfully. I want to Monitor 1 remote server's SMTP. I have been experimenting with 2 configuration files (Pasted at the end for reference) without much luck. With config #1, I receive messages telling me the host is down constantly (I assume this is because it blocks ICMP ping requests) I then found a sample on one of the forums which I tried to implement; but I recieve no messages and Nagios still says host is down in the browser. Basically I'd like to show the host as up and recieve messages when SMTP is unavailable. Does anyone have any samples (Pref with comments) that I can experiment with? I am particually interested in monitoring publically available services. There is no substitute for reading the manual. (cover to cover) You can use whatever check you like to run as a check on the host. So if you can not ping the default check is pointless. If SMTP is the only service open then use check_smtp as host check. Hugo. - -- [EMAIL PROTECTED] http://hugo.vanderkooij.org/ PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc A: Yes. >Q: Are you sure? >>A: Because it reverses the logical flow of conversation. >>>Q: Why is top posting frowned upon? Bored? Click on http://spamornot.org/ and rate those images. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFIo7igBvzDRVjxmYERAjCRAJoD39ByhSi36PD/Qo4tTuMQ753sQACfdCqx ESq4oWdcj0C6OZFLJDXwIso= =N9qi -END PGP SIGNATURE- - 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=100&url=/ ___ 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] using check_printer to check Ricoh toner
On Wed, 13 Aug 2008 16:04:54 +0100, "Marcelo M. Garcia" <[EMAIL PROTECTED]> wrote: >Hi. > >I'm trying to use the plugin "check_printer" to monitor the toners of >our Ricoh Aficio 3245C. There are several "check_printer" plugins on the nagios exchange, it may be helpful to detail which one you're referring to. > >When I run from the command line it works fine: >[EMAIL PROTECTED] /usr/lib/nagios/plugins $sudo ./check_printer >194.193.148.130 public toner 1 >OK - Black [EMAIL PROTECTED] /usr/lib/nagios/plugins $ > You're running this command using the sudo command. This implies a root execution, unless you failed to disclose information about the sudo setup, and how you're executing it. You should always attempt to start the command as the user running the nagios daemon. >I defined a command "check_ricoh_toner": ># 'chech_ricoh_toner command definition >define command { > command_namecheck_ricoh_toner > command_line$USER1$/check_printer $HOSTNAME$ public toner >$ARG1$ > } > >And then, the service: >[EMAIL PROTECTED] /etc/nagios/cd-adapco/services $more ricohprinter.cfg ># ># Printers. > >define service { > host_namericoh > service_descriptioncheck Ricoh Aficio > check_commandcheck_ricoh_toner!1 > normal_check_interval90 > max_check_attempts 5 > retry_check_interval15 > check_period24x7 > notification_interval90 > notification_periodworkhours > notification_optionsw,c,r > contact_groupscd-admins >} > >But in the web interface I see the message: >UNKNOWN - Toner/Ink 1 does not exist! > >What is wrong? What am I missing? Guessing you're using the PHP version from ciphron.de, it requires php with SNMP support. You've already validated that it exists due to being able to execute it under sudo, so the next thing would be a quick sample script to validate, and get real errors. The PHP script has the errors masked, so it makes it harder to debug. Use the following as a sample: #!/usr/bin/php Save as a script, make executable, and run as the user executing nagios. snmpget might be returning an error message in the script that is being masked with the @ symbol. -- Jon Angliss - 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=100&url=/ ___ 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] Freshness checking not triggering immediate notification
On Wed, 13 Aug 2008 14:19:46 -0400, Zack Colgan <[EMAIL PROTECTED]> wrote: >Hi all, > >We're running a distributed Nagios setup (3.0.3 on the master, various >versions on the satellites). Freshness checks are enabled on all the >passive services, and configured to go stale after 10 minutes of no new >check data. > >What we're running into is the freshness checks, when executed, only put >the service in a SOFT state. This isn't very helpful, since we end up >waiting another two freshness_threshold intervals (10 minutes, in this >case) before the HARD state is reached an we get paged. What's your max_check_attempts for the services? How many failures do you need to get for the passive checks before alerts are generated? I recently (this morning actually) setup passive checks for one of our servers, and had no issues with configuring the freshness checks, but I consider max_check_attempts of 1 to be considered failures on this particular service/check. -- Jon Angliss - 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=100&url=/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] problem viewing host groups in cgi
ping On Wed, Aug 13, 2008 at 7:14 AM, Shai <[EMAIL PROTECTED]> wrote: > Hi, > > Do I have a way around this other then creating a "misc" host group that'll > include all those hosts that some contact groups wish to see? it'll be like > a small salad on my web interface but that's the only way I can think of... > > Shai > > > On Tue, Aug 12, 2008 at 11:45 PM, Marc Powell <[EMAIL PROTECTED]> wrote: > >> >> >> > -Original Message- >> > From: [EMAIL PROTECTED] [mailto:nagios-users- >> > [EMAIL PROTECTED] On Behalf Of Shai >> > Sent: Tuesday, August 12, 2008 2:37 PM >> > To: Marc Powell >> > Cc: nagios-users@lists.sourceforge.net >> > Subject: Re: [Nagios-users] problem viewing host groups in cgi >> > >> > Hi Marc, >> > >> > I wonder why that is... If I authorize a contact to view a host in the >> > host group, why would I want to deny him from viewing it in the title >> of >> > the host group? seeing the host groups won't harm and he won't have >> access >> > to viewing the other hosts in the that host group. >> >> Until relatively recently, contact assignments were by hostgroup, not by >> host. Because of that, per-host checks were not needed and the CGI logic >> of what hostgroups to display and not display was very straightforward. >> I'm going to have to just guess that Ethan isn't interested, hasn't had >> time to, or hasn't thought to change that behavior. >> >> -- >> 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=100&url=/ >> ___ >> 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=100&url=/___ 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] Blocking ICMP and other issues
I have just installed Fedora 9 and then setup Nagios. I followed Quick Install and it worked wonderfully. I want to Monitor 1 remote server's SMTP. I have been experimenting with 2 configuration files (Pasted at the end for reference) without much luck. With config #1, I receive messages telling me the host is down constantly (I assume this is because it blocks ICMP ping requests) I then found a sample on one of the forums which I tried to implement; but I recieve no messages and Nagios still says host is down in the browser. Basically I'd like to show the host as up and recieve messages when SMTP is unavailable. Does anyone have any samples (Pref with comments) that I can experiment with? I am particually interested in monitoring publically available services. #== #CONFIG FILE #1 #== define host{ use windows-server host_name myserver alias My Mail address xxx.xxx.xxx.xxx checks_enabled 0 } define hostgroup{ hostgroup_name windows-servers alias Windows Servers } #===EOF #== #CONFIG FILE #2 #== define command{ command_name check_upmail command_line $USER1$/check_smtp -H 64.62.20.243 } define host{ use generic-host host_name myserver alias My Mail address xxx.xxx.xxx.xxx check_command check_upmail max_check_attempts 10 notification_interval 120 notification_period 24x7 notification_options n contact_groups admins } ===EOF - 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=100&url=/___ 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] using check_printer to check Ricoh toner
Hi, 13.08.2008 17:04, Marcelo M. Garcia wrote: > Hi. > > I'm trying to use the plugin "check_printer" to monitor the toners of > our Ricoh Aficio 3245C. > > When I run from the command line it works fine: > [EMAIL PROTECTED] /usr/lib/nagios/plugins $sudo ./check_printer > 194.193.148.130 public toner 1 > OK - Black [EMAIL PROTECTED] /usr/lib/nagios/plugins $ > > I defined a command "check_ricoh_toner": > # 'chech_ricoh_toner command definition > define command { > command_namecheck_ricoh_toner > command_line$USER1$/check_printer $HOSTNAME$ public toner You probably want to replace HOSTNAME with HOSTADDRESS... Arno > $ARG1$ > } > > And then, the service: > [EMAIL PROTECTED] /etc/nagios/cd-adapco/services $more ricohprinter.cfg > # > # Printers. > > define service { > host_namericoh > service_descriptioncheck Ricoh Aficio > check_commandcheck_ricoh_toner!1 > normal_check_interval90 > max_check_attempts 5 > retry_check_interval15 > check_period24x7 > notification_interval90 > notification_periodworkhours > notification_optionsw,c,r > contact_groupscd-admins > } > > But in the web interface I see the message: > UNKNOWN - Toner/Ink 1 does not exist! > > What is wrong? What am I missing? > > I'm using Nagios in a Fedora 9 box: nagios-2.11-3.fc9.i386. The plugin > "check_printer" I downloaded from NagiosExchange. > > Thanks > > Marcelo > > > - > 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=100&url=/ > ___ > 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 > -- Arno Lehmann IT-Service Lehmann Sandstr. 6, 49080 Osnabrück www.its-lehmann.de - 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=100&url=/ ___ 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)
After an upgrade from Nagios 3.0.1 to 3.0.3 I have some trouble. When I remove an object, a server, from the configuration file; the server is also gone from the web interface, everything looks well. But Nagios keeps sending mails about the server that would be down. I use Nagios in combination with NDOutils. I realized l that I compiled nagios 3.0.3 without the configure parameter --enable-event- broker. After recompilation and a new installation I'm still receiving mail from Nagios about the server that would be down. When I restart Nagios I see in the systemlog the following messages: ==> ndo2db: Error: mysql_query() failed for 'INSERT INTO nagios_configfilevariables SET instance_id='1', configfile_id='19', varname='cfg_file', varvalue='/usr/local/nagios/etc/objects/netware\.cfg'' <== For every cfg file the same message. What can I do? Reinstalling the Mysql/NDO database? Thanks, Tijn - 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=100&url=/ ___ 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] Freshness checking not triggering immediate notification
Hi all, We're running a distributed Nagios setup (3.0.3 on the master, various versions on the satellites). Freshness checks are enabled on all the passive services, and configured to go stale after 10 minutes of no new check data. What we're running into is the freshness checks, when executed, only put the service in a SOFT state. This isn't very helpful, since we end up waiting another two freshness_threshold intervals (10 minutes, in this case) before the HARD state is reached an we get paged. Is this a bug or a feature? I seem to recall in Nagios 1.0 you would get notified (by virtue of the HARD state) as soon as the threshold was reached. Currently, I've changed the command that gets run upon reaching the threshold to inject three CRITICAL check results for the service in question, to force it to a HARD state, but that seems like a hack. Thanks, -Zack -- Zack Colgan Consulting Engineer ClearBearing, Inc. [EMAIL PROTECTED] (802) 846-1855 - 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=100&url=/ ___ 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] Discovery options?
Fyi - Groundwork integrates nedi and nagios in their 'professional' version. http://www.groundworkopensource.com/ On Wed, 2008-08-13 at 08:55 -0600, Cook, Garry wrote: > In addition to the two mentioned in the FAQ, there is also NeDi > (http://nedi.ch). It's not built for integration with Nagios, but it is open > source and uses a MySQL backend. Great tool with lots of cool features. > > Thanks, > Garry > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aaron M. Segura > Sent: Wednesday, August 13, 2008 8:31 AM > To: Devon Harding > Cc: nagios-users@lists.sourceforge.net > Subject: Re: [Nagios-users] Discovery options? > > http://www.nagios.org/faqs/viewfaq.php?faq_id=347 > > On Wed, 2008-08-13 at 10:16 -0400, Devon Harding wrote: > > Are there any discovery options for Nagios? If I have alot of servers > > on a subnet and want to import them, whats the best way? > > > > -Devon > > > > > > > > - > > 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=100&url=/ > > ___ 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=100&url=/ > ___ > 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 > > > NOTICE: This e-mail and any files transmitted with it are the property of > ARCADIS U.S., Inc. and its affiliates. All rights, including without > limitation copyright, are reserved. The proprietary information contained in > this e-mail message, and any files transmitted with it, is intended for the > use of the recipient(s) named above. If the reader of this e-mail is not the > intended recipient, you are hereby notified that you have received this > e-mail in error and that any review, distribution or copying of this e-mail > or any files transmitted with it is strictly prohibited. If you have received > this e-mail in error, please notify the sender immediately and delete the > original message and any files transmitted. The unauthorized use of this > e-mail or any files transmitted with it is prohibited and disclaimed by > ARCADIS U.S., Inc. and its affiliates. > > - > 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=100&url=/ > ___ > 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=100&url=/ ___ 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] Return code of 127
Rechard, As per the document: "If this is the error you're getting, check your command definitions and make sure the path to all executables is correct.." But it has been working fine for months and there were no changes in the config. Thanks, Nair On Wed, 13 Aug 2008 Richard Savage wrote : >There is a good link to this problem here: > >http://www.nagios.org/faqs/viewfaq.php?faq_id=17 > >I had this a few times and as suggested in the link, the path to the >plugin is invalid. Make sure this path is correct and this should solve >your issue. > >If it continues post the bit from the commands file that is being called >and the path to where your plugins are installed on your system and what >OS, version of nagios you are using. > >Regards > >Richard > >Assaf Flatto wrote: > > Can you provide the section of the nagios log and the messages log that > > relate to this issue ? > > > > Assaf > > > > > > On Wednesday 13 August 2008 09:06:39 Nair wrote: > > > >> Dear All, > >> > >> Using Nagios 2.11 with mysql DB using ndo2db plugin. > >> > >> I am getting below error and the Nagios server hangs down. > >> > >> (Return code of 127 is out of bounds - plugin may be missing) > >> > >> Nagiosstat output: > >> > >> Used/High/Total Command Buffers: 2561 / 2561 / 32268 > >> Used/High/Total Check Result Buffers: 0 / 0 / 4096 > >> > >> I could see more than 33,000 of NSCA process running where the command > >> buffer is only 4096. Resolved the problem temprorly by increasing the > >> command buffer to 35,000. > >> > >> Still I am under assumption that Mysql query is the root cause of the > >> issue. > >> > >> Please share your ideas, if hav gone simialr issues. > >> > >> Thank you. > >> Nair. > >> > > > > > > > > > > > > > > IMPORTANT . this email and the information in it may be confidential, > > legally > > privileged and/or protected by law. It is intended solely for the use of the > > person to whom it is addressed. If you are not the intended recipient, > > please > > notify the sender immediately and do not disclose the contents to any other > > person, use it for any purpose, or store or copy the information in any > > medium. > > Please also delete all copies of this email and any attachments from your > > system. > > > > We cannot guarantee the security or confidentiality of email > > communications. We > > do not accept any liability for losses or damages that you may suffer as a > > result of your receipt of this email including but not limited to computer > > service or system failure, access delays or interruption, data non-delivery > > or > > mis-delivery, computer viruses or other harmful components. > > > > Copyright in this email and any attachments belong to Select Service > > Partner UK > > Limited. Should you communicate with anyone at Select Service Partner UK > > Limited by > > email, you consent to us monitoring and reading any such correspondence. > > > > Nothing in this email shall be taken or read as suggesting, proposing or > > relating to any agreement concerted practice or other practice that could > > infringe UK or EC competition legislation. > > > > Select Service Partner UK Limited is a company registered in England and > > Wales > > (company number 05687183) whose registered office is at 1 The Heights, > > Brooklands, Weybridge. Surrey. KT13 0NY > > > > > > > > - > > 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=100&url=/ > > ___ > > 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=100&url=/ >___ >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 appli
[Nagios-users] using check_printer to check Ricoh toner
Hi. I'm trying to use the plugin "check_printer" to monitor the toners of our Ricoh Aficio 3245C. When I run from the command line it works fine: [EMAIL PROTECTED] /usr/lib/nagios/plugins $sudo ./check_printer 194.193.148.130 public toner 1 OK - Black [EMAIL PROTECTED] /usr/lib/nagios/plugins $ I defined a command "check_ricoh_toner": # 'chech_ricoh_toner command definition define command { command_namecheck_ricoh_toner command_line$USER1$/check_printer $HOSTNAME$ public toner $ARG1$ } And then, the service: [EMAIL PROTECTED] /etc/nagios/cd-adapco/services $more ricohprinter.cfg # # Printers. define service { host_namericoh service_descriptioncheck Ricoh Aficio check_commandcheck_ricoh_toner!1 normal_check_interval90 max_check_attempts 5 retry_check_interval15 check_period24x7 notification_interval90 notification_periodworkhours notification_optionsw,c,r contact_groupscd-admins } But in the web interface I see the message: UNKNOWN - Toner/Ink 1 does not exist! What is wrong? What am I missing? I'm using Nagios in a Fedora 9 box: nagios-2.11-3.fc9.i386. The plugin "check_printer" I downloaded from NagiosExchange. Thanks Marcelo - 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=100&url=/ ___ 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: Unable to read output
Is there a different plugin similar to check_smartmon I can try that works with check_nrpe ? thanks in advanced. On Tue, Aug 12, 2008 at 3:20 PM, Jake Solid <[EMAIL PROTECTED]> wrote: > The following line will make all commands use sudo: > > command_prefix=/usr/bin/sudo > > I remove the comment for command_prefix=/usr/bin/sudo and add the following > to the sudoers file: > > nagiosALL=(ALL) NOPASSWD: /usr/sbin/smartctl,/usr/lib64/nagios/plugins/ > > Now, I get the NRPE: Unable to read output for any plugin that gets > invoked. > > The permissions of check_smartmon on the remote server are the same as the > other plugins that are working. > > -rwxr-xr-x 1 root root 8.4K Aug 6 13:02 check_smartmon > > > But I'm still not able to successfully invoke check_smartmon with > check_nrpe from the nagios server. > > > > > On Tue, Aug 12, 2008 at 2:25 PM, <[EMAIL PROTECTED]> wrote: > >> I dont know if that will work, there is a specific option inside >> nrpe.cfg for executing commands via sudo: >> >> # COMMAND PREFIX >> # This option allows you to prefix all commands with a user-defined >> string. >> # A space is automatically added between the specified prefix string and >> the >> # command line from the command definition. >> # >> # *** THIS EXAMPLE MAY POSE A POTENTIAL SECURITY RISK, SO USE WITH >> CAUTION! *** >> # Usage scenario: >> # Execute restricted commmands using sudo. For this to work, you need to >> add >> # the nagios user to your /etc/sudoers. An example entry for alllowing >> # execution of the plugins from might be: >> # >> # nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/ >> # >> # This lets the nagios user run all commands in that directory (and only >> them) >> # without asking for a password. If you do this, make sure you don't give >> # random users write access to that directory or its contents! >> >> # command_prefix=/usr/bin/sudo >> >> >> Also make sure you can run the command exactly like nrpe does as the >> user nrpe is running as. >> >> As for your bolded question, go chmod 644 check_load and try to run >> it, it will give you the same error. It just means that the script >> executed but didn't respond with recognized output. >> >> On 8/12/08, Jake Solid <[EMAIL PROTECTED]> wrote: >> > I did modified the nrpe.cfg to execute commands via sudo by adding the >> > following line: >> > >> > *command[check_smartmon]=/usr/bin/sudo >> > /usr/lib64/nagios/plugins/check_smartmon ata -d /dev/sda* >> > >> > *Why I'm able to invoke the following plugins from the nagios server >> using >> > check_nrpe but when invoking check_smartmon I get *NRPE: Unable to read >> > output*?* >> > >> > command[check_users]=/usr/lib64/nagios/plugins/check_users -w 8 -c 10 >> > command[check_load]=/usr/lib64/nagios/plugins/check_load -w 15,10,5 -c >> > 30,25,20 >> > command[check_disk1]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% >> -p >> > /dev/mapper/VolGroup00-LogVol00 >> > command[check_disk2]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% >> -p >> > /dev/mapper/VolGroup00-LogVol01 >> > command[check_disk3]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% >> -p >> > /dev/mapper/VolGroup00-LogVol02 >> > command[check_disk4]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% >> -p >> > /dev/mapper/VolGroup01-LogVol00 >> > command[check_md]=/usr/lib64/nagios/plugins/check_swraid >> > command[check_zombie_procs]=/usr/lib64/nagios/plugins/check_procs -w 5 >> -c 10 >> > -s Z >> > command[check_total_procs]=/usr/lib64/nagios/plugins/check_procs -w 200 >> -c >> > 300 >> > >> > >> > >> > On Tue, Aug 12, 2008 at 12:25 PM, <[EMAIL PROTECTED]> wrote: >> > >> >> executing check_nrpe via sudo will not accomplish what you want. You >> >> will need to either modify the nrpe.cfg to execute commands via sudo, >> >> or write a wrapper for check_smartmon. I am not familiar with that >> >> plugin, but you may also be able to edit it and prepend /path/to/sudo >> >> before it execs smartctl. >> >> >> >> >> >> >> >> On 8/12/08, Jake Solid <[EMAIL PROTECTED]> wrote: >> >> > I'm trying to use check_nrpe with check_smartmon but I'm getting >> NRPE: >> >> > Unable to read output at the Nagios Server. *All other check plugins >> >> > like >> >> > check_load and check_procs work fine. >> >> > * >> >> > *I'm running the following command from my nagios server to the >> remote >> >> host: >> >> > * >> >> > *./check_nrpe -H remotehost.domain.com -c check_smartmon* >> >> > >> >> > *and the out put is the following:* >> >> > *NRPE: Unable to read output* >> >> > >> >> > *This is what the remote host logs display:* >> >> > *Aug 12 11:16:13 *remotehost* xinetd[7151]: START: nrpe pid=7986 >> from= >> >> > 198.162.1.1 <- Nagios Server IP Address >> >> > Aug 12 11:16:13 *remotehost* nrpe[7986]: INFO: SSL/TLS initialized. >> All >> >> > network traffic will be encrypted. >> >> > Aug 12 11:16:13 *remotehost* xinetd[7151]: EXIT: nrpe status=0 >> pid=7986 >> >> > duration=0(sec)* >> >> > >> >> > >> >> > *When I use t
Re: [Nagios-users] Discovery options?
In addition to the two mentioned in the FAQ, there is also NeDi (http://nedi.ch). It's not built for integration with Nagios, but it is open source and uses a MySQL backend. Great tool with lots of cool features. Thanks, Garry -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aaron M. Segura Sent: Wednesday, August 13, 2008 8:31 AM To: Devon Harding Cc: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Discovery options? http://www.nagios.org/faqs/viewfaq.php?faq_id=347 On Wed, 2008-08-13 at 10:16 -0400, Devon Harding wrote: > Are there any discovery options for Nagios? If I have alot of servers > on a subnet and want to import them, whats the best way? > > -Devon > > > > - > 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=100&url=/ > ___ 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=100&url=/ ___ 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 NOTICE: This e-mail and any files transmitted with it are the property of ARCADIS U.S., Inc. and its affiliates. All rights, including without limitation copyright, are reserved. The proprietary information contained in this e-mail message, and any files transmitted with it, is intended for the use of the recipient(s) named above. If the reader of this e-mail is not the intended recipient, you are hereby notified that you have received this e-mail in error and that any review, distribution or copying of this e-mail or any files transmitted with it is strictly prohibited. If you have received this e-mail in error, please notify the sender immediately and delete the original message and any files transmitted. The unauthorized use of this e-mail or any files transmitted with it is prohibited and disclaimed by ARCADIS U.S., Inc. and its affiliates. - 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=100&url=/ ___ 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] Discovery options?
http://www.nagios.org/faqs/viewfaq.php?faq_id=347 On Wed, 2008-08-13 at 10:16 -0400, Devon Harding wrote: > Are there any discovery options for Nagios? If I have alot of servers > on a subnet and want to import them, whats the best way? > > -Devon > > > > - > 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=100&url=/ > ___ 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=100&url=/ ___ 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] Discovery options?
Are there any discovery options for Nagios? If I have alot of servers on a subnet and want to import them, whats the best way? -Devon - 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=100&url=/___ 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] service deps & recovery
Using a lot of checks through NRPE for all hosts, we implemented a general check_nrpe, one that just checks wether NRPE is listening on the host, and let all the other checks using NRPE depend on this one. Service dependency example: define servicedependency{ host_name servername service_description Check NRPE dependent_service_description Load execution_failure_criteria o notification_failure_criteria w,u,c } The service dependency does work as, when the NRPE daemon goes down, we only get a message saying that 'Check NRPE' is down. The other checks go critical but no notification is sent out. Problem is that when the NRPE on the host-to-be-checked is functional again, we notice that some of the checks where a service dependency has been applied do not recover, they remain in the 'critical' state. The check returns to an OK-state only after we manually scheduled an active check for it. Nagios version we are using is 3.03 Same issues with previous versions noticed (3.01) Anyone noticed any similar issues, or am I missing smth in the config? Tom - 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=100&url=/ ___ 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] Schedule recurring downtime
http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed% 2F2140.html;d=1 On Wed, 2008-08-13 at 09:48 +0200, Lars Jørgensen wrote: > Hi, > > We have a server that needs to reboot once a week and does this via a cron > job. Is there any way to schedule this recurring downtime in nagios so as not > to get notifications? > > I can fiddle with time periods and make it work but is there a more elegant > way of doing it? > > > -- > Lars > > - > 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=100&url=/ > ___ > 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=100&url=/ ___ 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 Processes in Linux
Please always respond on list so that others, now and in the future, can benefit from your experience. More below... On Aug 13, 2008, at 7:31 AM, Edwin Zoeller wrote: > Standard plungins? I did not see any check_procs for Linux only > Solaris, The plugins that are part the standard nagios distribution (http://www.nagios.org/download/ , Nagios Plugins (stable releases)). You can compile them for just about any unix-like OS. These are the core set of plugins that everyone should have. http://nagios.sourceforge.net/docs/2_0/plugins.html > which work well. The only check_proc command I came across for Linux > is > as follows: > > Check_system_procs > Check_system_procs2 > > Neither one work for me. What are you using? Can you send me a copy? http://nagiosplugins.org/man/check_procs, from the standard plugins. -- 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=100&url=/ ___ 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_snmp_int .... Error reading table : (null)
> -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Agnello George > Sent: Wednesday, August 13, 2008 3:40 AM > To: nagios-users@lists.sourceforge.net > Subject: [Nagios-users] ./check_snmp_int Error reading table : (null) > > Hi > I downloaded the snmp c pugin and followed the instruction as per > > http://nagios.manubulon.com/package_c.html > > then i try to check if all interfaces are up on my localhost system i > use the following command > > ./check_snmp_int.pl -H 127.0.0.1 -C public -n eth > V1 login : public > Error reading table : (null) > > can you explain to me how i can get this working right ?? Can you successfully snmpwalk your system, or at least query the values you need? I tried this on a linux box, and a VMWare ESX server, and all seems to work fine, so I'm thinking it has to do with your snmpd setup/config.. [EMAIL PROTECTED] libexec]# ./check_snmp_int -H 10.14.3.110 -C public -n vmnic OK : vmnic1:UP,vmnic0:UP,vmnic3:UP,vmnic2:UP: 4 UP [EMAIL PROTECTED] libexec]# ./check_snmp_int -H 10.14.1.167 -C public -n eth OK : eth0:UP: 1 UP Regards, jamie - 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=100&url=/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Problem with custom report period
Can anybody please help me with this issue? Thanks, Sudheer Muddappa Sudheer Muddappa wrote: > Hi All, > > When I use Availability report with custom period , i do not get any > results for up/down times. > If I add present day in the custom report period then it displays all > the information. Is it a bug or do I need to set any values to display > the Custom reports properly? > > > I am running Nagios 2.6 on Debian. > > Thanks, > > - 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=100&url=/ ___ 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 freshness checks randomly think check results are from 1973.
Problem solved! We were 100% last night and, after a little testing, I found the smoking gun... A time stamp of 1218611709 = 8/13/2008 07:15:09 loose the last number and, you guessed it, 11/11/1973 20:19:30! Thanks for the extra effort Thomas! On Tue, Aug 12, 2008 at 12:31 PM, fevin Kagen <[EMAIL PROTECTED]> wrote: > Thanks! That seems like it just may be the ticket. I have enabled the > debug output and changed the time calculation to > mytime = > str(int(time.time())) > > So far so good, but the real test will be over the next few nights. I'll > keep you guys posted. Thanks again for all the help! > > > On Tue, Aug 12, 2008 at 2:17 AM, Thomas Guyot-Sionnest <[EMAIL > PROTECTED]>wrote: > >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> On 11/08/08 11:23 PM, Thomas Guyot-Sionnest wrote: >> > On 11/08/08 04:57 PM, fevin Kagen wrote: >> >> So...is a date sent in the SNMP trap or is the date set to the >> >> time that Nagios receives the alert? >> > >> > It's in the command sent to the Nagios command pipe. >> > >> > See: >> > >> > http://nagios.sourceforge.net/docs/3_0/extcommands.html >> > http://www.nagios.org/developerinfo/externalcommands/commandlist.php >> > >> >> Is there a way to output to both the existing output (the nagios >> >> command file) and a debug output? It doesn't happen all the time so >> >> trying to capture a bad entry would mean taking the whole system down >> >> for a week plus. >> > >> > I never touched python before, but looks plain simple object-oriented >> > programming. I'd try making the post_results function looks like this: >> > >> > def post_results(host, job, mondata_res, return_code): >> > mytime = time.time() >> > mytime = str(mytime) >> > mytime = mytime[:-3] >> > #print mondata_res >> > output = open('/usr/local/nagios/var/rw/nagios.cmd', 'w') >> > debug_out = open('/tmp/services-debug.out, 'a') >> > results = "[" + mytime + "] " + "PROCESS_SERVICE_CHECK_RESULT;" \ >> > + host + ";" + job + ";" \ >> > + return_code + ";" + mondata_res + "\n" >> > output.write(results) >> > debug_out.write(results) >> > >> > The change are oppening a 2nd file in append mode: >> > debug_out = open('/tmp/services-debug.out, 'a') >> > >> > And then writing the same thing as the nagios out to it: >> > debug_out.write(results) >> > >> > As soon as it fails check the end of that file, you should see the same >> > thing as what nagios received. If the [time] part is the problem thoug I >> > can't really help. This is the part that generated the time part: >> > >> > mytime = time.time() >> > mytime = str(mytime) >> > mytime = mytime[:-3] >> > >> >> Well, python is a language I wouldn't refuse to learn, and I just >> started looking at it. On the fun side there's an interactive mode that >> let you learn as you try live... >> >> After a few minutes of reading http://docs.python.org/tut/ ... >> >> - From what I understand in the above commands, time.time() returns you a >> float object that returns unix time with two decimals, ex: >> 1218520859.75. In this plugin the author strips the last three >> characters from the string'ified value ([:-3] to get a normal timestamp. >> Whenever the time is rounded (ex: 1218520859.7, 1218520859.0) this >> strips too many characters and you get a date far in the past. >> >> The proper way to do it is simply by converting it to an integer, i.e. >> replace the three lines above with: >> >> mytime = str(int(time.time())) >> >> Since I believe the str() was only to use the hooks on it, this probably >> works as well: >> >> mytime = int(time.time()) >> >> Hope this helps. >> >> - -- >> Thomas >> -BEGIN PGP SIGNATURE- >> Version: GnuPG v1.4.6 (GNU/Linux) >> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org >> >> iD8DBQFIoSr86dZ+Kt5BchYRAmZ5AJ9zH2akrPQfhsLhve74jgxtdicLjwCfWsIo >> qt0WgLTig7uVQvf1JwYcCMA= >> =KMAD >> -END PGP SIGNATURE- >> > > - 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=100&url=/___ 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] Return code of 127
There is a good link to this problem here: http://www.nagios.org/faqs/viewfaq.php?faq_id=17 I had this a few times and as suggested in the link, the path to the plugin is invalid. Make sure this path is correct and this should solve your issue. If it continues post the bit from the commands file that is being called and the path to where your plugins are installed on your system and what OS, version of nagios you are using. Regards Richard Assaf Flatto wrote: > Can you provide the section of the nagios log and the messages log that > relate to this issue ? > > Assaf > > > On Wednesday 13 August 2008 09:06:39 Nair wrote: > >> Dear All, >> >> Using Nagios 2.11 with mysql DB using ndo2db plugin. >> >> I am getting below error and the Nagios server hangs down. >> >> (Return code of 127 is out of bounds - plugin may be missing) >> >> Nagiosstat output: >> >> Used/High/Total Command Buffers: 2561 / 2561 / 32268 >> Used/High/Total Check Result Buffers: 0 / 0 / 4096 >> >> I could see more than 33,000 of NSCA process running where the command >> buffer is only 4096. Resolved the problem temprorly by increasing the >> command buffer to 35,000. >> >> Still I am under assumption that Mysql query is the root cause of the >> issue. >> >> Please share your ideas, if hav gone simialr issues. >> >> Thank you. >> Nair. >> > > > > > > > IMPORTANT . this email and the information in it may be confidential, legally > privileged and/or protected by law. It is intended solely for the use of the > person to whom it is addressed. If you are not the intended recipient, please > notify the sender immediately and do not disclose the contents to any other > person, use it for any purpose, or store or copy the information in any > medium. > Please also delete all copies of this email and any attachments from your > system. > > We cannot guarantee the security or confidentiality of email communications. > We > do not accept any liability for losses or damages that you may suffer as a > result of your receipt of this email including but not limited to computer > service or system failure, access delays or interruption, data non-delivery or > mis-delivery, computer viruses or other harmful components. > > Copyright in this email and any attachments belong to Select Service Partner > UK > Limited. Should you communicate with anyone at Select Service Partner UK > Limited by > email, you consent to us monitoring and reading any such correspondence. > > Nothing in this email shall be taken or read as suggesting, proposing or > relating to any agreement concerted practice or other practice that could > infringe UK or EC competition legislation. > > Select Service Partner UK Limited is a company registered in England and Wales > (company number 05687183) whose registered office is at 1 The Heights, > Brooklands, Weybridge. Surrey. KT13 0NY > > > > - > 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=100&url=/ > ___ > 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=100&url=/ ___ 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] Return code of 127
Can you provide the section of the nagios log and the messages log that relate to this issue ? Assaf On Wednesday 13 August 2008 09:06:39 Nair wrote: > Dear All, > > Using Nagios 2.11 with mysql DB using ndo2db plugin. > > I am getting below error and the Nagios server hangs down. > > (Return code of 127 is out of bounds - plugin may be missing) > > Nagiosstat output: > > Used/High/Total Command Buffers: 2561 / 2561 / 32268 > Used/High/Total Check Result Buffers: 0 / 0 / 4096 > > I could see more than 33,000 of NSCA process running where the command > buffer is only 4096. Resolved the problem temprorly by increasing the > command buffer to 35,000. > > Still I am under assumption that Mysql query is the root cause of the > issue. > > Please share your ideas, if hav gone simialr issues. > > Thank you. > Nair. IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY - 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=100&url=/ ___ 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 3.x on PowerPC
Hi folks, I am running several instances of Nagios 2.x on Linux machines. My main instance monitors 30 hosts and 400+ service from a xen vm on an old PIII dual - not noticable load on the machine involved. No I have setup Nagios 3.03 via Macports on a dual cpu PowerMac G5 with only 3 hosts and not even 100 services - and cpu usage is constantly between 150 and 200 %. Is Nagios 3.x compared to 2.x using much more resources, or must there be a problem with it running on PowerPC and MacOS X especially? Has anybody experienced this, too? The other problem is that Nagios on the G5 sometimes stops working: no checks are done any more; in other cases a sub process (e.g. one generating an email notification) stops in the middle of action and resides in the running process list for hours or days without errors showing anywhere. I am stuck and do not have a good idea what to look at. Any hint or help is appreciated. Dirk - 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=100&url=/ ___ 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] Return code of 127
Dear All, Using Nagios 2.11 with mysql DB using ndo2db plugin. I am getting below error and the Nagios server hangs down. (Return code of 127 is out of bounds - plugin may be missing) Nagiosstat output: Used/High/Total Command Buffers: 2561 / 2561 / 32268 Used/High/Total Check Result Buffers: 0 / 0 / 4096 I could see more than 33,000 of NSCA process running where the command buffer is only 4096. Resolved the problem temprorly by increasing the command buffer to 35,000. Still I am under assumption that Mysql query is the root cause of the issue. Please share your ideas, if hav gone simialr issues. Thank you. Nair. - 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=100&url=/___ 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] Schedule recurring downtime
hi lars -- you find a webfrontend addon at www.naigosexchange.org: http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed% 2F1846.html;d=1 or you use the search funtion. it is verry easy to implement in your naigosconfig. best regards markus -Original Message- From: Lars Jørgensen <[EMAIL PROTECTED]> To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Schedule recurring downtime Date: Wed, 13 Aug 2008 09:48:57 +0200 Hi, We have a server that needs to reboot once a week and does this via a cron job. Is there any way to schedule this recurring downtime in nagios so as not to get notifications? I can fiddle with time periods and make it work but is there a more elegant way of doing it? -- Lars - 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=100&url=/ ___ 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=100&url=/ ___ 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] Schedule recurring downtime
Hi, You could try this http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=122 and send a schedule downtime with the API //Bo -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lars Jørgensen Sent: 13. august 2008 09:49 To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Schedule recurring downtime Hi, We have a server that needs to reboot once a week and does this via a cron job. Is there any way to schedule this recurring downtime in nagios so as not to get notifications? I can fiddle with time periods and make it work but is there a more elegant way of doing it? -- Lars - 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=100&url=/ ___ 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=100&url=/ ___ 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] Schedule recurring downtime
Hi, We have a server that needs to reboot once a week and does this via a cron job. Is there any way to schedule this recurring downtime in nagios so as not to get notifications? I can fiddle with time periods and make it work but is there a more elegant way of doing it? -- Lars - 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=100&url=/ ___ 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_int .... Error reading table : (null)
Hi I downloaded the snmp c pugin and followed the instruction as per http://nagios.manubulon.com/package_c.html then i try to check if all interfaces are up on my localhost system i use the following command ./check_snmp_int.pl -H 127.0.0.1 -C public -n eth V1 login : public Error reading table : (null) can you explain to me how i can get this working right ?? Thanks a lot !! -- सादर अग्नेल्लो द्सौज़ा www.linux-vashi.blogspot.com www.bible-study-india.blogspot.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=100&url=/ ___ 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