LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   NAGIOS: Mrtg_log unable to open and problems with snmp.cfg (https://www.linuxquestions.org/questions/linux-server-73/nagios-mrtg_log-unable-to-open-and-problems-with-snmp-cfg-4175437924/)

pRemade 11-20-2012 03:52 AM

NAGIOS: Mrtg_log unable to open and problems with snmp.cfg
 
Hello, i'm new to the linux world and this forum so please keep that in mind.

I'm currently configurating a NAGIOS server from scrath, and i've been able to do a lot by myself and guides on the internet. But i've stumbled upon two problems.

One: In the WEB gui for nagios i see an error on my switch. I'm trying to monitor the Bandwidth usage on port one ( will add more ports later on when i get this problem fixed)
The error says; check_mrtgtraf: Unable to open MRTG log file

I've tried to create this logfile by using this guide:

http://www.howtoforge.com/forums/showthread.php?t=48484

but with no luck.


Problem number two is snmp.cfg, i know for sure that snmp is enabled and working, but it seems the coding in my cfg is wrong. I've looked trough several other cfg files on different sites and mine is identical. The error reads as following;

[root@63FANNAGIOS ~]# snmpwalk -v 1 -c public eth1
/etc/snmp/snmp.conf: line 43: Warning: Unknown token: com2sec.
/etc/snmp/snmp.conf: line 44: Warning: Unknown token: com2sec.
/etc/snmp/snmp.conf: line 52: Warning: Unknown token: group.
/etc/snmp/snmp.conf: line 53: Warning: Unknown token: group.
/etc/snmp/snmp.conf: line 54: Warning: Unknown token: group.
/etc/snmp/snmp.conf: line 55: Warning: Unknown token: group.
/etc/snmp/snmp.conf: line 56: Warning: Unknown token: group.
/etc/snmp/snmp.conf: line 57: Warning: Unknown token: group.
/etc/snmp/snmp.conf: line 65: Warning: Unknown token: view.
/etc/snmp/snmp.conf: line 73: Warning: Unknown token: access.
/etc/snmp/snmp.conf: line 74: Warning: Unknown token: access.
/etc/snmp/snmp.conf: line 117: Warning: Unknown token: syslocation.
/etc/snmp/snmp.conf: line 118: Warning: Unknown token: syscontact.
/etc/snmp/snmp.conf: line 405: Warning: Unknown token: pass.
getaddrinfo: eth1 Name or service not known

If someone know what couses these problems i would greatly appriciate that

-Stefan

pRemade 11-22-2012 07:41 AM

bump

nagman 11-23-2012 07:09 AM

Sorry I can't help you. Hope someone else can.
What kind of image are you using?

pRemade 11-26-2012 01:04 AM

bump

IvanMP 12-20-2012 07:55 AM

Try answer this questions ...

1.)is it public the community string you have put in the machine that you monitoring ?
2.)in the snmp.conf see the lines that gave you the error message ... and try gave us something ?


All times are GMT -5. The time now is 05:10 AM.