Re: [Nagios-users] contacts.cfg error.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 jeremiah wrote: > It appears to be defined to me. Is this not correct? No. It only shows to me that you have not done the required thing. That is that you need to sit down and read the manual of nagios. So it would be very much appriciated if you take the time to sit down with the manual and find the answers in there as most of the questions you have send so far indicate that you have not even seen the manual. If something is unclear in the manual then by all means ask for clearification. But I think that asking questions that show a lack of commitment to read the manual and understanding the way in which nagios works is a cheap way of getting around you doing what you should do. And it is my simple view that we should not encourage people to start with nagios untill they have read the manual. 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) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFI9tsnBvzDRVjxmYERAisVAKCgQrwzccAsxI8klhw6ztot29iQLwCgiaEX coUF2KLGMD6MGMa8cthJU68= =pzlR -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] No parallel checks with scripts under?
This is my official 'stupid guy' post. I finally got permission to use yum live instead of scping rpms around, so I de-installed gcc and it's dependencies (except for libgcc for obvious reasons :p) as well as gd, libjpeg and glibc-headers, and then re-installed them with yum and recompiled nagios now our dual AMD x64 host is doing over 300 checks a minute. :) with an average check latency of .046 secs and a max of 3 secs. Thanks again Andreas for your help. - Max - 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] contacts.cfg error.
No, you have defined a _contact_. One part of the contact definition is a pointer to the notify-by-email command which is not defined. Here is a sample. It came from the misccommands.cfg file that was part of the RPM I installed from fedora. # 'notify-by-email' command definition define command{ command_namenotify-by-email command_line/usr/bin/printf "%b" "* Nagios *\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ } -f On Wed, 15 Oct 2008, jeremiah wrote: > Date: Wed, 15 Oct 2008 16:43:24 -0700 > From: jeremiah <[EMAIL PROTECTED]> > To: Nagios Users Mailinglist > Subject: Re: [Nagios-users] contacts.cfg error. > > It appears to be defined to me. Is this not correct? > > define contact{ > contact_name root > alias Jeremiah > service_notification_period 24x7 > host_notification_period 24x7 > service_notification_options w,u,c,r > host_notification_options d,r > service_notification_commands notify-by-email > host_notification_commands host-notify-by-email > email > } > > > On Wed, 2008-10-15 at 16:26 -0700, Hugo van der Kooij wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> jeremiah wrote: >> >>> Error: Service notification command 'notify-by-email' specified for >>> contact 'root' is not defined anywhere! >>> Error: Host notification command 'host-notify-by-email' specified >> for >>> contact 'root' is not defined anywhere! >> >> The answer is right in front of you. You need to define these >> commands. >> >> In fact they should be listed in one of your sample configuration >> files. >> >> Which sections of the manuals did you use to find an answer to this >> question? >> >> 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) >> Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org >> >> iD8DBQFI9nwcBvzDRVjxmYERAvpJAJ9FY7Yx5NgoYsU7gtVhSvA65+mDUACfV6Gi >> SLilbuXS+MczNxNoWsdDooU= >> =GihX >> -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 >> >> >> > > > Disclaimer: The information contained in this transmission, including any > attachments, may contain confidential information of Panasonic Avionics > Corporation. This transmission is intended only for the use of the > addressee(s) listed above. Unauthorized review, dissemination or other use > of the information contained in this transmission is strictly prohibited. > If you have received this transmission in error or have reason to believe > you are not authorized to receive it, please notify the sender by return > email and promptly delete the transmission. > > > > - > 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 a
Re: [Nagios-users] contacts.cfg error.
It appears to be defined to me. Is this not correct? define contact{ contact_name root alias Jeremiah service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c,r host_notification_options d,r service_notification_commands notify-by-email host_notification_commands host-notify-by-email email } On Wed, 2008-10-15 at 16:26 -0700, Hugo van der Kooij wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > jeremiah wrote: > > > Error: Service notification command 'notify-by-email' specified for > > contact 'root' is not defined anywhere! > > Error: Host notification command 'host-notify-by-email' specified > for > > contact 'root' is not defined anywhere! > > The answer is right in front of you. You need to define these > commands. > > In fact they should be listed in one of your sample configuration > files. > > Which sections of the manuals did you use to find an answer to this > question? > > 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) > Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org > > iD8DBQFI9nwcBvzDRVjxmYERAvpJAJ9FY7Yx5NgoYsU7gtVhSvA65+mDUACfV6Gi > SLilbuXS+MczNxNoWsdDooU= > =GihX > -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 > > > Disclaimer: The information contained in this transmission, including any attachments, may contain confidential information of Panasonic Avionics Corporation. This transmission is intended only for the use of the addressee(s) listed above. Unauthorized review, dissemination or other use of the information contained in this transmission is strictly prohibited. If you have received this transmission in error or have reason to believe you are not authorized to receive it, please notify the sender by return email and promptly delete the transmission. - 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] contacts.cfg error.
Thanks for your response. I'm seeing this line in nagios.cfg. # Command definitions cfg_file=/etc/nagios2/commands.cfg What do you tihnk? JJ On Wed, 2008-10-15 at 16:25 -0700, Sean McAfee wrote: > jeremiah wrote: > > Any thoughts on how to fix this one? > > > > > > Checking contacts... > > Error: Service notification command 'notify-by-email' specified for > > contact 'root' is not defined anywhere! > > Error: Host notification command 'host-notify-by-email' specified > for > > contact 'root' is not defined anywhere! > > = > > > > Here is my contacts.cfg file... > The problem isn't actually with your contacts.cfg, it's just that > you're > missing the commands that are referenced (I know, it can get > confusing). > > Is commands.cfg anywhere in your nagios.cfg? In a default install, > that's where these would be defined. > > -- > Sean McAfee > Collaborative Fusion, Inc. > > [EMAIL PROTECTED] > 412-422-3463 x 4025 > > 1710 Murray Avenue, Suite 320 > Pittsburgh, PA 15217 > > > IMPORTANT: This message contains confidential information > and is intended only for the individual named. If the reader of > this message is not an intended recipient (or the individual > responsible for the delivery of this message to an intended > recipient), please be advised that any re-use, dissemination, > distribution or copying of this message is prohibited. Please > notify the sender immediately by e-mail if you have received > this e-mail by mistake and delete this e-mail from your system. > E-mail transmission cannot be guaranteed to be secure or > error-free as information could be intercepted, corrupted, lost, > destroyed, arrive late or incomplete, or contain viruses. The > sender therefore does not accept liability for any errors or > omissions in the contents of this message, which arise as a > result of e-mail transmission. > > > > > > Disclaimer: The information contained in this transmission, including any attachments, may contain confidential information of Panasonic Avionics Corporation. This transmission is intended only for the use of the addressee(s) listed above. Unauthorized review, dissemination or other use of the information contained in this transmission is strictly prohibited. If you have received this transmission in error or have reason to believe you are not authorized to receive it, please notify the sender by return email and promptly delete the transmission. - 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] Monitor nagios running on a different server
rmp dmd wrote: > Thanks for all the replies I appreciate it. > > But most of the reply advised to use check_nagios to monitor Nagios > process on the local machine. > > What I need is to monitor whether nagios for our production system > (installed on a different server) is running or has stopped. > Right, but since Nagios isn't really a network service, it can only be checked locally. That's why my response mentioned NRPE. NRPE is installed on remote machines and allows you to run checks and plugins on the target machine and report the results back to your Nagios instance. Your main Nagios server will actually do check_nrpe - but with arguments directing the remote machine to run check_nagios and then report back the results. -- Sean McAfee Collaborative Fusion, Inc. [EMAIL PROTECTED] 412-422-3463 x 4025 1710 Murray Avenue, Suite 320 Pittsburgh, PA 15217 IMPORTANT: This message contains confidential information and is intended only for the individual named. If the reader of this message is not an intended recipient (or the individual responsible for the delivery of this message to an intended recipient), please be advised that any re-use, dissemination, distribution or copying of this message is prohibited. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. - 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] contacts.cfg error.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 jeremiah wrote: > Error: Service notification command 'notify-by-email' specified for > contact 'root' is not defined anywhere! > Error: Host notification command 'host-notify-by-email' specified for > contact 'root' is not defined anywhere! The answer is right in front of you. You need to define these commands. In fact they should be listed in one of your sample configuration files. Which sections of the manuals did you use to find an answer to this question? 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) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFI9nwcBvzDRVjxmYERAvpJAJ9FY7Yx5NgoYsU7gtVhSvA65+mDUACfV6Gi SLilbuXS+MczNxNoWsdDooU= =GihX -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] contacts.cfg error.
jeremiah wrote: > Any thoughts on how to fix this one? > > > Checking contacts... > Error: Service notification command 'notify-by-email' specified for > contact 'root' is not defined anywhere! > Error: Host notification command 'host-notify-by-email' specified for > contact 'root' is not defined anywhere! > = > > Here is my contacts.cfg file... The problem isn't actually with your contacts.cfg, it's just that you're missing the commands that are referenced (I know, it can get confusing). Is commands.cfg anywhere in your nagios.cfg? In a default install, that's where these would be defined. -- Sean McAfee Collaborative Fusion, Inc. [EMAIL PROTECTED] 412-422-3463 x 4025 1710 Murray Avenue, Suite 320 Pittsburgh, PA 15217 IMPORTANT: This message contains confidential information and is intended only for the individual named. If the reader of this message is not an intended recipient (or the individual responsible for the delivery of this message to an intended recipient), please be advised that any re-use, dissemination, distribution or copying of this message is prohibited. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. - 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] contacts.cfg error.
Any thoughts on how to fix this one? Checking contacts... Error: Service notification command 'notify-by-email' specified for contact 'root' is not defined anywhere! Error: Host notification command 'host-notify-by-email' specified for contact 'root' is not defined anywhere! = Here is my contacts.cfg file... define contact{ contact_name root alias Jeremiah service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c,r host_notification_options d,r service_notification_commands notify-by-email host_notification_commands host-notify-by-email email [EMAIL PROTECTED] } define contactgroup{ contactgroup_name admins alias Nagios Administrators members root } Thanks! JJ Disclaimer: The information contained in this transmission, including any attachments, may contain confidential information of Panasonic Avionics Corporation. This transmission is intended only for the use of the addressee(s) listed above. Unauthorized review, dissemination or other use of the information contained in this transmission is strictly prohibited. If you have received this transmission in error or have reason to believe you are not authorized to receive it, please notify the sender by return email and promptly delete the transmission. - 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] mysql connect error
I'm getting the following check_mysql error through the web interface. +++ Access denied for user 'nagios'@'ipadddress' (using password: NO) " Is this trying to logon to the host with a nagios system account? Can someone help me with this in understanding what I'm supposed to do to resolve this? thanks, JJ Disclaimer: The information contained in this transmission, including any attachments, may contain confidential information of Panasonic Avionics Corporation. This transmission is intended only for the use of the addressee(s) listed above. Unauthorized review, dissemination or other use of the information contained in this transmission is strictly prohibited. If you have received this transmission in error or have reason to believe you are not authorized to receive it, please notify the sender by return email and promptly delete the transmission. - 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] adding legends inside status map links
On Oct 15, 2008, at 4:10 PM, [EMAIL PROTECTED] wrote: > I think/hope I would be able to write a script/plugin for mining > those data and injecting them somewhere. What I`m asking you for is > a place in Nagios files, where these mined data from plugin could be > placed This functionality doesn't exist within nagios; the statusmap is fairly limited. One of the other mapping addons (nagvis for example), might have options like this but I don't use them or know. -- 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] Monitor nagios running on a different server
Thanks for all the replies I appreciate it. But most of the reply advised to use check_nagios to monitor Nagios process on the local machine. What I need is to monitor whether nagios for our production system (installed on a different server) is running or has stopped. I'm not sure if this can be checked via port and which port? ie check_command check_tcp![portnumber] Thanks! On Wed, Oct 15, 2008 at 12:16 PM, Gerhard Lausser <[EMAIL PROTECTED] > wrote: > Hi, > > did you google for check_nagios? > "This plugin checks the status of the Nagios process on the local machine > The plugin will check to make sure the Nagios status log is no older than > the number of minutes specified by the expires option. > It also checks the process table for a process matching the command > argument." > > Gerhard > > -- > *Von:* rmp dmd [mailto:[EMAIL PROTECTED] > *Gesendet:* Mittwoch, 15. Oktober 2008 17:28 > *An:* nagios-users@lists.sourceforge.net > *Betreff:* [Nagios-users] Monitor nagios running on a different server > >Hi, > > We have a nagios monitoring system for Production systems installed on > prodservmon1. We want to include monitoring of this in our nagios > monitoring for our corporate systems. Simply put, we want to monitor nagios > service running on prodservmon1. > > I've been googling but I haven't find anything. Kindly advise on how to do > this. > > > > Thanks! > Roehl > > - 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] adding legends inside status map links
Hello, is there a way how to add legends into a status map? Especially legends to lines between hosts. Or at least to the hosts - there are their names so far, so it should be possible to add there some more text which would come as a result of a plugin. Am I wright? I`m using Nagios for (not only) checking wireless bridges and it would be great if I could just look at the status map and see for example frequency and speed of that wireless links right next to the link in the map. Also this would be very nice for planning frequecies as they would be visible at first look. I think/hope I would be able to write a script/plugin for mining those data and injecting them somewhere. What I`m asking you for is a place in Nagios files, where these mined data from plugin could be placed. Thank you a lot. Pepe - 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] How would you monitor a large list of URLs?
On 10/15/08 12:28 PM, "Sean Carolan" <[EMAIL PROTECTED]> wrote: > I'm sure at least one of you may have been down this path before, so > here's my question: > > I have a large list of URLs that I'd like to monitor with Nagios. At > some point I may break them into groups but for the time being I'd be > happy to have a simple check_url monitor with the same options for all > URLs. How would you tackle this problem? > > - > 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 I would define a URL check template like so: define service{ nameurl-service active_checks_enabled 1 passive_checks_enabled 1 parallelize_check 1 obsess_over_service 1 check_freshness 0 notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 1 failure_prediction_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information1 register0 notification_optionsw,u,c,f,r servicegroups url,notifications is_volatile 0 check_period24x7 max_check_attempts 4 normal_check_interval 2 retry_check_interval1 contact_groups admins notification_interval 10 notification_period 24x7 } And then follow that with a bunch of short checks. define service{ use url-service host_name foo.looksmart.com service_description http check check_command check_url!/foo/bar/wee } define service{ use url-service host_name bar.looksmart.com service_description http check check_command check_url!/bar/foo/wee } define service{ use url-service host_name wee.looksmart.com service_description http check check_command check_url!/wee/query?foo=bar } -- Jonah Horowitz · Monitoring Manager · [EMAIL PROTECTED] W: 415-348-7694 · F: 415-348-7033 · M: 415-513-7202 LookSmart - Premium and Performance Advertising Solutions 625 Second Street, San Francisco, CA 94107 smime.p7s Description: S/MIME cryptographic 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] check_mysql
On Oct 15, 2008, at 11:00 AM, jeremiah wrote: > I want nagios to automatically check mysql services on my servers. > However when i view the web interface i see that staus is UNKNOWN > and it > displays the usage for check_mysql. In what file am i supposed to put > the arguments for this command? The arguments go in your service definition on the check_command line, separated from each other and the command name by "!". So in your case, you would have a check_command line something like: check_command check_mysql!!! where and are respectively whatever you need for the -P, -u and -p switches to check_mysql. --- Israel Brewster Computer Support Technician Frontier Flying Service Inc. 5245 Airport Industrial Rd Fairbanks, AK 99709 (907) 450-7250 x293 --- > > > Here is what i have so far in commands.cfg > > define command{ >command_namecheck_mysql >command_line$USER1$/check_mysql -H $HOSTADDRESS$ -P $ARG1$ > -u $ARG2$ -p $ARG3$ > } > > and my services.cf file... > > define service{ >use generic-service ; Name > of service template >hostgroup_name mysql_servers >service_description MYSQL >is_volatile 0 >check_period24x7 >max_check_attempts 3 >normal_check_interval 3 >retry_check_interval1 >contact_groups admins >notification_interval 30 >notification_period 24x7 >notification_optionsw,u,c,r >check_command check_mysql >} > > > Thanks! > > > > Disclaimer: The information contained in this transmission, > including any > attachments, may contain confidential information of Panasonic > Avionics > Corporation. This transmission is intended only for the use of the > addressee(s) listed above. Unauthorized review, dissemination or > other use > of the information contained in this transmission is strictly > prohibited. > If you have received this transmission in error or have reason to > believe > you are not authorized to receive it, please notify the sender by > return > email and promptly delete the transmission. > > > > - > 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] How would you monitor a large list of URLs?
Hi, check_multi @ http://my-plugin.de/wiki/projects/check_multi/start might be an option. It has a configuration file where you can put all the single check_http commands, one line for each of your urls. Gerhard > -Ursprüngliche Nachricht- > Von: Sean Carolan [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 15. Oktober 2008 21:29 > An: nagios-users@lists.sourceforge.net > Betreff: [Nagios-users] How would you monitor a large list of URLs? > > I'm sure at least one of you may have been down this path > before, so here's my question: > > I have a large list of URLs that I'd like to monitor with > Nagios. At some point I may break them into groups but for > the time being I'd be happy to have a simple check_url > monitor with the same options for all URLs. How would you > tackle this problem? > > -- > --- > 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] nagios not starting
On Oct 15, 2008, at 12:58 PM, jeremiah wrote: > Any ideas? > > ~$ sudo /etc/init.d/nagios2 start > [sudo] password for user: > * Starting nagios2 monitoring daemon nagios2 > kill: 1: No such process Eliminate sudo as a culprit. Can you run it directly as root -- /etc/init.d/nagios2 start or /path/to/nagios/bin/nagios or /path/to/nagios/bin/nagios -v /path/to/nagios/etc/nagios.cfg or /path/to/nagios/bin/nagios -d /path/to/nagios/etc/nagios.cfg Did you happen to mount the partition that the nagios binary lives in with noexec? What OS is this on? -- 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] How would you monitor a large list of URLs?
Write a simple shell script wrapper for check_http to iterate over a list of URLs and report any errors. -Original Message- From: Sean Carolan [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 15, 2008 1:29 PM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] How would you monitor a large list of URLs? I'm sure at least one of you may have been down this path before, so here's my question: I have a large list of URLs that I'd like to monitor with Nagios. At some point I may break them into groups but for the time being I'd be happy to have a simple check_url monitor with the same options for all URLs. How would you tackle this problem? - 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_mysql
On Oct 15, 2008, at 2:00 PM, jeremiah wrote: > I want nagios to automatically check mysql services on my servers. > However when i view the web interface i see that staus is UNKNOWN > and it > displays the usage for check_mysql. In what file am i supposed to put > the arguments for this command? Based on your command{} definition, they should be in your service definition. > Here is what i have so far in commands.cfg > > define command{ >command_namecheck_mysql >command_line$USER1$/check_mysql -H $HOSTADDRESS$ -P $ARG1$ > -u $ARG2$ -p $ARG3$ > } > > and my services.cf file... > > define service{ > [chop] >check_command check_mysql >} check_command should be something like -- check_command check_mysql!!! See the last half of the Macro Substitution section of http://nagios.sourceforge.net/docs/2_0/macros.html -- 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
[Nagios-users] How would you monitor a large list of URLs?
I'm sure at least one of you may have been down this path before, so here's my question: I have a large list of URLs that I'd like to monitor with Nagios. At some point I may break them into groups but for the time being I'd be happy to have a simple check_url monitor with the same options for all URLs. How would you tackle this problem? - 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_mysql
- "jeremiah" <[EMAIL PROTECTED]> wrote: > I want nagios to automatically check mysql services on my servers. > However when i view the web interface i see that staus is UNKNOWN and > it > displays the usage for check_mysql. In what file am i supposed to put > the arguments for this command? > > define service{ > use generic-service ; > Name > of service template > hostgroup_name mysql_servers > service_description MYSQL > is_volatile 0 > check_period24x7 > max_check_attempts 3 > normal_check_interval 3 > retry_check_interval1 > contact_groups admins > notification_interval 30 > notification_period 24x7 > notification_optionsw,u,c,r > check_command check_mysql Change your check_command directive to check_mysql!ARG1!ARG2!ARG3, where ARG1 is the $ARG1$ value of your check command from commands.cfg and so... -rm - 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 not starting
Where did you get a nagios2 binary? The Ubuntu repos? I've never seen that before. Stephen Valdinger MIS Helpdesk Coordinator 330.365.3622 -O 740.491.0958 - C [EMAIL PROTECTED] Never agrue with an idiot. They drag you down to their level and then beat you with their experience. -Original Message- From: jeremiah [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 15, 2008 1:59 PM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] nagios not starting Any ideas? ~$ sudo /etc/init.d/nagios2 start [sudo] password for user: * Starting nagios2 monitoring daemon nagios2 kill: 1: No such process [ OK ] Thanks! Disclaimer: The information contained in this transmission, including any attachments, may contain confidential information of Panasonic Avionics Corporation. This transmission is intended only for the use of the addressee(s) listed above. Unauthorized review, dissemination or other use of the information contained in this transmission is strictly prohibited. If you have received this transmission in error or have reason to believe you are not authorized to receive it, please notify the sender by return email and promptly delete the transmission. - 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] nagios not starting
Any ideas? ~$ sudo /etc/init.d/nagios2 start [sudo] password for user: * Starting nagios2 monitoring daemon nagios2 kill: 1: No such process [ OK ] Thanks! Disclaimer: The information contained in this transmission, including any attachments, may contain confidential information of Panasonic Avionics Corporation. This transmission is intended only for the use of the addressee(s) listed above. Unauthorized review, dissemination or other use of the information contained in this transmission is strictly prohibited. If you have received this transmission in error or have reason to believe you are not authorized to receive it, please notify the sender by return email and promptly delete the transmission. - 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_mysql
I want nagios to automatically check mysql services on my servers. However when i view the web interface i see that staus is UNKNOWN and it displays the usage for check_mysql. In what file am i supposed to put the arguments for this command? Here is what i have so far in commands.cfg define command{ command_namecheck_mysql command_line$USER1$/check_mysql -H $HOSTADDRESS$ -P $ARG1$ -u $ARG2$ -p $ARG3$ } and my services.cf file... define service{ use generic-service ; Name of service template hostgroup_name mysql_servers service_description MYSQL is_volatile 0 check_period24x7 max_check_attempts 3 normal_check_interval 3 retry_check_interval1 contact_groups admins notification_interval 30 notification_period 24x7 notification_optionsw,u,c,r check_command check_mysql } Thanks! Disclaimer: The information contained in this transmission, including any attachments, may contain confidential information of Panasonic Avionics Corporation. This transmission is intended only for the use of the addressee(s) listed above. Unauthorized review, dissemination or other use of the information contained in this transmission is strictly prohibited. If you have received this transmission in error or have reason to believe you are not authorized to receive it, please notify the sender by return email and promptly delete the transmission. - 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] Host-based service check period
Marc Powell a écrit : > On Oct 15, 2008, at 10:20 AM, Francis Dube wrote: > > >> check period. I would like to create a timeperiod for each host and >> that >> all the check for this host (service and host-alive) stop/start >> according to that timeperiod. Anybody knows a way to do this ? >> > > Host and services have historically been separate entities for the > most part with no inheritance between them at all. With nagios-3, > there is some inheritance happening now between a service and it's > host but only for three variables (contact_groups, > notification_interval and notification_period: > http://nagios.sourceforge.net/docs/3_0/objectinheritance.html#implied_inheritance) > > . check_period isn't an inheritable property and the most direct way > to a solution is to simply specify the same check_period name for the > services that you are using for the host. > > -- > 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 > Yeah but if I specify the same check_period name for the service, I have to define a service for every host (ex : a check_service_host1, check_service_host2, and so on..) because the services running on each hosts are running at different hours. I'll take a look at notification_period inheritance, it may be a good work around too. Thanks for the info. Francis Dube R&D www.optiksecurite.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
Re: [Nagios-users] No parallel checks with scripts under?
Deployed an increased config (200+ host with around 2000 checks) to a dual core laptop running CentOS with 1.5 GB RAM and am getting huge performance, 1531 checks in less than 5 minutes, seeing 8-10 nagios processes running at once as checks are parallelized, so I now know that something is messed up with the OS config i did on our prod host, just not sure what config setting is wrong .. comparing the CentOS config output with the prod output to see if I can find the problem i introduced, will post again when i find a solution. Again, if anyone sees a problem that stands out with my configs, feel free to tell me where i am being a dummy, otherwise i will do that myself :p when i find out what I did wrong with my manual rpm updates. Thanks again, Andreas, for your help with this. - Max - 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] Host-based service check period
On Oct 15, 2008, at 12:21 PM, Francis Dube wrote: > Yeah but if I specify the same check_period name for the service, I > have to define a service for every host (ex : a check_service_host1, > check_service_host2, and so on..) because the services running on > each hosts are running at different hours. Correct. The possibility does exist that you've chosen a config management scheme that doesn't meet your needs. Template shortcuts are nice but you can lose a lot of flexibility. > I'll take a look at notification_period inheritance, it may be a > good work around too. I agree, if you don't mind that the checks still happen. -- 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] service error?
jeremiah a écrit : > Any thoughts on these errors? I'm stumped. > > Checking services... > > Error: Service check command 'check_ssh' specified in service 'SSH' for > host 'server1' not defined anywhere! > Error: Service check command 'check_ssh' specified in service 'SSH' for > host 'server2' not defined anywhere! > > Services page looks like this.. > > define service{ > use generic-service > hostgroup_name ssh_servers > service_description SSH > is_volatile 0 > check_period24x7 > max_check_attempts 3 > normal_check_interval 3 > retry_check_interval1 > contact_groups admins > notification_interval 30 > notification_period 24x7 > notification_optionsw,u,c,r > check_command check_ssh > } > > Thanks! > > > > Disclaimer: The information contained in this transmission, including any > attachments, may contain confidential information of Panasonic Avionics > Corporation. This transmission is intended only for the use of the > addressee(s) listed above. Unauthorized review, dissemination or other use > of the information contained in this transmission is strictly prohibited. > If you have received this transmission in error or have reason to believe > you are not authorized to receive it, please notify the sender by return > email and promptly delete the transmission. > > > > - > 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 > You need to define this command in your command.cfg file. A check_ssh command usually looks like this : # 'check_ssh' command definition define command{ command_namecheck_ssh command_line$USER1$/check_ssh -H $HOSTADDRESS$ } Francis Dube R&D - Optik Securite www.optiksecurite.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
Re: [Nagios-users] max_check_attempts error
On Oct 15, 2008, at 11:48 AM, jeremiah wrote: > Great. thanks. that helps. > > Any idea on this one? > > Error: Service check command 'check_ssh' specified in service 'SSH' > for > host 'pse06' not defined anywhere! Please always respond on list so that others, now and in the future, benefit from your experience. This can be answered by searching for 'not defined anywhere' in the archives but you have a service{} definition that references a command named 'check_ssh' but you don't have a command{} definition for it. Nagios has no idea what it is. -- 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
[Nagios-users] service error?
Any thoughts on these errors? I'm stumped. Checking services... Error: Service check command 'check_ssh' specified in service 'SSH' for host 'server1' not defined anywhere! Error: Service check command 'check_ssh' specified in service 'SSH' for host 'server2' not defined anywhere! Services page looks like this.. define service{ use generic-service hostgroup_name ssh_servers service_description SSH is_volatile 0 check_period24x7 max_check_attempts 3 normal_check_interval 3 retry_check_interval1 contact_groups admins notification_interval 30 notification_period 24x7 notification_optionsw,u,c,r check_command check_ssh } Thanks! Disclaimer: The information contained in this transmission, including any attachments, may contain confidential information of Panasonic Avionics Corporation. This transmission is intended only for the use of the addressee(s) listed above. Unauthorized review, dissemination or other use of the information contained in this transmission is strictly prohibited. If you have received this transmission in error or have reason to believe you are not authorized to receive it, please notify the sender by return email and promptly delete the transmission. - 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] Host-based service check period
On Oct 15, 2008, at 10:20 AM, Francis Dube wrote: > check period. I would like to create a timeperiod for each host and > that > all the check for this host (service and host-alive) stop/start > according to that timeperiod. Anybody knows a way to do this ? Host and services have historically been separate entities for the most part with no inheritance between them at all. With nagios-3, there is some inheritance happening now between a service and it's host but only for three variables (contact_groups, notification_interval and notification_period: http://nagios.sourceforge.net/docs/3_0/objectinheritance.html#implied_inheritance) . check_period isn't an inheritable property and the most direct way to a solution is to simply specify the same check_period name for the services that you are using for the host. -- 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] No parallel checks with scripts under?
On Wed, Oct 15, 2008 at 9:24 AM, Andreas Ericsson <[EMAIL PROTECTED]> wrote: > If average check latency is 0.04 seconds, you may have configured your > checks to run with a greater interval than the default 5 minutes. I've > seen this happen before. After having it run overnight, average latency is .1xx seconds. For my base service template (all checks inherit from this and they do not override these attributes) I have obsess_over_service 0 normal_check_interval 5 retry_check_interval 5 max_check_attempts 3 > Are you using slow-running OCSP/OCHP commands? Are you using them at all? That is turned off, will be running in distributed mode down the road but not now :). > Are you using NEB-modules? Yes, I am using modpnpsender and a service performance data handler, but even with those commented out in the config I see the same results. This is a RHEL52 box running nagios 3.0.3, because of where it sits on the network I have had to manually add RPMs to the box to configure it .. I initially had glib2-devel and my perception was that performance was slow with that library being used so i took the devel package off of the host as most Linux hosts I have been on I have not had Nagios complied with glib2. As I look now at performance data again on Nagios with process_perfdata set to 0 and the PNP NEB module commented out (restarted Nagios about 10 minutes before starting this email) I am still only seeing 86% within 5 minutes, avg latency .22, for service checks and via top I am only see max 2 Nagios instances. With "top -i" I just see Nagios appear on and off occasionally. Maybe to test to see if there is something wrong with my compile I should turn down the check interval to 1 minute for checks to see if Nagios does what I would expect, constantly running checks to try and keep up? if it doesn't behave that way, would that be a relatively clear indication I have a compile issue? My configure options just in case something pops out that looks glaringly wrong, i don't expect anyone to go through them line by line :p: $ ./configure --prefix=/data/nagios --exec-prefix=/data/nagios --bindir=/data/nagios/bin --sbindir=/data/nagios/sbin --datadir=/data/nagios/share --libexecdir=/data/nagios/libexec --enable-event-broker --enable-embedded-perl --with-nagios-user=nagios --with-nagios-group=nagios --with-command-user=nagios --with-command-group=apache --with-mail=/bin/mail --with-httpd-conf=/etc/httpd/conf.d --with-checkresult-dir=/data/nagios/var/checkresults --with-temp-dir=/data/nagios/tmp --with-init-dir=/etc/init.d --with-lockfile=/data/nagios/var/nagios.lck --with-gd-lib=/usr/lib64 --with-gd-inc=/usr/include --with-cgiurl=/nagios/cgi-bin --with-htmurl=/nagios --with-perlcache uname -m = x86_64 uname -r = 2.6.18-53.el5 uname -s = Linux uname -v = #1 SMP Wed Oct 10 16:34:19 EDT 2007 Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux C=gcc CFLAGS=-g -O2 -I/usr/include -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE -DHAVE_CONFIG_H LDFLAGS= -L/usr/lib64 Thanks again for your help, I seem to be in a rare situation here as searches for Redhat and Nagios and performance issues turn up very few hits :p, which lets me know I am definitely at fault here. - Max - 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] Host-based service check period
Hi everyone, I'm using Nagios to monitor many hosts with services running at different time. Each host is connected to a Plasma TV and display publicity on it, but the all are installed in different public area with different working hours. Ex : Host #1 is in a restaurant, so the services are running from 6:00 to 21:00. Host #2 is in a bar, so the services are running from 12:00 to 3:00. Host #3 is in a mall, so the services are running from 9:00 to 17:00 on week days. To save power, we turn off the display during the non-working hours, but we need the Nagios check to stop at the same time. The check_period instruction in the host definition only affect the check-host-alive command and not the services check. I've read all i've found about the timeperiod and such, but i cant find a way to do host-based service check period. I would like to create a timeperiod for each host and that all the check for this host (service and host-alive) stop/start according to that timeperiod. Anybody knows a way to do this ? Thanks for your time ! Francis Dube R&D - Optik Securite www.optiksecurite.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
Re: [Nagios-users] Monitor nagios running on a different server
rmp dmd wrote: > Hi, > > We have a nagios monitoring system for Production systems installed on > prodservmon1. We want to include monitoring of this in our nagios > monitoring for our corporate systems. Simply put, we want to monitor > nagios service running on prodservmon1. > > I've been googling but I haven't find anything. Kindly advise on how > to do this. Use check_nagios (one of the default checks in nagios-plugins - http://nagiosplugins.org/man/check_nagios) via NRPE. -- Sean McAfee System Engineer Collaborative Fusion, Inc. [EMAIL PROTECTED] 412-422-3463 x 4025 5849 Forbes Avenue Pittsburgh, PA 15217 IMPORTANT: This message contains confidential information and is intended only for the individual named. If the reader of this message is not an intended recipient (or the individual responsible for the delivery of this message to an intended recipient), please be advised that any re-use, dissemination, distribution or copying of this message is prohibited. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. IMPORTANT: This message contains confidential information and is intended only for the individual named. If the reader of this message is not an intended recipient (or the individual responsible for the delivery of this message to an intended recipient), please be advised that any re-use, dissemination, distribution or copying of this message is prohibited. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. - 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] Monitor nagios running on a different server
Hi, did you google for check_nagios? "This plugin checks the status of the Nagios process on the local machine The plugin will check to make sure the Nagios status log is no older than the number of minutes specified by the expires option. It also checks the process table for a process matching the command argument." Gerhard _ Von: rmp dmd [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 15. Oktober 2008 17:28 An: nagios-users@lists.sourceforge.net Betreff: [Nagios-users] Monitor nagios running on a different server Hi, We have a nagios monitoring system for Production systems installed on prodservmon1. We want to include monitoring of this in our nagios monitoring for our corporate systems. Simply put, we want to monitor nagios service running on prodservmon1. I've been googling but I haven't find anything. Kindly advise on how to do this. Thanks! Roehl - 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] Monitor nagios running on a different server
rmp dmd a écrit : > Hi, > > We have a nagios monitoring system for Production systems installed on > prodservmon1. We want to include monitoring of this in our nagios > monitoring for our corporate systems. Simply put, we want to monitor > nagios service running on prodservmon1. > > I've been googling but I haven't find anything. Kindly advise on how > to do this. > > > > Thanks! > Roehl > > > - > 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 If I correctly understood what you want to do, there's a check_nagios. /usr/local/libexec/nagios/check_nagios ? Francis Dube R&D - Optik Securite www.optiksecurite.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
[Nagios-users] Serialize checks for certains hosts
Hi There is a way to serialize services check for certains hosts ? If a click on Schedule a check of all services on this host nagios schedule all services checks and send to the host in parellel. The remote host is running nrpe and for every check, nrpe fork a new process. In the same time could be 5 o 6 nrpe processes and the memory its full. The remote hosts is a router with very low mem. Reading the documentation there is two options max_concurrent_checks service_interleave_factor but both are global to nagios.cfg. I tried put max_concurrent_checks in host definition but no luck. Do you know something about ? 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] Monitor nagios running on a different server
what you need to do it treat the prodservmon1 just like any other server and monitor it with NRPE or any other utility you use for linux servers. check if it's up (PING) , http ( Web Access ), do a check_proc to verify that the nagios server is running and so forth. On Wednesday 15 October 2008 16:28:09 rmp dmd wrote: > Hi, > > We have a nagios monitoring system for Production systems installed on > prodservmon1. We want to include monitoring of this in our nagios > monitoring for our corporate systems. Simply put, we want to monitor > nagios service running on prodservmon1. > > I've been googling but I haven't find anything. Kindly advise on how to do > this. > > > > Thanks! > Roehl -- Assaf Flatto SSP Ops Team Linux System Administrator 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] Monitor nagios running on a different server
Hi, We have a nagios monitoring system for Production systems installed on prodservmon1. We want to include monitoring of this in our nagios monitoring for our corporate systems. Simply put, we want to monitor nagios service running on prodservmon1. I've been googling but I haven't find anything. Kindly advise on how to do this. Thanks! Roehl - 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] Event Handlers
Hi Francis, Thanks for your answer but i solved the problem. My Mistakes: * I must use full path in my bash script. * Event Handler is triggering the event only for the first state change. Best regards Çrş, 2008-10-15 tarihinde 10:51 -0400 saatinde, Francis Dube yazdı: > Gürkan Aslan a écrit : > > Hi, > > > > I'm trying to define an event handler for nagios. Actually it will work > > same as event handler example > > (http://nagios.sourceforge.net/docs/3_0/eventhandlers.html#example) but > > it doesn't work... i'm trying to create a file in /tmp folder to test, > > but nothing in return. event_handler_enabled = 1 in service definition > > and nagios.cfg. > > > > with nagios user, i can create a file under /tmp folder > > (touch /tmp/foo). Actually i'm trying to restart a service. I defined a > > sudo command for nagios like this (in /etc/sudoers file) > > > > nagios LOCAL=NOPASSWD:/etc/init.d/myservice restart > > > > sudo /etc/init.d/myservice restart command is properly running as nagios > > user (I'm switching user by: su - nagios). > > > > But i cannot run both of them via an event handler. As i feel that > > nagios couldn't trigger the event file... > > > > Any suggestion? > > > > Best regards > > > Is your event handler script correctly assigned to your service ? > (event_handler your-event-handler) > > Can you give me your command definition for you event handler, something > like : > > define command{ > command_nameyour-event-handler > command_line > /usr/local/nagios/libexec/eventhandlers/your-event-handler $SERVICESTATE$ > $SERVICESTATETYPE$ $SERVICEATTEMPT$ $ANY_OTHER_VARIABLE_YOU_MAY_NEED$ > } > > > Francis Dube > R&D - Optik Securite > www.optiksecurite.com -- Gürkan Aslan Senior Developer Komturk Iletisim Ltd. Sti Phone: +90 212 275 88 99 ext 125 - 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] Event Handlers
Gürkan Aslan a écrit : > Hi, > > I'm trying to define an event handler for nagios. Actually it will work > same as event handler example > (http://nagios.sourceforge.net/docs/3_0/eventhandlers.html#example) but > it doesn't work... i'm trying to create a file in /tmp folder to test, > but nothing in return. event_handler_enabled = 1 in service definition > and nagios.cfg. > > with nagios user, i can create a file under /tmp folder > (touch /tmp/foo). Actually i'm trying to restart a service. I defined a > sudo command for nagios like this (in /etc/sudoers file) > > nagios LOCAL=NOPASSWD:/etc/init.d/myservice restart > > sudo /etc/init.d/myservice restart command is properly running as nagios > user (I'm switching user by: su - nagios). > > But i cannot run both of them via an event handler. As i feel that > nagios couldn't trigger the event file... > > Any suggestion? > > Best regards > Is your event handler script correctly assigned to your service ? (event_handler your-event-handler) Can you give me your command definition for you event handler, something like : define command{ command_nameyour-event-handler command_line /usr/local/nagios/libexec/eventhandlers/your-event-handler $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$ $ANY_OTHER_VARIABLE_YOU_MAY_NEED$ } Francis Dube R&D - Optik Securite www.optiksecurite.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
Re: [Nagios-users] service latency troubles
Antoine Musso wrote: > Andreas Ericsson a écrit : > > Turn off OCHP and OCSP and then reload Nagios. If that doesn't help, >> unload NDOUtils and then restart Nagios. If that helps, re-enable the >> OCSP/OCHP commands again. If it's working then, it was NDOUtils fault. >> If not, it's the combined load of NDOUtils and the OC?P commands. >> >> OC?P commands add a rather extraordinary amount of load to the system >> irrespective of how simple they are. Usually, you'd be better off >> replacing them with an extremely simple NEB-module. > > Hello Anderas, > > Thanks for answering :) The OCHP/OCSP stuff did not help but I found out > two causes for our high latencies : > > > The first one is a long timeout on a synchronous check. When a service > is non-OK, the main nagios thread trigger a synchronous host check : > > [1223978320.237542] [016.1] [pid=10613] Service is in a non-OK state! > [1223978320.237547] [016.1] [pid=10613] Host is currently UP, so we'll > recheck its state to make sure... > [1223978320.237694] [256.1] [pid=10613] Running command check_ping... > [1223978330.251788] [256.1] [pid=10613] Execution time=10.009 sec > > While this plugin is executing, nagios is just idling and the latency > raise up really fast. So I modified our check_host_alive command to > timeout after 3 seconds, still have to found optimal parameters. > > > > The second issue is ndo. We have ndo2db listening on a database server > on the same switch. ndomod send everything (data_processing_options > parameter set to -1) over a tcp connection. > > I analyzed the callback debugging messages (debug 64, verbosity 2) over > a period of 938 seconds : > > AGGREGATED_STATUS_DATA (#25) 124 calls, avg: 0.00s (total 0.00s) > LOG_DATA (# 9) 366 calls, avg: 0.00s (total 0.56s) >SERVICE_STATUS_DATA (#20) 8321 calls, avg: 0.02s (total 149.48s) >HOST_CHECK_DATA (#14) 4933 calls, avg: 0.01s (total 50.23s) > TIMED_EVENT_DATA (# 8) 12282 calls, avg: 0.00s (total 26.26s) >PROGRAM_STATUS_DATA (#18) 177 calls, avg: 0.00s (total 0.76s) > STATE_CHANGE_DATA (#30) 195 calls, avg: 0.00s (total 0.45s) > SERVICE_CHECK_DATA (#13) 12189 calls, avg: 0.01s (total 82.74s) >SYSTEM_COMMAND_DATA (#10) 8584 calls, avg: 0.01s (total 102.84s) > HOST_STATUS_DATA (#19) 2544 calls, avg: 0.03s (total 64.67s) > > 49715 calls, 477 seconds 50,85% of time spent on sending ndo messages. > > The impact on latency is really bad, one of my colleague filtered out > some of those callbacks (data_processing_options set to 276673) that > seems to help :) > > > This raise two new questions: > >1/ is there any recommended setting for checking the liveness of a > host ? Since this check is synchronous, we want Nagios to achieve this > as fast as possible. > Upgrade to Nagios 3. It sports parallell hostchecks. >2/ is ndomod waiting for ndo2db to insert the data in the database ? That I don't know, but Nagios waits for the NEB to finish its call before proceeding, so if ndomod runs some uninterruptable IO, you might be in for a long wait. Nagios has to wait for the NEB to finish though, so the only solution is to make sure the NEB returns control to Nagios asap. > If not, I am going to check why it takes so long to send a packet to the > remote ndo2db instance. > That's a good idea. Please let us know what you find. -- Andreas Ericsson [EMAIL PROTECTED] OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 - 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] No parallel checks with scripts under?
Max wrote: > On Wed, Oct 15, 2008 at 3:31 AM, Andreas Ericsson <[EMAIL PROTECTED]> wrote: >> No. Nagios forks after (optionally) caching the plugin in memory, >> bringing the embedded perl stuff with it. The child runs the cached >> plugin. The saving is entirely in avoiding to load /usr/bin/perl >> each and every time a plugin is run (at the slight expense of copying >> some more memory at every fork if epn is compiled in). > > Thank you, Andreas, I really appreciate your answer. I will go back to > the drawing board to try to figure out what I am doing wrong then that > is causing 135 checks to not complete in less than 5 minutes .. avg > check time is 4 sec, avg check latency is .04 secs, If average check latency is 0.04 seconds, you may have configured your checks to run with a greater interval than the default 5 minutes. I've seen this happen before. > so not sure what I > am doing wrong. the machine is powerful enough to have dozens of > checks run at the same time, but so far I only see Nagios forking one > child at a time. I have interleave set to 's' and intercheck delay > set to .5 and large_installation_tweaks at 1 and still only one fork > at a time, which is what lead me to falsely think that ePN checks were > treated differently. > > So now that i know otherwise, back to the drawing board to figure out > what I messed up. > Are you using slow-running OCSP/OCHP commands? Are you using them at all? Are you using NEB-modules? -- Andreas Ericsson [EMAIL PROTECTED] OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 - 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] No parallel checks with scripts under?
On Wed, Oct 15, 2008 at 3:31 AM, Andreas Ericsson <[EMAIL PROTECTED]> wrote: > No. Nagios forks after (optionally) caching the plugin in memory, > bringing the embedded perl stuff with it. The child runs the cached > plugin. The saving is entirely in avoiding to load /usr/bin/perl > each and every time a plugin is run (at the slight expense of copying > some more memory at every fork if epn is compiled in). Thank you, Andreas, I really appreciate your answer. I will go back to the drawing board to try to figure out what I am doing wrong then that is causing 135 checks to not complete in less than 5 minutes .. avg check time is 4 sec, avg check latency is .04 secs, so not sure what I am doing wrong. the machine is powerful enough to have dozens of checks run at the same time, but so far I only see Nagios forking one child at a time. I have interleave set to 's' and intercheck delay set to .5 and large_installation_tweaks at 1 and still only one fork at a time, which is what lead me to falsely think that ePN checks were treated differently. So now that i know otherwise, back to the drawing board to figure out what I messed up. > Multiplexing would be the way to go. It's the most complex, but the > most portable and the least resource-hungry. Excellent. Thank you. - Max - 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] NdoUtils 1.4b7 beta : file_rotation_command not working with Nagios 3.x
Hi again Like explain in this post http://www.mail-archive.com/nagios-users@lists.sourceforge.net/msg15394.html running ndomod with output_type tcpsocket or unixsocket slow down nagios because until the data from nagios is stored in mysql, nagios no continue working. (sync) We try to work with output_type=file and later load the data to mysql with file2sock. Is this mode nagios run fine. file_rotation_command in ndomod.cfg define the command to be executed by nagios every file_rotation_interval secs. This not work in ndoutils 1.4b7 beta. We found the bug a now works fine. Where I can submit the bug and patch ? Thanks you - 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] Event Handlers
Hi, I'm trying to define an event handler for nagios. Actually it will work same as event handler example (http://nagios.sourceforge.net/docs/3_0/eventhandlers.html#example) but it doesn't work... i'm trying to create a file in /tmp folder to test, but nothing in return. event_handler_enabled = 1 in service definition and nagios.cfg. with nagios user, i can create a file under /tmp folder (touch /tmp/foo). Actually i'm trying to restart a service. I defined a sudo command for nagios like this (in /etc/sudoers file) nagios LOCAL=NOPASSWD:/etc/init.d/myservice restart sudo /etc/init.d/myservice restart command is properly running as nagios user (I'm switching user by: su - nagios). But i cannot run both of them via an event handler. As i feel that nagios couldn't trigger the event file... Any suggestion? Best regards -- Gürkan Aslan Senior Developer Komturk Iletisim Ltd. Sti Phone: +90 212 275 88 99 ext 125 - 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] No parallel checks with scripts under?
Max wrote: > Hi, > > I have read through the p1.pl code again tonight and looked at > perlxsi.c and read all of the docs on ePN I can find that come with > Nagios, and I see nothing about ePN doing multiplexing or anything of > that sort that would allow it to execute ePN checks in parallel the > way forked checks can be run. > > Is this indeed the case? :) > No. Nagios forks after (optionally) caching the plugin in memory, bringing the embedded perl stuff with it. The child runs the cached plugin. The saving is entirely in avoiding to load /usr/bin/perl each and every time a plugin is run (at the slight expense of copying some more memory at every fork if epn is compiled in). > > Multiplexing is another thought, that too introduces complexitities, > that I understand as well. > Multiplexing would be the way to go. It's the most complex, but the most portable and the least resource-hungry. -- Andreas Ericsson [EMAIL PROTECTED] OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 - 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