check_mrtgtraf

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

Re: check_mrtgtraf

Post by tgriep »

You had some typo's when you ran the command last time. Can you run it again?
Before posting the mrtg.txt file, take a look at is and see if it is valid and if there are any clues on why it is not running on your system.
Be sure to check out our Knowledgebase for helpful articles and solutions!
jmac727
Posts: 35
Joined: Tue Apr 25, 2017 4:37 pm

Re: check_mrtgtraf

Post by jmac727 »

I apologize for that. Here is the corrected version.
Attachments
mrtg (2).txt
(1.14 KiB) Downloaded 362 times
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: check_mrtgtraf

Post by tgriep »

I have attached 2 config files to this post.
Download them and the one called mrtg.cfg, overwrite your /etc/mrtg/mrtg.cfg file with the one from the post.
Then, lets clear out and configuration files by running the following as root.

Code: Select all

rm /etc/mrtg/conf.d/*
The attachment called, 192.168..2.126.cfg put is in the following folder.

Code: Select all

/etc/mrtg/conf.d
See if that fixes the issue.
Attachments
192.168.2.126.cfg
(60.66 KiB) Downloaded 362 times
mrtg.cfg
(751 Bytes) Downloaded 360 times
Be sure to check out our Knowledgebase for helpful articles and solutions!
jmac727
Posts: 35
Joined: Tue Apr 25, 2017 4:37 pm

Re: check_mrtgtraf

Post by jmac727 »

No dice. I ran the debug line again and attached the resulting .txt files.
Attachments
mrtg.txt
(129.64 KiB) Downloaded 327 times
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: check_mrtgtraf

Post by tgriep »

This error from the file needs to be resolved.
ERROR: could not find rrdtool. Use PathAdd: in mrtg.cfg to help mrtg find rrdtool

You need to install the following packages on your server as MRTG needs them to create the rrd files.

Code: Select all

rrdtool
rrdtool-perl
Be sure to check out our Knowledgebase for helpful articles and solutions!
jmac727
Posts: 35
Joined: Tue Apr 25, 2017 4:37 pm

Re: check_mrtgtraf

Post by jmac727 »

I did

Code: Select all

sudo apt install rrdtool
Do I need to do anything for the rrdtool-perl?
jmac727
Posts: 35
Joined: Tue Apr 25, 2017 4:37 pm

Re: check_mrtgtraf

Post by jmac727 »

Newest .txt doc
Attachments
mrtg.txt
(129.64 KiB) Downloaded 321 times
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: check_mrtgtraf

Post by tgriep »

The ubuntu package is called so run the following to install it

Code: Select all

apt install mrtg-rrd
Be sure to check out our Knowledgebase for helpful articles and solutions!
jmac727
Posts: 35
Joined: Tue Apr 25, 2017 4:37 pm

Re: check_mrtgtraf

Post by jmac727 »

Ok. I ran that. Restarted the whole machine and reran the debug and it comes back with no error in the .txt file. Still nothing.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: check_mrtgtraf

Post by tgriep »

Lets recreate the config file for your router.
Run the following command to recreate it but make sure you update any of the settings.

Code: Select all

/usr/bin/cfgmaker --show-op-down --noreversedns --zero-speed 100000000 [email protected]:161::::2 >/etc/mrtg/conf.d/192.168.2.126.cfg
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked