First of all, thanks for your response, Jerry. However, how can I obtain your mentione monshow output? I don't know what the name of the log file is and where it is. Please help.
My mon.cf is shown below: # # global options # cfbasedir = /usr/lib/mon/etc alertdir = /usr/lib/mon/alert.d mondir = /usr/lib/mon/mon.d maxprocs = 20 histlength = 100 randstart = 60s # # authentication types: # getpwnam standard Unix passwd, NOT for shadow passwords # shadow Unix shadow passwords (not implemented) # userfile "mon" user file # authtype = getpwnam # # group definitions (hostnames or IP addresses) # hostgroup testing 234.0.0.1 # # testing # watch testing service ping description Testing Routers' IP addresses interval 8m monitor fping.monitor -r 4 -t 60000 period wd {Mon-Fri} alert mail.alert [EMAIL PROTECTED] alertevery 45m period LOGFILE: wd {Mon-Fri} alert file.alert -d /usr/lib/mon/log.d routers.log alertevery 45m The monshowrc which is found in /usr/libexec/webmin is shown below: set host localhost set show-disabled set full (your mentioned option has been set) set bg #FFFFFF set bg-ok #7FFFD4 set bg-untested FFCC33 set bg-disabled FAEBD7 set table-color cccccc set refresh 300 By the current mon.cf setting, it will log down the result into routers.log and send an email to [EMAIL PROTECTED] ONLY IF THE IP OR HOSTNAME IS INVALID. However, if the IP or hostname is reachable and valid, MON will neither log down anything nor send an email to monitor account. What I want to accomplish is log down all activities MON does to a file but send an email when it is failed to fping an IP or hostname. Any hints? Sam -----Original Message----- From: Jerry [mailto:[EMAIL PROTECTED] Sent: Friday, March 12, 2004 2:19 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: Obtain a summary report Sam Chan <[EMAIL PROTECTED]> writes: > If I want to obtain a summary of a service, say > fping.monitor, what should I define in the mon.cf no matter > the service is down or not? Do you mean the monshow output? If so, the place is not mon.cf. If you want something like this: --- time: Thu Mar 11 13:14:28 2004 state: scheduler running GROUP SERVICE STATUS LAST NEXT ALERTS SUMMARY R routers ping - 48s 00:02 none --- instead of: --- time: Thu Mar 11 13:19:23 2004 state: scheduler running All systems OK --- you can the set the following in your .monshowrc (or the global equiv). # show all statuses instead of just failures set full If you're after something else, nevermind... Jerry _______________________________________________ mon mailing list [EMAIL PROTECTED] http://linux.kernel.org/mailman/listinfo/mon