A bit off topic, but I keep looking for an answer to this question and coming up with nothing... so I thought I would go to the gurus. :-) Can anyone recommend a good package for pinging other devices and sending an email/alert when they go down? I'm aware of all kinds of more complex things with GUIs and a zillion other bells and whistles we aren't looking for, but we just want a simple tool (could be daemon or something run from cron) that runs every 1 - 5 minutes and alerts us when stuff disappears. Would need some basic logic like only sending one email/alert when something goes down (vs sending an email every 1-5 minutes until it comes back up). :-) We need to avoid a requirement for an X-windows GUI, but a web-GUI would probably be fine (a GUI-less command-line thing would probably be best). TIA, KC -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20050922/15689f8b/attachment.html>
eli at streetlampsoftware.com
2005-Sep-22 17:58 UTC
[CentOS] Recommendation On Ping And Alert Tool
Nagios? Kennedy Clark wrote:> A bit off topic, but I keep looking for an answer to this question and > coming up with nothing... so I thought I would go to the gurus. :-) > Can anyone recommend a good package for pinging other devices and sending > an email/alert when they go down? I'm aware of all kinds of more complex > things with GUIs and a zillion other bells and whistles we aren't looking > for, but we just want a simple tool (could be daemon or something run from > cron) that runs every 1 - 5 minutes and alerts us when stuff disappears. > Would need some basic logic like only sending one email/alert when something > goes down (vs sending an email every 1-5 minutes until it comes back up). > :-) We need to avoid a requirement for an X-windows GUI, but a web-GUI would > probably be fine (a GUI-less command-line thing would probably be best). > TIA, > KC
I recommend monit (http://www.tildeslash.com/monit). It is very easy to set up and it works great. You can grab the RPM from Dag's repository. Marko On Thu, September 22, 2005 10:54 am, Kennedy Clark said:> A bit off topic, but I keep looking for an answer to this question and > coming up with nothing... so I thought I would go to the gurus. :-) > Can anyone recommend a good package for pinging other devices and sending > an email/alert when they go down? I'm aware of all kinds of more complex > things with GUIs and a zillion other bells and whistles we aren't looking > for, but we just want a simple tool (could be daemon or something run from > cron) that runs every 1 - 5 minutes and alerts us when stuff disappears. > Would need some basic logic like only sending one email/alert when > something > goes down (vs sending an email every 1-5 minutes until it comes back up). > :-) We need to avoid a requirement for an X-windows GUI, but a web-GUI > would > probably be fine (a GUI-less command-line thing would probably be best). > TIA, > KC > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >
On Thu, 2005-09-22 at 13:54 -0400, Kennedy Clark wrote:> A bit off topic, but I keep looking for an answer to this question and > coming up with nothing... so I thought I would go to the gurus. :-) > > Can anyone recommend a good package for pinging other devices and > sending an email/alert when they go down? I'm aware of all kinds of > more complex things with GUIs and a zillion other bells and whistles > we aren't looking for, but we just want a simple tool (could be daemon > or something run from cron) that runs every 1 - 5 minutes and alerts > us when stuff disappears. Would need some basic logic like only > sending one email/alert when something goes down (vs sending an email > every 1-5 minutes until it comes back up). :-) We need to avoid a > requirement for an X-windows GUI, but a web-GUI would probably be fine > (a GUI-less command-line thing would probably be best).---- the all purpose server tool - webmin www.webmin.com Craig -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
On Thu, 2005-09-22 at 12:54, Kennedy Clark wrote:> A bit off topic, but I keep looking for an answer to this question and > coming up with nothing... so I thought I would go to the gurus. :-) > > Can anyone recommend a good package for pinging other devices and > sending an email/alert when they go down? I'm aware of all kinds of > more complex things with GUIs and a zillion other bells and whistles > we aren't looking for, but we just want a simple tool (could be daemon > or something run from cron) that runs every 1 - 5 minutes and alerts > us when stuff disappears. Would need some basic logic like only > sending one email/alert when something goes down (vs sending an email > every 1-5 minutes until it comes back up). :-) We need to avoid a > requirement for an X-windows GUI, but a web-GUI would probably be fine > (a GUI-less command-line thing would probably be best).This probably isn't the best anymore, but I've had it running with no particular problems for 5 or 6 years - before any of the others like it were available. It is all-perl, has one server process to collate the responses and rate-limit the alarms, one network probe for all the remotely checks, and optional local clients for some things that can only be tested locally. It is fairly easy to add custom tests for local applications. http://spong.sourceforge.net/ -- Les Mikesell lesmikesell at gmail.com
I previously used Nagios and because of the painful configurations, I found OpenNMS. It does all I need and more, being more easier than Nagios. It uses PostgreSQL and runs on top of Tomcat4. Here is how I installed OpenNMS and it's prereqs. It's rough, but it works. Installing Java and Tomcat -------------- Download SDK and JRE to Local PC. Use SCP to copy them to the server in the /downloads directory mkdir /usr/local/java cp /downloads/j2sdk-1_4_2_09-linux-i586.bin /usr/local/java cp /downloads/j2re-1_4_2_09-linux-i586.bin /usr/local/java cd /usr/local/java chmod +x * ./j2sdk-1_4_2_09-linux-i586.bin ./j2re-1_4_2_09-linux-i586.bin rm -rf *.bin chown -R root:root j2sdk1.4.2_09 chown -R root:root j2re1.4.2_09 ln -s j2sdk1.4.2_09 j2sdk ln -s j2re1.4.2_09 j2jre nano -w /etc/profile if ! echo ${PATH} | grep -q /usr/local/java/j2sdk/bin ; then export PATH=/usr/local/java/j2sdk/bin:${PATH} fi if ! echo ${PATH} | grep -q /usr/local/java/j2re/bin ; then export PATH=/usr/java/local/j2re/bin:${PATH} fi export JAVA_HOME=/usr/local/java/j2sdk export CLASSPATH=.:/usr/local/java/j2sdk/lib/tools.jar:/usr/local/java/j2re/lib/rt. jar exit su - java -version java version "1.4.2_09" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_09-b05) Java HotSpot(TM) Client VM (build 1.4.2_09-b05, mixed mode) cd /downloads groupadd -g 220 tomcat useradd -u 220 -g tomcat -c "Tomcat" -r -d /usr/local/tomcat -s "/sbin/nologin" tomcat wget http://mirrors.isc.org/pub/apache/jakarta/tomcat-4/v4.1.31/bin/jakarta-tomca t-4.1.31.tar.gz cp jakarta-tomcat-4.1.31.tar.gz /usr/local cd /usr/local tar -zxvf jakarta-tomcat-4.1.31.tar.gz rm *.gz chown -R tomcat:tomcat /usr/local/jakarta-tomcat-4.1.31 ln -s jakarta-tomcat-4.1.31 tomcat nano -w /etc/sysconfig/iptables Add port 8080 to ip tables service iptables restart nano -w /etc/profile Add: CATALINA_HOME=/usr/local/tomcat echo $CATALINA_HOME nano -w /etc/rc.d/init.d/tomcat ADD CONTENT: #!/bin/sh # # Startup script for the Jakarta Tomcat Java Servlets and JSP server # # chkconfig: - 85 15 # description: Jakarta Tomcat Java Servlets and JSP server # processname: tomcat # pidfile: /var/run/tomcat.pid # config: # Source function library. . /etc/rc.d/init.d/functions # Source networking configuration. . /etc/sysconfig/network # Check that networking is up. [ ${NETWORKING} = "no" ] && exit 0# Set Tomcat environment. export JAVA_HOME=/usr/local/java/j2sdk export CLASSPATH=.:/usr/local/java/j2sdk/lib/tools.jar:/usr/local/java/j2re/lib/rt. jar export CATALINA_HOME=/usr/local/tomcat export CATALINA_OPTS="-Dbuild.compiler.emacs=true" export PATH=/usr/local/java/j2sdk/bin:/usr/local/local/j2re/bin:$PATH [ -f /usr/local/tomcat/bin/startup.sh ] || exit 0 [ -f /usr/local/tomcat/bin/shutdown.sh ] || exit 0 export PATH=$PATH:/usr/bin:/usr/local/bin # See how we were called. case "$1" in start) # Start daemon. echo -n "Starting Tomcat: " /usr/local/tomcat/bin/startup.sh RETVAL=$? echo [ $RETVAL = 0 ] && touch /var/lock/subsys/tomcat ;; stop) # Stop daemons. echo -n "Shutting down Tomcat: " /usr/local/tomcat/bin/shutdown.sh RETVAL=$? echo [ $RETVAL = 0 ] && rm -f /var/lock/subsys/tomcat ;; restart) $0 stop $0 start ;; condrestart) [ -e /var/lock/subsys/tomcat ] && $0 restart ;; status) status tomcat ;; *) echo "Usage: $0 {start|stop|restart|status}" exit 1 esac exit 0 chown root:root /etc/rc.d/init.d/tomcat chmod 755 /etc/rc.d/init.d/tomcat chkconfig --add tomcat chkconfig tomcat on Go to: http://localhost:8080 Note: It will take about 15 seconds to pull up. -------------- Installing RRDTool yum install rrdtool -------------- Configuring SNMP yum -y install net-snmp-utils cd /etc/snmp mv snmpd.conf snmpd.conf.old nano -w snmpd.conf Add: rocommunity <password> chkconfig snmpd on service snmpd start snmpwalk -v 1 -c <password> localhost system -------------- Configuring Postgresql service postgresql start chkconfig postgresql on nano -w /var/lib/pgsql/data/postgresql.conf add/change: tcpip_socket = true add/change: shared_buffers = 1024 nano -w /var/lib/pgsql/data/pg_hba.conf change (remove comment): host all all 127.0.0.1 255.255.255.255 trust change: local all all trust service postgresql restart -------------- Configuring OpenNMS cd /downloads wget http://easynews.dl.sourceforge.net/sourceforge/opennms/opennms-1.2.4-1_cento s4.i386.rpm wget http://easynews.dl.sourceforge.net/sourceforge/opennms/opennms-docs-1.2.4-1_ centos4.i386.rpm wget http://easynews.dl.sourceforge.net/sourceforge/opennms/opennms-webapp-1.2.4- 1_centos4.i386.rpm rpm -i opennms-1.2.4-1_centos4.i386.rpm --nodeps rpm -i opennms-docs-1.2.4-1_centos4.i386.rpm --nodeps rpm -i opennms-webapp-1.2.4-1_centos4.i386.rpm --nodeps cd /opt/OpenNMS/bin ./runjava -s ./install -disU ./install -y -w $CATALINA_HOME/webapps -W $CATALINA_HOME/server/lib cd /opt/OpenNMS/etc nano -w discovery-configuration.xml Change the begin and end IP address to 127.0.0.1, or service tomcat restart /opt/OpenNMS/bin/opennms.sh start chkconfig opennms on opennms -v status Goto: http://localhost:8080/opennms/ login with admin:admin Change password>On Thu, 2005-09-22 at 12:54, Kennedy Clark wrote: > > >>A bit off topic, but I keep looking for an answer to this question and >>coming up with nothing... so I thought I would go to the gurus. :-) >> >>Can anyone recommend a good package for pinging other devices and >>sending an email/alert when they go down? I'm aware of all kinds of >>more complex things with GUIs and a zillion other bells and whistles >>we aren't looking for, but we just want a simple tool (could be daemon >>or something run from cron) that runs every 1 - 5 minutes and alerts >>us when stuff disappears. Would need some basic logic like only >>sending one email/alert when something goes down (vs sending an email >>every 1-5 minutes until it comes back up). :-) We need to avoid a >>requirement for an X-windows GUI, but a web-GUI would probably be fine >>(a GUI-less command-line thing would probably be best). >> >> > >This probably isn't the best anymore, but I've had it running with >no particular problems for 5 or 6 years - before any of the others >like it were available. It is all-perl, has one server process to >collate the responses and rate-limit the alarms, one network probe >for all the remotely checks, and optional local clients for some >things that can only be tested locally. It is fairly easy to add >custom tests for local applications. > http://spong.sourceforge.net/ > > >_______________________________________________ CentOS mailing list CentOS at centos.org http://lists.centos.org/mailman/listinfo/centos -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3022 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20050922/4859f2a0/attachment.bin>
On Thu, 2005-09-22 at 14:21, Todd Reed wrote:> I previously used Nagios and because of the painful configurations, I found > OpenNMS. It does all I need and more, being more easier than Nagios. It > uses PostgreSQL and runs on top of Tomcat4.Do any of these alternatives combine the ability to monitor current status with a grid-like display of many systems and services with notification alarms and also keep long-term historical graphs of values? I'm currently running spong for notifications/status and cacti for history/graphs, but I'd like to find something that does both with one snmp query. -- Les Mikesell lesmikesell at gmail.com
Try OpenNMS. Nagios and Zabbix can also do historical data, although I'm not sure about SNMP. I've tried using both and by dar, I feel that OpenNMS is easier to work with. The installation of Tomcat and Java is the hardest item. I do know that OpenNMS can do SNMP. Pretty much, I give OpenNMS the IP address and it finds the common services. You may have to go in and define custom services (I had to since my Oracle servers have multiple listener ports). It will try the default SNMP string, but if you change it, there is a web form to change it. You can also enter your asset information through the web form. You can also create custom reports that can be called on the fly. Check out http://www.opennms.org for the screen shots and more information. I've been working with it for about 2 weeks and already I'm able to do more with it than Nagios or Zabbix. The only thing I liked about Nagios is the WRML graph, but I mainly want to see a status grid and that's it. --Todd -----Original Message----- From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On Behalf Of Les Mikesell Sent: Thursday, September 22, 2005 2:29 PM To: CentOS mailing list Subject: RE: [CentOS] Recommendation On Ping And Alert Tool On Thu, 2005-09-22 at 14:21, Todd Reed wrote:> I previously used Nagios and because of the painful configurations, Ifound> OpenNMS. It does all I need and more, being more easier than Nagios. It > uses PostgreSQL and runs on top of Tomcat4.Do any of these alternatives combine the ability to monitor current status with a grid-like display of many systems and services with notification alarms and also keep long-term historical graphs of values? I'm currently running spong for notifications/status and cacti for history/graphs, but I'd like to find something that does both with one snmp query. -- Les Mikesell lesmikesell at gmail.com _______________________________________________ CentOS mailing list CentOS at centos.org http://lists.centos.org/mailman/listinfo/centos -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3022 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20050922/6d10c8df/attachment.bin>
Kennedy Clark wrote:> A bit off topic, but I keep looking for an answer to this question and > coming up with nothing... so I thought I would go to the gurus. :-) > > Can anyone recommend a good package for pinging other devices and > sending an email/alert when they go down? I'm aware of all kinds of > more complex things with GUIs and a zillion other bells and whistles we > aren't looking for, but we just want a simple tool (could be daemon or > something run from cron) that runs every 1 - 5 minutes and alerts us > when stuff disappears. Would need some basic logic like only sending > one email/alert when something goes down (vs sending an email every 1-5 > minutes until it comes back up). :-) We need to avoid a requirement for > an X-windows GUI, but a web-GUI would probably be fine (a GUI-less > command-line thing would probably be best).Bash. Here is what I use for monitoring my website #!/bin/bash URL="http://www.911networks.com" EMAIL="artsi at fartsi.com" lynx -dump "$URL" > /dev/null if [ $? -ne 0 ]; then echo "`date "+%F %T"` - $URL is down" | mail -s "$URL is down" $EMAIL fi Watch for the wraps and make it executable [chmod 7xx] -- Thanks http://www.911networks.com When the network has to work Cisco/Microsoft
From: Kennedy Clark [mailto:hkclark at gmail.com]> > Great thread. Thanks to all for their input! > > Bryan asks a good question about whether we are looking for a > full SNMP tool. Actually, we have some pretty big systems > that already handle those functions. For this project, we > are just looking for ping-type "is it up or down" information > on a "subset of the overall network." > > It looks like Jacob's recommendation for Mon could be spot > on. But, that being said, OpenNMS and Zabbix look pretty > cool and worth a look (possibly for other projects with more > complex needs). Re a script, I was going to do something > like that if I couldn't get anything here :-) but I was > trying to avoid having to add in the "don't send and email > every time it checks during a prolonged outage" (just send at > the beginning and maybe the end).I'll second the recommendation of Mon. It is simple and powerful with very few requirements. Mon.cgi will give you web-based access to the status information. It also has the advantage of being written in Perl, so making minor changes to the monitoring or alerting routines is very easy. The logic to only notify once (or twice, or three times) per outage is built-in. You can also change the notification routines based on the time of day and/or day of the week. For instance, I set mine so that it doesn't bother notifying me about scheduled daily reboots of some of the servers. Bowie
On 9/22/05, Kennedy Clark <hkclark at gmail.com> wrote:> A bit off topic, but I keep looking for an answer to this question and > coming up with nothing... so I thought I would go to the gurus. :-) > > Can anyone recommend a good package for pinging other devices and sending an > email/alert when they go down? I'm aware of all kinds of more complex > things with GUIs and a zillion other bells and whistles we aren't looking > for, but we just want a simple tool (could be daemon or something run from > cron) that runs every 1 - 5 minutes and alerts us when stuff disappears. > Would need some basic logic like only sending one email/alert when something > goes down (vs sending an email every 1-5 minutes until it comes back up). > :-) We need to avoid a requirement for an X-windows GUI, but a web-GUI > would probably be fine (a GUI-less command-line thing would probably be > best).I don't know about best, but we're using Big Sister (http://www.bigsister.ch/) - web based. -- Collins Richey Debugging is twice as hard as writing the code ... If you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. -Brian Kernighan
Try the following .. It rocks .. JFFNMS http://jffnms.sourceforge.net Very powerful tool .. BRW -----Original Message----- From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On Behalf Of Todd Reed Sent: Thursday, September 22, 2005 12:38 PM To: CentOS mailing list Subject: RE: [CentOS] Recommendation On Ping And Alert Tool Try OpenNMS. Nagios and Zabbix can also do historical data, although I'm not sure about SNMP. I've tried using both and by dar, I feel that OpenNMS is easier to work with. The installation of Tomcat and Java is the hardest item. I do know that OpenNMS can do SNMP. Pretty much, I give OpenNMS the IP address and it finds the common services. You may have to go in and define custom services (I had to since my Oracle servers have multiple listener ports). It will try the default SNMP string, but if you change it, there is a web form to change it. You can also enter your asset information through the web form. You can also create custom reports that can be called on the fly. Check out http://www.opennms.org for the screen shots and more information. I've been working with it for about 2 weeks and already I'm able to do more with it than Nagios or Zabbix. The only thing I liked about Nagios is the WRML graph, but I mainly want to see a status grid and that's it. --Todd -----Original Message----- From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On Behalf Of Les Mikesell Sent: Thursday, September 22, 2005 2:29 PM To: CentOS mailing list Subject: RE: [CentOS] Recommendation On Ping And Alert Tool On Thu, 2005-09-22 at 14:21, Todd Reed wrote:> I previously used Nagios and because of the painful configurations, Ifound> OpenNMS. It does all I need and more, being more easier than Nagios. > It uses PostgreSQL and runs on top of Tomcat4.Do any of these alternatives combine the ability to monitor current status with a grid-like display of many systems and services with notification alarms and also keep long-term historical graphs of values? I'm currently running spong for notifications/status and cacti for history/graphs, but I'd like to find something that does both with one snmp query. -- Les Mikesell lesmikesell at gmail.com _______________________________________________ CentOS mailing list CentOS at centos.org http://lists.centos.org/mailman/listinfo/centos
ABOKHALAF, Nassri Abdellatif
2005-Sep-23 11:43 UTC
[CentOS] Recommendation On Ping And Alert Tool
Just wanted to add one more tool to make this threat complete. See Opmanager at http://manageengine.adventnet.com/products/opmanager/ The free edition is really nice if you have a small network to monitor. Nassri> > Try the following .. It rocks .. > > JFFNMS > > http://jffnms.sourceforge.net > > > Very powerful tool .. > > BRW > > -----Original Message----- > From: centos-bounces at centos.org > [mailto:centos-bounces at centos.org] On Behalf Of Todd Reed > Sent: Thursday, September 22, 2005 12:38 PM > To: CentOS mailing list > Subject: RE: [CentOS] Recommendation On Ping And Alert Tool > > Try OpenNMS. Nagios and Zabbix can also do historical data, > although I'm not sure about SNMP. I've tried using both and > by dar, I feel that OpenNMS is easier to work with. The > installation of Tomcat and Java is the hardest item. I do > know that OpenNMS can do SNMP. Pretty much, I give OpenNMS > the IP address and it finds the common services. You may > have to go in and define custom services (I had to since my > Oracle servers have multiple listener ports). It will try > the default SNMP string, but if you change it, there is a web > form to change it. You can also enter your asset information > through the web form. > > You can also create custom reports that can be called on the fly. > > Check out http://www.opennms.org for the screen shots and > more information. > > > I've been working with it for about 2 weeks and already I'm > able to do more with it than Nagios or Zabbix. The only > thing I liked about Nagios is the WRML graph, but I mainly > want to see a status grid and that's it. > > --Todd > > > -----Original Message----- > From: centos-bounces at centos.org > [mailto:centos-bounces at centos.org] On Behalf Of Les Mikesell > Sent: Thursday, September 22, 2005 2:29 PM > To: CentOS mailing list > Subject: RE: [CentOS] Recommendation On Ping And Alert Tool > > On Thu, 2005-09-22 at 14:21, Todd Reed wrote: > > I previously used Nagios and because of the painful > configurations, I > found > > OpenNMS. It does all I need and more, being more easier > than Nagios. > > It uses PostgreSQL and runs on top of Tomcat4. > > Do any of these alternatives combine the ability to monitor > current status with a grid-like display of many systems and > services with notification alarms and also keep long-term > historical graphs of > values? I'm currently running spong for notifications/status and > cacti for history/graphs, but I'd like to find something that > does both with one snmp query. > > -- > Les Mikesell > lesmikesell at gmail.com > > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos > > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >
Are there recommendations for trimming quotes on this list? Brian Brunner brian.t.brunner at gai-tronics.com (610)796-5838>>> wam at HiWAAY.net 09/23/05 08:07AM >>>Steven Vishoot wrote:>--- "William A. Mahaffey III" <wam at HiWAAY.net> wrote: > > > >>CentOS mailing list wrote: >> >> >> >>>Kennedy Clark wrote: >>> >>> >>> >>>>A bit off topic, but I keep looking for an answer >>>> >>>> >>to this question >> >> >>>>and coming up with nothing... so I thought I >>>> >>>> >>would go to the gurus. :-) >> >> >>>> >>>>Can anyone recommend a good package for pinging >>>> >>>> >>other devices and >> >> >>>>sending an email/alert when they go down? I'm >>>> >>>> >>aware of all kinds of >> >> >>>>more complex things with GUIs and a zillion other >>>> >>>> >>bells and whistles >> >> >>>>we aren't looking for, but we just want a simple >>>> >>>> >>tool (could be >> >> >>>>daemon or something run from cron) that runs >>>> >>>> >>every 1 - 5 minutes and >> >> >>>>alerts us when stuff disappears. Would need some >>>> >>>> >>basic logic like >> >> >>>>only sending one email/alert when something goes >>>> >>>> >>down (vs sending an >> >> >>>>email every 1-5 minutes until it comes back up). >>>> >>>> >>:-) We need to >> >> >>>>avoid a requirement for an X-windows GUI, but a >>>> >>>> >>web-GUI would >> >> >>>>probably be fine (a GUI-less command-line thing >>>> >>>> >>would probably be best). >> >> >>>Bash. Here is what I use for monitoring my website >>> >>>#!/bin/bash >>> >>>URL="http://www.911networks.com" >>>EMAIL="artsi at fartsi.com" >>> >>>lynx -dump "$URL" > /dev/null >>>if [ $? -ne 0 ]; then >>> echo "`date "+%F %T"` - $URL is down" | mail >>> >>> >>-s "$URL is down" $EMAIL >> >> >>>fi >>> >>>Watch for the wraps and make it executable [chmod >>> >>> >>7xx] >> >> >>> >>> >>This is the sort of thing I was going to suggest. >>You could go 1 better >>& have it resubmit itself periodically w/ at(1). >>Maybe get it to do some >>argument parsing so you could pass in the URL, >>EMAIL, then invoke plural >>instances for however many things you want to >>monitor .... >> >>-- >> William A. Mahaffey III >> >> >> >--------------------------------------------------------------------- > > >> Remember, ignorance is bliss, but >> willful ignorance is LIBERALISM !!!! >> >>_______________________________________________ >>CentOS mailing list >>CentOS at centos.org >>http://lists.centos.org/mailman/listinfo/centos >> >> >> > >My question is wouldnt this keep on sending emails all >the time ping keeps on seeing it is down. I thought >one of the requirements was once for each occurance? I >probably am reading this wrong... > >Steven > > >"On the side of the software box, in the 'System Requirements' section, it said 'Requires Windows or better'. So I installed Linux." >_______________________________________________ > > >It wouldn't have to. You would probably structure the script to E-mail if the device was down & then exit. It would re-submit itself if the device were up :-). -- William A. Mahaffey III --------------------------------------------------------------------- Remember, ignorance is bliss, but willful ignorance is LIBERALISM !!!! ******************************************************************* This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept for the presence of computer viruses. www.hubbell.com - Hubbell Incorporated