Nagios Network Analyzer and MRTG

Have a great idea for an upcoming release of NEMS? Post it here.
Post Reply
mydogboris
Junior Member
Posts: 12
Joined: Mon Sep 24, 2018 2:14 pm

Nagios Network Analyzer and MRTG

Post by mydogboris »

It would be great to get Netflow information to Nagios core with Nagios Network Analyzer as well as graphing traffic statistics with MRTG.

https://assets.nagios.com/downloads/nag ... 1537820772
User avatar
Robbie Ferguson
Posting Freak
Posts: 835
Joined: Wed Mar 07, 2012 3:23 pm
Location: Ontario, Canada
Contact:

RE: Nagios Network Analyzer and MRTG

Post by Robbie Ferguson »

NNA is ~$2,000 isn't it? So that's not going to happen in a free project such as NEMS. MRTG on the other hand, that could happen. I'll add MRTG to the to-do list ... probably NEMS 1.6, though if I can squeeze it into a rolling update (eg., 1.5.1) I'll do that.

Thanks,
Robbie
Robbie Ferguson // The Bald Nerd

Did I help you out? Appreciate what I do? Please consider saying thanks:
User avatar
Robbie Ferguson
Posting Freak
Posts: 835
Joined: Wed Mar 07, 2012 3:23 pm
Location: Ontario, Canada
Contact:

Re: Nagios Network Analyzer and MRTG

Post by Robbie Ferguson »

MRTG was approved and integrated into NEMS Linux 1.5:

Documentation:
https://docs.nemslinux.com/usage/mrtg

Changelogs:
Add Multi Router Traffic Grapher (MRTG) as requested by mydogboris.
mrtg.sh will now detect the [first] default gateway of the current connection and offer it as the IP to use for MRTG. If incorrect, user may still enter the router IP manually.
If no SNMP data is found on the router, mrtg.sh will provide a proper error rather than a “file not found” error.
If, when user runs mrtg.sh, the MRTG Apache configuration is not enabled, enable it automatically.
Added mrtgsetup command (a symlink to mrtg.sh).
Added custom trap community support to mrtgsetup.
Added MRTG index to https://nems.local/mrtg
dony71
Junior Member
Posts: 6
Joined: Fri Oct 02, 2020 7:27 pm

Re: Nagios Network Analyzer and MRTG

Post by dony71 »

Hi Robbie,
I just install NEMS 1.5 on Rock64 board
I run "sudo mrtgsetup" but get this error below
I also already run "sudo nems-upgrade" and apply reboot

Code: Select all

/usr/local/bin/mrtgsetup: line 47: /usr/local/mrtg2/bin/cfgmaker: No such file or directory
env: ‘/usr/local/mrtg2/bin/mrtg’: No such file or directory
/usr/local/share/nems/nems-scripts/mrtg-gen.sh: line 11: /usr/local/mrtg2/bin/indexmaker: No such file or directory
env: ‘/usr/local/mrtg2/bin/mrtg’: No such file or directory
It seems mrtg is not installed yet, but you mentioned it's integrated into NEMS Linux 1.5 ?
User avatar
Robbie Ferguson
Posting Freak
Posts: 835
Joined: Wed Mar 07, 2012 3:23 pm
Location: Ontario, Canada
Contact:

Re: Nagios Network Analyzer and MRTG

Post by Robbie Ferguson »

Please open a new thread for your support request dony71
Post Reply