[NTLUG:Discuss] mrtg.cfg problem
MadHat
madhat at unspecific.com
Wed Nov 28 17:14:51 CST 2001
At 04:03 PM 11/28/2001 -0600, you wrote:
>I have added the script info below to my MRTG config, but get this error
>when trying to start the config up:
>
>[root at rt bin]# perl ./mrtg wol.cfg
>ERROR: CFG Error in "threshprogi[x.x.x.x]", line 57: Threshold program echo
>"Network is down" | mail -s "MRTG Warning" ray at mydomain.com cannot be
>executed
>
>I wasn't sure if the was a Sendmail smrsh problem, so I added a ln to allow
>MRTG.
>
>Thanks in advance for any ideas
Might need to modify the Environment variable PATH, or make a shell script
out of it.
The script would be something as simple as
--START--
#!/bin/sh
echo "Network is down" | mail -s "MRTG Warning" ray at mydomain.com
--END--
without the --START-- and --END--
then chmod the script to 755 (easiest). Put the script where ever you
want, like in the dir MRTG was installed in (usually /usr/local/mrtg/) so
then you could call the script via
ThreshProgI[...]: /usr/local/mrtg/notify.sh
or what ever you called the script.
>Raymond
>
>
> > >
> > >
> > > > Hi Raymond.
> > > >
> > > > I would think something like this should work:
> > > >
> > > >
> > > > echo "Network has died!" | mail -s "MRTG WARNING" user at domain.com
> > > >
> > > > Michael
> > > >
> > > >
> > > > On Wed, Nov 28, 2001 at 12:18:41PM -0600, Raymond Norton wrote:
> > > > > I am setting up our MRTG configs to use the Threshold feature, and
>send
> > >out
> > > > > an automated email when traffic reaches 0%. I understand how to make
>the
> > > > > additions to my configs, but I am at a loss how to write a script
>that
> > >can
> > > > > be called by MRTG which will send the email when the threshold is
> > >reached.
> > > > >
> > > > > I am using RedHat 7.1 and Sendmail 8.11.6
> > > > >
> > > > > Can anyone help me with this?
> > > > >
> > > > >
> > > > > Raymond
> > > > >
> > > > >
> > > > >
> > > > > _______________________________________________
> > > > > http://www.ntlug.org/mailman/listinfo/discuss
> > > >
> > > > _______________________________________________
> > > > http://www.ntlug.org/mailman/listinfo/discuss
> > > >
> > >
> > >
> > >_______________________________________________
> > >http://www.ntlug.org/mailman/listinfo/discuss
> >
> > --
> > MadHat at unspecific.com
> >
> >
> > _______________________________________________
> > http://www.ntlug.org/mailman/listinfo/discuss
> >
>
>
>_______________________________________________
>http://www.ntlug.org/mailman/listinfo/discuss
--
MadHat at unspecific.com
More information about the Discuss
mailing list