LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-05-2017, 05:02 AM   #1
Abuharis
LQ Newbie
 
Registered: Jan 2017
Posts: 3

Rep: Reputation: Disabled
cfgmaker error


Hi,
I am trying to monitor the bandwidth but fail to write the cfgmaker in /etc/,rtg/mrtg.cfg.
But i can run cfgmaker without any error in my local system.
Remote host is installed with snmpd and its running.
this is the output i'm getting.

cfgmaker --global 'WorkDir: /var/www/mrtg' --output /etc/mrtg/mrtg.cfg public@remote_switch_ip
Use of uninitialized value $t in substitution (s///) at /usr/bin/cfgmaker line 1375.
Use of uninitialized value $t in substitution (s///) at /usr/bin/cfgmaker line 1376.
Use of uninitialized value $t in substitution (s///) at /usr/bin/cfgmaker line 1377.
Use of uninitialized value $fs in pattern match (m//) at /usr/bin/cfgmaker line 1382.
Use of uninitialized value $t in hash element at /usr/bin/cfgmaker line 1383.
--base: Get Device Info on public@remote_switch_ip
--base: Vendor Id: Unknown Vendor - 1.3.6.1.4.1.8072.3.2.10
--base: Populating confcache
--base: Get Interface Info
--base: Walking ifIndex
--base: Walking ifType
--base: Walking ifAdminStatus
--base: Walking ifOperStatus
--base: Walking ifMtu
--base: Walking ifSpeed
--base: Writing /etc/mrtg/mrtg.cfg

I have gone through almost all the threads posted here.
Kindly help me. I have a deadline to complete the task.
 
Old 01-05-2017, 07:47 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by Abuharis View Post
Hi,
I am trying to monitor the bandwidth but fail to write the cfgmaker in /etc/,rtg/mrtg.cfg. But i can run cfgmaker without any error in my local system.
Remote host is installed with snmpd and its running. this is the output i'm getting.

cfgmaker --global 'WorkDir: /var/www/mrtg' --output /etc/mrtg/mrtg.cfg public@remote_switch_ip
Use of uninitialized value $t in substitution (s///) at /usr/bin/cfgmaker line 1375.
Use of uninitialized value $t in substitution (s///) at /usr/bin/cfgmaker line 1376.
Use of uninitialized value $t in substitution (s///) at /usr/bin/cfgmaker line 1377.
Use of uninitialized value $fs in pattern match (m//) at /usr/bin/cfgmaker line 1382.
Use of uninitialized value $t in hash element at /usr/bin/cfgmaker line 1383.
--base: Get Device Info on public@remote_switch_ip
--base: Vendor Id: Unknown Vendor - 1.3.6.1.4.1.8072.3.2.10
--base: Populating confcache
--base: Get Interface Info
--base: Walking ifIndex
--base: Walking ifType
--base: Walking ifAdminStatus
--base: Walking ifOperStatus
--base: Walking ifMtu
--base: Walking ifSpeed
--base: Writing /etc/mrtg/mrtg.cfg

I have gone through almost all the threads posted here. Kindly help me. I have a deadline to complete the task.
Please read the "How to ask a smart question" and "Question Guidelines" links in my posting signature. We volunteer our time here, so saying you have a deadline/you're in a hurry is fairly rude; we answer when we can. Also, you need to provide details when asking a question...you have told us nothing about version/distro of Linux, if you're trying to edit the file as sudo/root, or what you've done/tried so far. What installation guide/tutorial did you follow to install this?

Unless you save/edit the configuration file, things won't work.
 
Old 01-06-2017, 01:01 AM   #3
Abuharis
LQ Newbie
 
Registered: Jan 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
I apologize for the rude behaviour.

I need to monitor bandwidth usage of remote server running on centos 6.
My nagios 4.0 server is running on centos 7 with plugins 2.1.4.
Installed snmp-5.7,mrtg 2.17 in nagios server and snmp-5.5 on client machine.
cfgmaker has created an entry for localhost without an error in /etc/mrtg/mrtg.cfg.

But while running cfgmaker with remote server ip, "No response received" error occurs.
cfgmaker --global 'WorkDir: /var/www/mrtg' --output /etc/mrtg/mrtg.cfg public@remoteserver_ip.

snmp is running in remote server,iptables and selinux are disabled.
Also i have logged in as root user.

Can anyone help me solving this as i have only moderate idea about nagios.?
 
Old 01-06-2017, 12:25 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by Abuharis View Post
I apologize for the rude behaviour.

I need to monitor bandwidth usage of remote server running on centos 6.
My nagios 4.0 server is running on centos 7 with plugins 2.1.4.
Installed snmp-5.7,mrtg 2.17 in nagios server and snmp-5.5 on client machine.
cfgmaker has created an entry for localhost without an error in /etc/mrtg/mrtg.cfg.

But while running cfgmaker with remote server ip, "No response received" error occurs.
cfgmaker --global 'WorkDir: /var/www/mrtg' --output /etc/mrtg/mrtg.cfg public@remoteserver_ip.

snmp is running in remote server,iptables and selinux are disabled.
Also i have logged in as root user.

Can anyone help me solving this as i have only moderate idea about nagios.?
Right...we understand your question from the first time you asked it. However now you're changing your story, and saying you are NOT getting errors with cfgmaker...which is it?

First thing to try here would be a simple snmpwalk to the remote server, and make sure it responds correctly with the community string you give it, and gives you SNMP output. Have you checked to see if SNMP is working on the remote server? Did you configure SNMP on the remote server? And again, what tutorial/instructions did you follow to get this far?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
MRTG cfgmaker Error SNMPwalk problem manish_2479 Linux - Networking 3 07-10-2007 03:48 PM
cfgmaker for mrtg. pkrishna10 Linux - Wireless Networking 0 12-05-2004 02:02 AM
cfgmaker for squid assooy Red Hat 3 07-28-2004 11:37 AM
mrtg cfgmaker tarak4u Linux - Networking 2 03-06-2004 04:59 PM
MRTG cfgmaker need help G-Fox Linux - Networking 2 10-03-2003 08:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration