[Nagios-users] Time periods Issue
From: adi yesaya [EMAIL PROTECTED] Date: Jun 26, 2007 8:12 PM Subject: [Nagios-users] Time-periods Issue To: Nagios-users@lists.sourceforge.net It's about time periods again, It's 20:00 o'clock right now and I defined a time period like this: define timeperiod{ timeperiod_name night alias Check at night only sunday 22:00-23:00 monday 22:00-23:00 tuesday 22:00-23:00 wednesday 22:00-23:00 thursday 22:00-23:00 friday 22:00-23:00 saturday 22:00-23:00 } using this settings, i restarted Nagios and it schedules all plug-ins at 22:00 without interleaving them. But if i set the timeperiod to: define timeperiod{ timeperiod_name night alias Check at night only sunday 20:15-21:15 monday 20:15-21:15 tuesday 20:15-21:15 wednesday 20:15-21:15 thursday 20:15-21:15 friday 20:15-21:15 saturday 20:15-21:15 } and restart nagios, on the web interface I can see Nagios interleaving all the checks right away. Why if i schedule it couple hours ahead Nagios doesn't interleave the chekcs but if i schedule it couple minutes ahead, it interleaves all the check? these are my configuration: service_interleave_factor=s max_service_check_spread=60 service_inter_check_delay_method=s Regards, Adi Yesaya - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ 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] Time periods Issue
First i thought so too, but i tried to change the max_service_check_spread to 90 or 180 and it still happens. Does anyone have a clue? On 6/27/07, Andy Harrison [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Why if i schedule it couple hours ahead Nagios doesn't interleave the chekcs but if i schedule it couple minutes ahead, it interleaves all the check? I'm not certain, but it may have something to do with your max_service_check_spread being set to 60 minutes and it might be getting confused with your timeperiod definition being a span of only one hour. - -- Andy Harrison public key: 0x67518262 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: http://firegpg.tuxfamily.org iD8DBQFGglIsNTm8fWdRgmIRAqruAKDZGjmw+YVAxUP3aohTTALOkZ/jpACgr8+F CQC+yTBRn893gFnmgyRNLIE= =cP2C -END PGP SIGNATURE- - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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 DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ 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] Time-periods Issue
It's about time periods again, It's 20:00 o'clock right now and I defined a time period like this: define timeperiod{ timeperiod_name night alias Check at night only sunday 22:00-23:00 monday 22:00-23:00 tuesday 22:00-23:00 wednesday 22:00-23:00 thursday 22:00-23:00 friday 22:00-23:00 saturday 22:00-23:00 } using this settings, i restarted Nagios and it schedules all plug-ins at 22:00 without interleaving them. But if i set the timeperiod to: define timeperiod{ timeperiod_name night alias Check at night only sunday 20:15-21:15 monday 20:15-21:15 tuesday 20:15-21:15 wednesday 20:15-21:15 thursday 20:15-21:15 friday 20:15-21:15 saturday 20:15-21:15 } and restart nagios, on the web interface I can see Nagios interleaving all the checks right away. Why if i schedule it couple hours ahead Nagios doesn't interleave the chekcs but if i schedule it couple minutes ahead, it interleaves all the check? these are my configuration: service_interleave_factor=s max_service_check_spread=60 service_inter_check_delay_method=s Regards, Adi Yesaya - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ 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 is not scheduled to be checked
Dear Nagios users, I have tried to schedule Nagios to run checks at 23:00-01:00. I defined it at the time period as such: define timeperiod{ timeperiod_name midnight alias Check at night only sunday 23:00-01:00 monday 23:00-01:00 tuesday 23:00-01:00 wednesday 23:00-01:00 thursday23:00-01:00 friday 23:00-01:00 saturday23:00-01:00 } and i defined the time period at the service like this (other options omited): define service{ check_periodmidnight ; The service is checked at midnight 23:00 - 01:00 } I did it yesterday and this morning as i checked Nagios i was surprised because i see this at the service detail page : all the Status fields are PENDING all the Last Check fields are N/A all the Status Informations are Service is not scheduled to be checked... What makes me more confused is because when i checked /var/log/messages it stated that Nagios start running checks at 00:00 and when i checked the trends, the graphic shows that all the plug-in did their check around 00:00 and returned a state. Does anyone know why this all happens? Regards, Adi Yesaya - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ 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] Best Place to Keep Our Plug-ins
Hi Nagiosers, Im curious about this thing: Where is the best place to keep our home-made plug-ins ? Any ideas? Thanks for sharing, Adi Yesaya - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ 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-user] Run plug-in test as Nagios user
Hi all, My plug-in had an output problem, it always says : Return code of 9 is out of bonds I got a headache because when i tested the plug-in manually it worked and gave me some nice output. Then I surfed the web and found out that i have to change the ownership of the plug-in and run the plug-in as a nagios user. I did it and it worked! :-) My question is why do we have to run the plug-in tests as Nagios user and change the ownership of the plugin (and other related file to it) to the nagios user? Thanks before, Adi Yesaya - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ 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] Failed to Send Notification
chop Fallback.nl.uu.net is rejecting the e-mail because the MTA on your nagios box, not nagios itself, is claiming to be called localhost.localdomain, which is an unverifiable name. It's very reasonable that they would do that. You need to configure the MTA on your nagios box to use a real hostname that can be found in the DNS. This may be as simple as adding the hostname to your DNS and editing your /etc/hosts file on your nagios box, changing the 127.0.0.1 entry to something like -- 127.0.0.1 yourhost.yourdomain.foo localhost.localdomain You'd need to restart your MTA if it's running as a daemon after making that change. If that doesn't work, you'll need to specifically configure the MTA that you're using to masquerade as that host or domain. You can do this for Sendmail by setting the MASQUERADE_AS macro. Under Postfix I believe it's the myorigin variable. -- Marc How can I know what MTA I am using? At the nagios command.cfg, the email-notification is send by using /bin/mail , but is /bin/mail a MTA or just to send email? - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ 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] Limit Service Check
Hi all, I have 15 hosts and around 100 services running on each host. Is it possible to limit the service check of Nagios that it will only run 2 service checks on one host in one point of time? If it is possible, how is it done? Another question is: If, for example, 1 service check fails, it will try out 4 times again before it announce the service as warning. In this 4 time retry periode, will Nagios finish this retry check first then run the next scheduled service check or will nagios run the retry check and the next service check in paralel? Many thanks, Adi Yesaya - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ 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] Limit Service Check
Hi all, I have 15 hosts and around 100 services running on each host. Is it possible to limit the service check of Nagios that it will only run 2 service checks on one host in one point of time? If it is possible, how is it done? Another question is: If, for example, 1 service check fails, it will try out 4 times again before it announce the service as warning. In this 4 time retry period, will Nagios finish this retry check first then run the next scheduled service check or will nagios run the retry check and the next service check in parallel? Many thanks, Adi Yesaya - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ 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] Interleaving Factor and Inter Check Delay
Hi Nagios-ers, Please correct me if I'm wrong, but the interleaving factor and inter check delay will only affect scheduling when Nagios (re)starts. After that, the interleaving and inter check delay will have no big effect on the service check scheduling because some services take longer to execute than others and host and/or service problems can alter the timing of one or more service checks. Does anyone have any idea how to limit the amount of a service check that is run on a host to only 2 service chekcs in a point of time? Thanks, Adi Yesaya - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ 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] Limit Service Check
Hi Marc, But if i aggregate the result, then at Nagios, i won't be able to give warnings to a specific check. Doesn't Nagios only accept 1 state of output (Ok-Warning-Unknown-Critical) ? Sorri, i was just hiting the reply button and it sends to you only. Hope this also helps others who have the same challenge as me :-) Thanks, Adi Yesaya On 5/9/07, Marc Powell [EMAIL PROTECTED] wrote: Please always respond on-list and not to me directly. -Original Message- From: adi yesaya [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 09, 2007 10:44 AM To: Marc Powell Subject: Re: [Nagios-users] Limit Service Check Hello Marc, Thanks for your answer. It's quite hard for me, since my project requires me to only have a maximum 2 connections (service check) to a host. Do you have other suggestions than setting the max_concurrent_checks to 2? I never suggested changing max_concurrent_check but rather service_interleave_factor. They're definitely different beasts. As for other suggestions... - Create one or more plugins that then run multiple plugins sequentially and aggregate the results following the plugin guidelines (http://nagiosplug.sf.net) for reporting back to nagios. These new plugins would be the service checks you tell nagios to run. - or, disable parallelization entirely and force nagios to run all checks sequentially. This is definitely not desirable as it really limits your scalability and the frequency that you can run checks. Another question is: Is it possible in Nagios to specify on a per-host basis, whether or not a service check can be parallelized? No, but... http://nagios.sourceforge.net/docs/2_0/parallelization.html says ... If all else fails you can effectively prevent service checks from being parallelized by setting the max_concurrent_checks option to 1. This will allow only one service to be checked at a time, so it isn't a spectacular solution. If there is enough demand, I will add an option to the service definitions which will allow you to specify on a per-service basis whether or not a service check can be parallelized. If there isn't enough demand, I won't... You might want to chime in on nagios-devel to express support for such a feature. -- Marc - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ 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] Memory Usage per plug-in
Hi Nagiosers, I'm just starting my school project in writing plug-ins for Nagios, it's my first time with Nagios and im also learning more about Linux. In this project i installed Nagios on a Linux box and run several plug-ins. My question is: Is there any way that we can know how much memory and cpu percentage do we need when running 1 plug-in? I need to make an estimation how much memory and cpu it will take to run around 300 to 900 plug-ins. Could you share with me how much memory and cpu does your Nagios plug-in requires when they run? Thank you, Adi Yesaya - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ 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