Add something like this to /etc/services on each server: # Local services
smtp-stats 7256/tcp #smtp-stats df-stats 7258/tcp #df-stats pop-stats 7260/tcp #pop-stats mailq-stats 7261/tcp #mailq-stats uptime-stats 7262/tcp #uptime-stats user-stats 7263/tcp #user-stats isdn-stats 7264/tcp #isdn-stats modem-stats 7265/tcp #modem-stats Add something like this to /etc/inetd.conf or equivalent on each server: #:MRTG: See http://demo-stats.mountain.net for more info smtp-stats stream tcp nowait root /usr/local/scripts/smtp-stats df-stats stream tcp nowait root /bin/df df-stats pop-stats stream tcp nowait root /usr/local/scripts/pop-stats mailq-stats stream tcp nowait root /usr/local/scripts/mailq-stats uptime-stats stream tcp nowait root /usr/local/scripts/uptime-stats user-stats stream tcp nowait root /usr/local/scripts/user-stats isdn-stats stream tcp nowait root /usr/local/scripts/isdn-stats modem-stats stream tcp nowait root /usr/local/scripts/modem-stats Build those scripts to suit your own environment. Here's the "smtp-stats" script, for example: tcsh> cat /usr/local/scripts/smtp-stats #!/bin/sh # smtp-stats: exec Solaris mailstats # if [ -x "/usr/sbin/mailstats" ] then exec /usr/sbin/mailstats -f/var/log/sendmail.st fi This allows you to monitor anything for which you can create a script that outputs the number to be monitored. It's also a great way to translate SNMP objects that report as text into numbers, if that's something anyone is looking for. Pete Templin IP Network Engineer Tex-Link Communications [EMAIL PROTECTED] (210) 892-4183 -----Original Message----- From: Phil Iovino [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 7:44 PM To: [EMAIL PROTECTED] Subject: [mrtg] Clustering MRTG Servers Does anyone have any hints on clustering MRTG servers? I think I'm going to need to setup MRTG on just about every server machine in our network (6 or so). Since most scripts that monitor things like bind requests, sendmail stats, disk space, cpu load, etc, can't be run "remotely", I guess I need to setup MRTG on each box? I know there may be better tools for this use like NRG, but I'd like to stick with MRTG if possible. Any advice? -- Unsubscribe mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/mrtg FAQ http://faq.mrtg.org Homepage http://www.mrtg.org WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi -- Unsubscribe mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/mrtg FAQ http://faq.mrtg.org Homepage http://www.mrtg.org WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
