hello,
it is most likey loaded from xinetd - check /etc/xinetd.d/ it see what files are included with it run rpm -l MRTG
That's a silly question, but anyway....
I've installed MRTG on RH8 to Monitor bandwidth on the firewall, it works.(rpm version) 2 silly questions:
1. Is that mandatory to have an snmp running on the box that hosts mrtg?
2. I can't figure out how mrtg is started, there is nothing in rc3.d or rc5.d and nothing in rc/local (But it is running)
When I do ps -auxw | grep mrtg I see:
root 2338 0.0 2.8 8800 7164 ? S 12:15 0:00 /usr/bin/perl /usr/bin/mrtg /etc/mrtg/mrtg.cfg
So where is it loaded from?
Thanks.
hello,
it is most likey loaded from xinetd - check /etc/xinetd.d/ it see what files are included with it run rpm -l MRTG
It doesn't appear to be xinetd stuff, here is the output from chkconfig --list
xinetd based services:
chargen-udp: off
chargen: off
daytime-udp: off
daytime: off
echo-udp: off
echo: off
services: off
servers: off
time-udp: off
time: off
sgi_fam: on
rsync: off
As to the rpm -ql mrtg.....it show a long list of file byut nothing that gives me an idea.....
ad 1) Yes, it is. The FAQs on the mrtg homepage have links to pages that explain snmp in depth.
ad 2) Well, if it's not in the init scripts and you don't start it by hand, it's gotta be a crontab entry.
crontab -e comes up empty, crontab -l shows 'no crontab for root'.....do I miss something here, which crontab I should be looking at? (RH8)
Thanks.
humms - how about rpm -ql | grep etc to see what is in that directory.
Not sure how redhat does things. When I installed mrtg using the debian packages they put a cron entry in /etc/cron.d/mrtg which I then removed and added an init.d script.
It must be somewhere. As a last resort maybe do a grep for mrtg in the entire /etc directory. You will need some shell scripting to include all the subdirs, too.
ls -la | grep cron ( in /etc)
drwxr-xr-x 2 root root 4096 Jul 19 2002 cron.d
drwxr-xr-x 2 root root 4096 Apr 1 05:44 cron.daily
drwxr-xr-x 2 root root 4096 Jun 23 2002 cron.hourly
drwxr-xr-x 2 root root 4096 Apr 1 05:28 cron.monthly
-rw-r--r-- 1 root root 309 Apr 1 05:45 crontab
drwxr-xr-x 2 root root 4096 Apr 1 05:28 cron.weekly
I've got the following in cron.daily:
00-logwatch 00webalizer 0anacron logrotate makewhatis.cron rpm slocate.cron tmpwatch
cron.monthly contains 0anacron
cron.weekly contains 0anacron makewhatis.cron
cron.hourly is empty
Bookmarks