Hello

 

I have yet another problem..

This time MRTG

 

The mrtg.conf file has decided to purge itself ( from 5 MB to 20 kB).

Every host entry has become empty.

Look below:

----------------------------------------------------------------------------
------------------------------------------------

 

# Created by 

# /usr/bin/cfgmaker --output=/usr/local/nagios/etc/mrtg.cfg --global 'Forks:
8' --global 'HtmlDir: /usr/local/nagios/share/mrtg' --global 'ImageDir:
/usr/local/nagios/share/mrtg' --global 'Options[_]: growright,bits' --global
'LogDir: /usr/local/nagios/var/mrtg' --global 'LogFormat: rrdtool' --global
'IconDir: /images/mrtg' pub...@localhost [email protected]
[email protected] [email protected]
[email protected] [email protected] [email protected]
[email protected] [email protected] [email protected]
[email protected] [email protected] [email protected]
[email protected] [email protected] SNMP-....

 

 

### Global Config Options

 

#  for UNIX

# WorkDir: /home/http/mrtg

 

#  for Debian

#WorkDir: /var/www/mrtg # Patched by mrtgconfgen.pl

 

#  or for NT

# WorkDir: c:\mrtgdata

 

### Global Defaults

 

#  to get bits instead of bytes and graphs growing to the right

# Options[_]: growright, bits

 

EnableIPv6: no

Forks: 8

HtmlDir: /usr/local/nagios/share/mrtg

ImageDir: /usr/local/nagios/share/mrtg

Options[_]: growright,bits

LogDir: /usr/local/nagios/var/mrtg

LogFormat: rrdtool

IconDir: /images/mrtg

 

######################################################################

# System: t-monitoring-01

# Description: Linux t-monitoring-01 2.6.24-23-server #1 SMP Thu Nov 27
19:19:15 UTC 2008 i686

# Contact: Root <r...@localhost> (configure /etc/snmp/snmpd.local.conf)

# Location: Unknown (configure /etc/snmp/snmpd.local.conf)

######################################################################

 

 

 

######################################################################

# System: 

# Description: 

# Contact: 

# Location: 

######################################################################

 

 

 

######################################################################

# System: 

# Description: 

# Contact: 

# Location: 

######################################################################

 

 

And so on...

 

----------------------------------------------------------------------------
------------------------------------------------

 

When I try:

/usr/local/nagios/bin/mrtgconfgen.pl full

I get:

 

Mon Aug 10 08:48:04 2009 Starting

Mon Aug 10 08:48:04 2009 Job start on Master Monitoring Server with 61
communities

Mon Aug 10 08:48:04 2009 mrtgconfgen finished, but jobs may still be running

SNMP Error:

Received SNMP response with error code

  error status: noSuchName

  index 1 (OID: 1.3.6.1.2.1.1.9.1.4.8)

SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)

                  community: "public"

                 request ID: 1734375448

                PDU bufsize: 8000 bytes

                    timeout: 2s

                    retries: 5

                    backoff: 1)

 at /usr/local/nagios/perl/lib/SNMP_util.pm line 742

 

 

When I restore the config gile from backup and reload the server - all looks
well.

Except that OpsView cannot modify the file anymore. So no new hosts can be
added.

When I run:

/usr/local/nagios/bin/mrtg_genstats.sh

there are no errors.

 

But when I run: 

/usr/local/nagios/bin/mrtgconfgen.pl full

I get the same error and the file is purged again.

 

Can anyone help?

 

 

Regards

Michał Zyzak

 

_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users

Reply via email to