Fortisnmp monitoring -help

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
batchen
Posts: 24
Joined: Tue Jan 19, 2016 10:04 am

Re: Fortisnmp monitoring -help

Post 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,
Attachments
etc_httpd_conf_mrtg.cfg.txt
(57.33 KiB) Downloaded 253 times
etc_mrtg_mrtg.cfg.txt
(57.65 KiB) Downloaded 268 times
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Fortisnmp monitoring -help

Post by tgriep »

In your /etc/mrtg/mrtg.cfg file, you have 2 WorkDir: options setup. Remove the incorrect entry and see if that helps.
Be sure to check out our Knowledgebase for helpful articles and solutions!
batchen
Posts: 24
Joined: Tue Jan 19, 2016 10:04 am

Re: Fortisnmp monitoring -help

Post 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) 
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Fortisnmp monitoring -help

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
batchen
Posts: 24
Joined: Tue Jan 19, 2016 10:04 am

Re: Fortisnmp monitoring -help

Post 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: ~#
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Fortisnmp monitoring -help

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
batchen
Posts: 24
Joined: Tue Jan 19, 2016 10:04 am

Re: Fortisnmp monitoring -help

Post 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
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Fortisnmp monitoring -help

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
batchen
Posts: 24
Joined: Tue Jan 19, 2016 10:04 am

Re: Fortisnmp monitoring -help

Post 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
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Fortisnmp monitoring -help

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked