Page 2 of 3

Re: Fortisnmp monitoring -help

Posted: Sun Jan 31, 2016 3:01 am
by batchen
Hi,
/etc/mrtg/mymrtg.cfg
/etc/mrtg/mymrtg.cfg
are empty ,

as for /etc/mrtg/mrtg.cfg
and /etc/httpd/conf/mrtg.cfg i added the output in a txt file cause it didn't let me submit the message cause it was to long..

Regards,

Re: Fortisnmp monitoring -help

Posted: Mon Feb 01, 2016 5:44 pm
by tgriep
In your /etc/mrtg/mrtg.cfg file, you have 2 WorkDir: options setup. Remove the incorrect entry and see if that helps.

Re: Fortisnmp monitoring -help

Posted: Tue Feb 02, 2016 3:16 am
by batchen
what is the inncorect one?

i have thous :
WorkDir: /var/www/mrtg
WorkDir: /var/lib/mrtg

i supposed the correct one is
WorkDir: /var/www/mrtg
cause all the logs are there , i did the change and restart nagios.

now what?
is there another process to restart? and why are all the logs at /var/www/mrtg are created once (month ago) and never created again?
see the dates :

Code: Select all

-rw-r--r--. 1 nagios nagios  1511 Jan 19 11:36 172.10.170.99_26-day.png
-rw-r--r--. 1 nagios nagios  6376 Jan 19 11:36 172.10.170.99_26.html
-rw-r--r--. 1 nagios nagios 48217 Jan 19 11:36 172.10.170.99_26.log
-rw-r--r--. 1 nagios nagios  1367 Jan 19 11:35 172.10.170.99_26-month.png
-rw-r--r--. 1 nagios nagios 48213 Jan 19 11:35 172.10.170.99_26.old
-rw-r--r--. 1 nagios nagios  1455 Jan 19 11:35 172.10.170.99_26-week.png
-rw-r--r--. 1 nagios nagios  1742 Jan 19 04:30 172.10.170.99_26-year.png
-rw-r--r--. 1 nagios nagios  1511 Jan 19 11:36 172.10.170.99_2-day.png
-rw-r--r--. 1 nagios nagios  6414 Jan 19 11:36 172.10.170.99_2.html
-rw-r--r--. 1 nagios nagios 48237 Jan 19 11:36 172.10.170.99_2.log
-rw-r--r--. 1 nagios nagios  1367 Jan 19 11:35 172.10.170.99_2-month.png
-rw-r--r--. 1 nagios nagios 48217 Jan 19 11:35 172.10.170.99_2.old
-rw-r--r--. 1 nagios nagios  1455 Jan 19 11:35 172.10.170.99_2-week.png
-rw-r--r--. 1 nagios nagios  1742 Jan 19 04:30 172.10.170.99_2-year.png
-rw-r--r--. 1 nagios nagios   350 Nov 12  2012 favicon.ico
-rw-r--r--. 1 nagios nagios  2772 Jan 19 15:36 index.html
-rw-r--r--. 1 nagios nagios   343 Nov 12  2012 mrtg-l.gif
-rw-r--r--. 1 nagios nagios   538 Nov 12  2012 mrtg-l.png
-rw-r--r--. 1 nagios nagios  1144 Nov 12  2012 mrtg-m.gif
-rw-r--r--. 1 nagios nagios   414 Nov 12  2012 mrtg-m.png
-rw-r--r--. 1 nagios nagios  1779 Nov 12  2012 mrtg-r.gif
-rw-r--r--. 1 nagios nagios  1759 Nov 12  2012 mrtg-r.png
-rw-r--r--. 1 nagios nagios  4696 Nov 12  2012 mrtg-ti.gif
-rw-r--r--. 1 nagios nagios  4293 Nov 12  2012 mrtg-ti.png

Code: Select all

MRTG data has expired (19659 minutes old) 

Re: Fortisnmp monitoring -help

Posted: Tue Feb 02, 2016 3:14 pm
by tgriep
Can you run the following and post the output?

Code: Select all

LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
ll /var/lock/mrtg/
Thanks

Re: Fortisnmp monitoring -help

Posted: Sun Feb 07, 2016 7:18 am
by batchen
tgriep wrote:Can you run the following and post the output?

Code: Select all

LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
ll /var/lock/mrtg/
Thanks

this is the output:

Code: Select all

root@localhost: ~#LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
root@localhost: ~#ll /var/lock/mrtg/
total 0
root@localhost: ~#

Re: Fortisnmp monitoring -help

Posted: Sun Feb 07, 2016 10:02 pm
by Box293
batchen wrote:
tgriep wrote:Can you run the following and post the output?

Code: Select all

LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
ll /var/lock/mrtg/
Thanks

this is the output:

Code: Select all

root@localhost: ~#LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
root@localhost: ~#ll /var/lock/mrtg/
total 0
root@localhost: ~#
Did the files get updated in /var/www/mrtg after running this?

Re: Fortisnmp monitoring -help

Posted: Mon Feb 08, 2016 4:14 am
by batchen
Box293 wrote:
batchen wrote:
tgriep wrote:Can you run the following and post the output?

Code: Select all

LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
ll /var/lock/mrtg/
Thanks

this is the output:

Code: Select all

root@localhost: ~#LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
root@localhost: ~#ll /var/lock/mrtg/
total 0
root@localhost: ~#
Did the files get updated in /var/www/mrtg after running this?



nope, thay didnt :

Code: Select all

root@localhost: objects#cd /var/www/mrtg/
root@localhost: mrtg#ll
total 288
-rw-r--r--. 1 nagios nagios  1511 Jan 19 11:36 172.10.170.99_26-day.png
-rw-r--r--. 1 nagios nagios  6376 Jan 19 11:36 172.10.170.99_26.html
-rw-r--r--. 1 nagios nagios 48217 Jan 19 11:36 172.10.170.99_26.log
-rw-r--r--. 1 nagios nagios  1367 Jan 19 11:35 172.10.170.99_26-month.png
-rw-r--r--. 1 nagios nagios 48213 Jan 19 11:35 172.10.170.99_26.old
-rw-r--r--. 1 nagios nagios  1455 Jan 19 11:35 172.10.170.99_26-week.png
-rw-r--r--. 1 nagios nagios  1742 Jan 19 04:30 172.10.170.99_26-year.png
-rw-r--r--. 1 nagios nagios  1511 Jan 19 11:36 172.10.170.99_2-day.png
-rw-r--r--. 1 nagios nagios  6414 Jan 19 11:36 172.10.170.99_2.html
-rw-r--r--. 1 nagios nagios 48237 Jan 19 11:36 172.10.170.99_2.log
-rw-r--r--. 1 nagios nagios  1367 Jan 19 11:35 172.10.170.99_2-month.png
-rw-r--r--. 1 nagios nagios 48217 Jan 19 11:35 172.10.170.99_2.old
-rw-r--r--. 1 nagios nagios  1455 Jan 19 11:35 172.10.170.99_2-week.png
-rw-r--r--. 1 nagios nagios  1742 Jan 19 04:30 172.10.170.99_2-year.png
-rw-r--r--. 1 nagios nagios   350 Nov 12  2012 favicon.ico
-rw-r--r--. 1 nagios nagios  2772 Jan 19 15:36 index.html
-rw-r--r--. 1 nagios nagios   343 Nov 12  2012 mrtg-l.gif
-rw-r--r--. 1 nagios nagios   538 Nov 12  2012 mrtg-l.png
-rw-r--r--. 1 nagios nagios  1144 Nov 12  2012 mrtg-m.gif
-rw-r--r--. 1 nagios nagios   414 Nov 12  2012 mrtg-m.png
-rw-r--r--. 1 nagios nagios  1779 Nov 12  2012 mrtg-r.gif
-rw-r--r--. 1 nagios nagios  1759 Nov 12  2012 mrtg-r.png
-rw-r--r--. 1 nagios nagios  4696 Nov 12  2012 mrtg-ti.gif
-rw-r--r--. 1 nagios nagios  4293 Nov 12  2012 mrtg-ti.png

Re: Fortisnmp monitoring -help

Posted: Mon Feb 08, 2016 5:02 pm
by tgriep
Did the file in this folder get updated?
Run the following and post the output.

Code: Select all

ls -l /var/lib/mrtg

Re: Fortisnmp monitoring -help

Posted: Wed Feb 10, 2016 3:04 am
by batchen
tgriep wrote:Did the file in this folder get updated?
Run the following and post the output.

Code: Select all

ls -l /var/lib/mrtg
it didnt update as well :

Code: Select all

root@localhost: ~#ls -l /var/lib/mrtg
total 0
-rw-r--r--. 1 root root 0 Jan 19 13:20 mrtg.ok

Re: Fortisnmp monitoring -help

Posted: Wed Feb 10, 2016 3:49 pm
by tgriep
Please run the following so we can get some debug information and post the output here.

Code: Select all

LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --debug=log,base
ps -ef