Re: [Nagios-users] How configure Nagios to send periodic notifications?
Hi all, Assaf Flatto wrote: hello You want to take a look at the external commands : http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=135 I have upgraded from nagios2 to nagios3 and now when I execute the shell script that fires the external command it runs fine. The problem is that nagios doesn't fire a mail. I have done the following. I have created a shell script that it should be executed via a cron task and everytime it should send an email fired by the service. -- #!/bin/sh # This is a sample shell script showing how you can submit the SEND_CUSTOM_SVC_NOTIFICATION command # to Nagios. Adjust variables to fit your environment as necessary. now=`date +%s` commandfile='/var/lib/nagios3/rw/nagios.cmd' /usr/bin/printf [%lu] SEND_CUSTOM_SVC_NOTIFICATION;192.168.10.26;MAILPARSER_TEST;2;test;Testing if everything is OK\n $now $commandfile -- And I have defined the following service -- define service { service_description MAILPARSER_TEST check_command return-critical normal_check_interval 2 use generic-service notification_interval 0 } -- And never sends a mail as it normally does with all the other services I have. Any idea? Cheers!! Assaf On Friday 24 April 2009 15:48:39 Arnau wrote: Hi all, Since few weeks ago we use Nagios as monitoring system and everytime there is a problem it notifies sending an email. We have a system that parses those emails and using a text to speech system it makes a phone call. To be sure that the alarm system is running we have periodic calls launched by emails programmed as cron tasks. I'm worried that some of the Nagios notifications could be lost or even it wouldn't sent any notification, so I'd like to launch to substitute those cron emails by Nagios fake notifications or something similar. Do you know if there is a way to force Nagios to send a notification periodically? Thank you very much --- --- Crystal Reports #45; New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty#45;free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ 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 -- Register Now Save for Velocity, the Web Performance Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf___ 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 configure Nagios to send periodic notifications?
Hi all, Since few weeks ago we use Nagios as monitoring system and everytime there is a problem it notifies sending an email. We have a system that parses those emails and using a text to speech system it makes a phone call. To be sure that the alarm system is running we have periodic calls launched by emails programmed as cron tasks. I'm worried that some of the Nagios notifications could be lost or even it wouldn't sent any notification, so I'd like to launch to substitute those cron emails by Nagios fake notifications or something similar. Do you know if there is a way to force Nagios to send a notification periodically? Thank you very much -- Crystal Reports #45; New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty#45;free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ 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 configure Nagios to send periodic notifications?
Hi all, Thanks for all the replies Assaf Flatto wrote: hello You want to take a look at the external commands : http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=135 I have copiedpasted the example that appear on that link. When I execute it I get the following error in my nagios log Warning: Unrecognized external command - SEND_CUSTOM_SVC_NOTIFICATION;envirosensor;Water Level;3;Ethan;The NOC is currently flooding. Help! I'm using Nagios 2.6 over debian. Any idea? Thank you very much!! Assaf On Friday 24 April 2009 15:48:39 Arnau wrote: Hi all, Since few weeks ago we use Nagios as monitoring system and everytime there is a problem it notifies sending an email. We have a system that parses those emails and using a text to speech system it makes a phone call. To be sure that the alarm system is running we have periodic calls launched by emails programmed as cron tasks. I'm worried that some of the Nagios notifications could be lost or even it wouldn't sent any notification, so I'd like to launch to substitute those cron emails by Nagios fake notifications or something similar. Do you know if there is a way to force Nagios to send a notification periodically? Thank you very much Cheers!! -- Arnau -- Crystal Reports #45; New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty#45;free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ 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] Newbie question about nagios and snmp
Hi all, I have about 15 servers to monitor, some of them are windows and the rest run Debian. To do so, I have installed Nagios to send me alarms and cacti to show graphs and historical data. The things I'd like to monitor, for the time being are very basic CPU usage, disk space, ... To monitor the remote servers I've installed the snmp daemon. In cacti I have everything running, but there is a thing in nagios that I don't know how to do. I'd like to monitor the available space in the server partions and not in the disks. 1.- So I should create a service for each partition and define a hostgroup? or there is a way to say check all the partitions and shout if the available space is lower than 10%? 2.- Is there a way to ask the free disk of / instead of /dev/sda1? thanks all -- Arnau - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ 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] Newbie question about nagios and snmp
Hi Tom, Tom Brown wrote: 2.- Is there a way to ask the free disk of / instead of /dev/sda1? check_snmp_disk In my debian I can't find that check_snmp_disk, the only thing I have found in /etc/nagios-plugins/config/snmp.cfg is: # 'snmp_disk' command definition define command{ command_namesnmp_disk command_line/usr/lib/nagios/plugins/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o .1.3.6.1.4.1.2021.9.1.7.$ARG2$,.1.3.6.1.4.1.2021.9.1 .9.$ARG2$ -w $ARG3$:,:$ARG4$ -c $ARG5$:,:$ARG6$ -u 'kB free (','% used)' -l 'disk space' } am I missing anything? -- Arnau - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ 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