Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mrtg not working in gentoo [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Majed17
Guru
Guru


Joined: 31 Aug 2011
Posts: 328
Location: Minsk, Belarus

PostPosted: Fri Aug 29, 2014 11:28 am    Post subject: mrtg not working in gentoo [solved] Reply with quote

Peace, i installed mrtg according to
http://www.gentoo-wiki.info/HOWTO_SNMP_and_MRTG_Made_Easy
i installed only the traffic option but mrtg is not working.
http://10.33.0.7/mrtg/
shows the ports but without the graphs.
/var/www/localhost/htdocs/mrtg
has index.html
mrtg-l.png
mrtg-m.png
mrtg-r.png
and no other files.

where have i gone wrong?


Last edited by Majed17 on Sat Aug 30, 2014 8:45 pm; edited 3 times in total
Back to top
View user's profile Send private message
Majed17
Guru
Guru


Joined: 31 Aug 2011
Posts: 328
Location: Minsk, Belarus

PostPosted: Fri Aug 29, 2014 3:12 pm    Post subject: Reply with quote

the problem was with the file called traffic.
according to
https://forums.gentoo.org/viewtopic-t-105862-start-0.html
i renamed it to traffic.sh and ran it thrice. then generated the index and graphs are being dispalyed.
Back to top
View user's profile Send private message
Majed17
Guru
Guru


Joined: 31 Aug 2011
Posts: 328
Location: Minsk, Belarus

PostPosted: Fri Aug 29, 2014 3:42 pm    Post subject: Reply with quote

now i have a new problem.
it seems mrtg stops working after a period in time. nagios says
" file is x minutes old"
i run
sh /etc/cron.mrtg/traffic.sh
three times and the eror disappears. is this a problem with the cron job? mrtg restart dosn't seem to help.
Back to top
View user's profile Send private message
Majed17
Guru
Guru


Joined: 31 Aug 2011
Posts: 328
Location: Minsk, Belarus

PostPosted: Sat Aug 30, 2014 8:44 pm    Post subject: Reply with quote

i unmerged mrtg and deleted almost everything and reinstalled everything, this time i restarted and mrtg worked.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum