Re: [Nagios-users] Can Nagios support foreign languages?
> I am setting up Nagios for a branch office in Thailand. In the > "Service Detail" page of Nagios, we would like to put some Thai > characters in the "Host" and "Service" columns, but we failed to do > that. So, I would like to know if Nagios can support foreign > languages. Where can I get more information about this? Can't help you specifically about Thai but a Japanese patch for the web interface exists and I've used it (http://sourceforge.jp/projects/nagios-jp/). Try googling for "nagios thai patch". Good luck! Ian -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ 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] Windows disk health monitoring with smartmontoolsl/NSClient++?
I'd like to get SMART disk health status for Windows machines. It looks like smartctl would work fine on Windows - has someone got it working with NSClient++? I've found some people asking about this in the list archives, but haven't found any concrete examples. All I'm looking for is a basic "OK" or "something bad is going to happen soon" alert from Nagios. Thanks -e -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword___ 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] downtime large number of hosts?
Shai, The example scripts are actual scripts that you can use..for example: http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?command _id=36 #!/bin/sh # This is a sample shell script showing how you can submit the DISABLE_HOST_SVC_NOTIFICATIONS command # to Nagios. Adjust variables to fit your environment as necessary. now=`date +%s` commandfile='/usr/local/nagios/var/rw/nagios.cmd' /bin/printf "[%lu] DISABLE_HOST_SVC_NOTIFICATIONS;host1\n" $now > $commandfile That is the 'example' script. Just create a file and name it whatever you want..for me I use the hostname in the file name. DISABLE_HOST_SVC_NOTIFICATIONS_HOSTNAME, then chmod the file for execution: chmod u+x DISABLE_HOST_SVC_NOTIFICATIONS_HOSTNAME Edit the file and replace host1 with the hostname that you want to affect, the hostname has to be spelled the same way that it is in your .cfg file. Now you can either run the file manually when you want a downtime, or set it to run in a cronjob. For you since you want a large list of hosts that you want to disable notifications, then try the disable hostgroup script. ~Jayson From: Shai [mailto:sha...@gmail.com] Sent: Tuesday, January 13, 2009 8:53 AM To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] downtime large number of hosts? Hi, I've seen the help on the nagios external command, but I'm not exactly sure how to make the script. Can someone show me an example? Shai On Fri, Jan 9, 2009 at 5:12 PM, Jayson Broughton wrote: We have some linux servers here that peg-out on CPU/Mem when they are doing a full backup, so I have used the wonderful 'Nagios External Command List' website to custom tailor my alert notifications for hosts/hostgroups every day during a certain time. Specifically the DISABLE_HOST_SVC_NOTIFICATIONS and DISABLE_HOST_SVC_CHECKS. Then when it's time to re-monitor, a crontab entry runs: ENABLE_HOST_SVC_NOTIFICATIONS & ENABLE_HOST_SVC_CHECKS. Check out those 4 options on: http://www.nagios.org/developerinfo/externalcommands/commandlist.php The examples give you an excellent base script to work off of. ~Jayson -Original Message- From: Marc Powell [mailto:m...@ena.com] Sent: Thursday, January 08, 2009 8:05 AM To: Nagios Users Subject: Re: [Nagios-users] downtime large number of hosts? On Jan 8, 2009, at 8:51 AM, Mahmoud Hanafi wrote: > Is there a easy way to schedule down time for large number of hosts/ > services at the same time? The downtime web interface doesn't accept > wildcard characters. If they are all in the same hostgroup you can click on the hostgroup name (in ()'s) and schedule downtime for all of them at once, otherwise, no not that I am aware of outside of some simple scripting to send the appropriate external command for each host through the external command file. -- Marc -- Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB ___ 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 The information in this electronic mail message and any attached files is confidential and may be legally privileged. If you are not the intended recipient, delete this message and contact the sender immediately. Access to this message by anyone other than its intended recipient is unauthorized. You must not use or disseminate this information as it is proprietary property of the True companies. Communications on or through the True companies' computer systems may be monitored or recorded to secure effective system operation and for other lawful purposes. Thank you. -- Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB ___ 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 The information in this electronic mail message and any attached files is confidential and may be legally privileged. If you are not the intended recipient, delete this message and contact the sender immediately. Access to this message by anyone other than its intended recipient is unauthorized. You must not use or disseminate this information as it is proprietary property of the True companies. Communica
Re: [Nagios-users] Not sending alerts
On Jan 13, 2009, at 5:15 PM, jmose...@corp.xanadoo.com wrote: > That certainly seems to be a valid configuration. Have you included > all > your configs in the main nagios.cfg file so that they are all being > read? > Barring that, do you have any service/host depencies setup? What > about > escalations? > > If you have any dependency or escalation configs, I would disable them > first before doing any more troubleshooting. ... also verify that you don't have notifications disabled program- wide in nagios.cfg, via the web interface (Process Info) or specifically for this host or service via the web interface (click on the service and/or host name). -- Marc -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ 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] Not sending alerts
Hi, Matt Nelson wrote: > > We seem to be having an issue with our alert notifications. From what > I've determined the command 'notify-by-email' isn't even being called > from commands.cfg. Is "/usr/bin/mail" installed? -- Mathieu -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ 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] Not sending alerts
That certainly seems to be a valid configuration. Have you included all your configs in the main nagios.cfg file so that they are all being read? Barring that, do you have any service/host depencies setup? What about escalations? If you have any dependency or escalation configs, I would disable them first before doing any more troubleshooting. James Moseley "Matt Nelson" To nagios-users@lists.sourceforge.net 01/13/2009 04:11 cc PM Subject [Nagios-users] Not sending alerts Hello, We seem to be having an issue with our alert notifications. From what I've determined the command 'notify-by-email' isn't even being called from commands.cfg. I verified this by: 1)replacing the current command with a simple echo "test" > /tmp/test. 2)leaving the mail command in and checking my postfix log - which shows no attempts being made at all. I also don't see anything about sending alerts in my nagios.log/syslog Jan 13 13:13:26 nocnag02 nagios: SERVICE ALERT: mt-ubuntu;SMTP Availability;CRITICAL;HARD;2;Connection refused I have the following configuration for this service: # templates_services.cfg define service{ namecritical-service active_checks_enabled 1 passive_checks_enabled 1 parallelize_check 1 obsess_over_service 0 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 is_volatile 0 check_period24x7 max_check_attempts 2 normal_check_interval 2 retry_check_interval1 notification_optionsw,u,c,r notification_interval 2 notification_period 24x7 register0 } # services_social.cfg define service { use critical-service host_name mt-ubuntu service_description SMTP Availability contact_groups individuals_group check_command check_smtp flap_detection_enabled 0 } # t_host.cfg define host { use no_icmp host_name mt-ubuntu alias mt-ubuntu address 10.2.23.23 contact_groups individuals_group } # individual_contacts.cfg define contact{ contact_name mt alias MT service_notification_period 24x7 host_notification_period24x7 service_notification_optionsw,u,c host_notification_options d,u,r service_notification_commands notify-by-email host_notification_commands host-notify-by-email email } define contactgroup{ contactgroup_name individuals_group alias Individuals members mt } # commands.cfg # 'notify-by-email' command definition define command{ command_name notify-by-email command_line /usr/bin/printf "%b" "* NOCNAG *\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ } Any assistance would be appreciated. Matt -- This SF.net email is spons
[Nagios-users] Not sending alerts
Hello, We seem to be having an issue with our alert notifications. From what I've determined the command 'notify-by-email' isn't even being called from commands.cfg. I verified this by: 1)replacing the current command with a simple echo "test" > /tmp/test. 2)leaving the mail command in and checking my postfix log - which shows no attempts being made at all. I also don't see anything about sending alerts in my nagios.log/syslog Jan 13 13:13:26 nocnag02 nagios: SERVICE ALERT: mt-ubuntu;SMTP Availability;CRITICAL;HARD;2;Connection refused I have the following configuration for this service: # templates_services.cfg define service{ namecritical-service active_checks_enabled 1 passive_checks_enabled 1 parallelize_check 1 obsess_over_service 0 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 is_volatile 0 check_period24x7 max_check_attempts 2 normal_check_interval 2 retry_check_interval1 notification_optionsw,u,c,r notification_interval 2 notification_period 24x7 register0 } # services_social.cfg define service { use critical-service host_name mt-ubuntu service_description SMTP Availability contact_groups individuals_group check_command check_smtp flap_detection_enabled 0 } # t_host.cfg define host { use no_icmp host_name mt-ubuntu alias mt-ubuntu address 10.2.23.23 contact_groups individuals_group } # individual_contacts.cfg define contact{ contact_name mt alias MT service_notification_period 24x7 host_notification_period24x7 service_notification_optionsw,u,c host_notification_options d,u,r service_notification_commands notify-by-email host_notification_commands host-notify-by-email email } define contactgroup{ contactgroup_name individuals_group alias Individuals members mt } # commands.cfg # 'notify-by-email' command definition define command{ command_name notify-by-email command_line /usr/bin/printf "%b" "* NOCNAG *\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ } Any assistance would be appreciated. Matt -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword___ 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] Here Script for Formatting Nagios Status Page for Mobile Devices
I've created a script to solve the following problem we were having getting System Status on our Mobile Devices. Feel free to use it if it will help you as well. Problem: We needed to be able to quickly view network status on our mobile devices while leaving the Nagios server on our Internal Network. Solution: 1. Create mobile Nagios user with Read only access on Nagios 2. Copy script to a server running apache on your DMZ 3. Setup Crontab to run script at an interval of your choosing. Anthony Pisano ITS - Systems Administrator Fuller Theological Seminary -- nagiosmobile.sh #!/bin/bash # Pull the desired view (Currently set to any "All Problems") and save it to the /tmp directory. Username and Password is set in command wget --quiet 'https://user:passw...@nagios.fuller.edu/nagios/cgi-bin/status.cgi?host=all&; servicestatustypes=28&hoststatustypes=15' --no-check-certificate -O /tmp/status # Opens the above file and uses sed to remove all links and images to create a very basic page (Note: This is one continuous line) cat /tmp/status | sed -e '//d; /<\/head>/d; /Produced by Nagios/d; /Updated every/d; /http:\/\/www.nagios.org/d; //,/<\/TABLE>/d' | sed -e "s/Host .*Status Information<\/TH>/BLAHBLAHBLAH/g" | sed -e "s/BLAHBLAHBLAH/Host\ \;<\/TH>Service\ \;<\/TH>Status\ \;<\/TH>Last Check\ \;<\/TH>Duration\ \;<\/TH>Attempt\ \;<\/TH>Status Information<\/TH>/g" | sed -e "s// /g; s/<\/A>/ /g" > /tmp/status.html # Copies resulting file to your webshare cp /tmp/status.html /share/nagiosmobile.html -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword___ 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] downtime large number of hosts?
Hi, I've seen the help on the nagios external command, but I'm not exactly sure how to make the script. Can someone show me an example? Shai On Fri, Jan 9, 2009 at 5:12 PM, Jayson Broughton wrote: > We have some linux servers here that peg-out on CPU/Mem when they are doing > a full backup, so I have used the wonderful 'Nagios External Command List' > website to custom tailor my alert notifications for hosts/hostgroups every > day during a certain time. Specifically the DISABLE_HOST_SVC_NOTIFICATIONS > and DISABLE_HOST_SVC_CHECKS. Then when it's time to re-monitor, a crontab > entry runs: ENABLE_HOST_SVC_NOTIFICATIONS & ENABLE_HOST_SVC_CHECKS. > > Check out those 4 options on: > http://www.nagios.org/developerinfo/externalcommands/commandlist.php > > The examples give you an excellent base script to work off of. > > ~Jayson > > > -Original Message- > From: Marc Powell [mailto:m...@ena.com] > Sent: Thursday, January 08, 2009 8:05 AM > To: Nagios Users > Subject: Re: [Nagios-users] downtime large number of hosts? > > > On Jan 8, 2009, at 8:51 AM, Mahmoud Hanafi wrote: > > > Is there a easy way to schedule down time for large number of hosts/ > > services at the same time? The downtime web interface doesn't accept > > wildcard characters. > > If they are all in the same hostgroup you can click on the hostgroup > name (in ()'s) and schedule downtime for all of them at once, > otherwise, no not that I am aware of outside of some simple scripting > to send the appropriate external command for each host through the > external command file. > > -- > Marc > > > > > -- > Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > ___ > 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 > The information in this electronic mail message and any attached files is > confidential and may be legally privileged. If you are not the intended > recipient, delete this message and contact the sender immediately. Access > to this message by anyone other than its intended recipient is unauthorized. > You must not use or disseminate this information as it is proprietary > property of the True companies. Communications on or through the True > companies' computer systems may be monitored or recorded to secure effective > system operation and for other lawful purposes. Thank you. > > > > -- > Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > ___ > 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: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword___ 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 Command line
look at this http://nagios.sourceforge.net/docs/3_0/extcommands.html Assaf On Monday 12 January 2009 16:35:12 Shadhin rahman wrote: > All, > is there any project to provide command line interface for Nagios. > I understand cnagios already exists but it is not enough. Cnagios does > not provide a way to perform checks on command line interface. Please > advise on this. Thanks -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1 2AE 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: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ 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] Can Nagios support foreign languages?
Dear All, I am setting up Nagios for a branch office in Thailand. In the "Service Detail" page of Nagios, we would like to put some Thai characters in the "Host" and "Service" columns, but we failed to do that. So, I would like to know if Nagios can support foreign languages. Where can I get more information about this? Thanks a lot, -- Chris -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ 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 3.0.5 email notifications fail {Spam?}
Ok, my mistake. I can clearly see that I put all options in notification template, including "n " from "none" so none of the notifications were sent. Stupid me! Thanks all, Alex On Tue, Jan 13, 2009 at 10:47 AM, alex alex wrote: > Hi again. > I have bad news(for me,at least). I remove the flap announcements and > notifications are not working. Here's the debug log for nagios: > > [1231835680.728809] [032.2] [pid=14526] ** Checking host notification > viability for contact 'user'... > [1231835680.728838] [032.2] [pid=14526] We shouldn't notify this contact > about DOWN states. > [1231835680.728858] [032.0] [pid=14526] No contacts were notified. Next > possible notification time: Thu Jan 1 02:00:00 1970 > [1231835680.728873] [032.0] [pid=14526] 0 contacts were notified. > > > So it seems that the contacts didn't inherited the template??? were found. > Again, my configs read: > > # contactgroups admins > define contactgroup { > contactgroup_name admins > alias admins > members nagios,user > } > #contact template > define contact { > namegeneric_contact > host_notification_period24din24_7din7 > service_notification_period 24din24_7din7 > host_notification_options d,u,r,n,f > service_notification_optionsu,c,w,r,n,f > host_notification_commands notify-host-by-email > service_notification_commands notify-service-by-email > register0 > } > define contact { > contact_nameuser > use generic_contact > alias utilizator_generic > email s...@localhost > } > > define host { > host_name host1 > alias host1 > address 192.168.1.1 > use generic_host_tpl > } > define host { > namegeneric_host_tpl > process_perf_data 1 > retain_status_information 1 > retain_nonstatus_information1 > active_checks_enabled 1 > passive_checks_enabled 1 > check_period24din24_7din7 > obsess_over_host0 > check_freshness 1 > freshness_threshold 0 > check_command is_icmp_alive > max_check_attempts 1 > event_handler_enabled 0 > notifications_enabled 1 > notification_interval 5 > notification_period 24din24_7din7 > notification_optionsd,u,r,f > stalking_optionsd,o,u > register0 > action_url/nagios/pnp/index.php?host=$HOSTNAME$ > > } > > > > > > > > > On Mon, Jan 12, 2009 at 3:49 PM, Marc Powell wrote: > >> >> On Jan 12, 2009, at 5:44 AM, alex alex wrote: >> > Notification: FLAPPINGSTOP >> > Host: host1 >> > State: UP >> > Or for a service >> >> > Notification Type: FLAPPINGSTOP >> > >> > Service: is_alive >> > Host: host1 >> > Is it the right behaviour (to put flapping instead up/down if the >> > flapping is enabled) ? >> >> Yes, if the host or service were in a flapping state, which these >> were. flapping is different than a normal up/down and that >> notification type is provided should you want or need to make that >> distinction. If you'd rather just receive up/down notifications, >> disable notifications for flapping. >> >> > Anyhow, some notifications are sent and that's the main good news. I >> > think from now only some small changes must be done in my configs to >> > tune the uinstallation. >> >> Good =) >> >> -- >> Marc >> >> >> >> -- >> Check out the new SourceForge.net Marketplace. >> It is the best place to buy or sell services for >> just about anything Open Source. >> http://p.sf.net/sfu/Xq1LFB >> ___ >> 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: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version,
Re: [Nagios-users] nagios 3.0.5 email notifications fail {Spam?}
alex alex schrieb: > Hi again. > I have bad news(for me,at least). I remove the flap announcements and > notifications are not working. Here's the debug log for nagios: > > [1231835680.728809] [032.2] [pid=14526] ** Checking host notification > viability for contact 'user'... > [1231835680.728838] [032.2] [pid=14526] We shouldn't notify this contact > about DOWN states. > [1231835680.728858] [032.0] [pid=14526] No contacts were notified. Next > possible notification time: Thu Jan 1 02:00:00 1970 > [1231835680.728873] [032.0] [pid=14526] 0 contacts were notified. > > > So it seems that the contacts didn't inherited the template??? were > found. Again, my configs read: > > # contactgroups admins > define contactgroup { > contactgroup_name admins > alias admins > members nagios,user > } > #contact template > define contact { > namegeneric_contact > host_notification_period24din24_7din7 > service_notification_period 24din24_7din7 > host_notification_options d,u,r,n,f > service_notification_optionsu,c,w,r,n,f > host_notification_commands notify-host-by-email > service_notification_commands notify-service-by-email > register0 > } Do you realy want to use "service_notification_options n"? http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#contact If you specify n (none) as an option, the contact will not receive any type of service notifications. Cheers Joerg -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ 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 3.0.5 email notifications fail {Spam?}
Hi again. I have bad news(for me,at least). I remove the flap announcements and notifications are not working. Here's the debug log for nagios: [1231835680.728809] [032.2] [pid=14526] ** Checking host notification viability for contact 'user'... [1231835680.728838] [032.2] [pid=14526] We shouldn't notify this contact about DOWN states. [1231835680.728858] [032.0] [pid=14526] No contacts were notified. Next possible notification time: Thu Jan 1 02:00:00 1970 [1231835680.728873] [032.0] [pid=14526] 0 contacts were notified. So it seems that the contacts didn't inherited the template??? were found. Again, my configs read: # contactgroups admins define contactgroup { contactgroup_name admins alias admins members nagios,user } #contact template define contact { namegeneric_contact host_notification_period24din24_7din7 service_notification_period 24din24_7din7 host_notification_options d,u,r,n,f service_notification_optionsu,c,w,r,n,f host_notification_commands notify-host-by-email service_notification_commands notify-service-by-email register0 } define contact { contact_nameuser use generic_contact alias utilizator_generic email s...@localhost } define host { host_name host1 alias host1 address 192.168.1.1 use generic_host_tpl } define host { namegeneric_host_tpl process_perf_data 1 retain_status_information 1 retain_nonstatus_information1 active_checks_enabled 1 passive_checks_enabled 1 check_period24din24_7din7 obsess_over_host0 check_freshness 1 freshness_threshold 0 check_command is_icmp_alive max_check_attempts 1 event_handler_enabled 0 notifications_enabled 1 notification_interval 5 notification_period 24din24_7din7 notification_optionsd,u,r,f stalking_optionsd,o,u register0 action_url/nagios/pnp/index.php?host=$HOSTNAME$ } On Mon, Jan 12, 2009 at 3:49 PM, Marc Powell wrote: > > On Jan 12, 2009, at 5:44 AM, alex alex wrote: > > Notification: FLAPPINGSTOP > > Host: host1 > > State: UP > > Or for a service > > > Notification Type: FLAPPINGSTOP > > > > Service: is_alive > > Host: host1 > > Is it the right behaviour (to put flapping instead up/down if the > > flapping is enabled) ? > > Yes, if the host or service were in a flapping state, which these > were. flapping is different than a normal up/down and that > notification type is provided should you want or need to make that > distinction. If you'd rather just receive up/down notifications, > disable notifications for flapping. > > > Anyhow, some notifications are sent and that's the main good news. I > > think from now only some small changes must be done in my configs to > > tune the uinstallation. > > Good =) > > -- > Marc > > > > -- > Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > ___ > 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: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword___ 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