How configure snmp on linux machine ?

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

tigercrew
Posts: 23
Joined: Tue Apr 04, 2006 5:13 am

How configure snmp on linux machine ?

Post by tigercrew »

Hello,
I have 2 linux machine (one server and one client) and on the server i have snmp not in use but I have some graphics
And on my client i have snmp error and no graphics.
Could you help me please ?

I have mandriva 2006.
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

try with this (and only this) in /etc/snmp/snmpd.conf :

Code: Select all

rocommunity public
includeAllDisks
You'll be able to graph network interfaces, CPU, load average, filesystems usage, memory, swap, logged in users and number of processes.
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
tigercrew
Posts: 23
Joined: Tue Apr 04, 2006 5:13 am

Post by tigercrew »

i haven't the file snmp.conf
tigercrew
Posts: 23
Joined: Tue Apr 04, 2006 5:13 am

Post by tigercrew »

I have create the file but now i have SNMP Error
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

tigercrew wrote:i haven't the file snmp.conf
Should it be snmpd.conf instead?
Reinhard
tigercrew
Posts: 23
Joined: Tue Apr 04, 2006 5:13 am

Post by tigercrew »

i have change the name of the file
But also SNMP error
I have put in SNMP Community : public .But don't work
What do you put in SNMP version because i don't know what is the version
And i have no graphics

(i'm french, sorry for my english)
qwertz
Cacti User
Posts: 98
Joined: Thu Feb 16, 2006 9:20 am

Post by qwertz »

Hello,

this link should solve your problem:
http://christian.caleca.free.fr/snmp/install_snmp1.htm

Did you install snmpd ?
it doesn't seem to be the case.
just try to install NET-SNMP and NET-SNMP UTILS packets



Bonne chance cher ami

REgards
QWertz
tigercrew
Posts: 23
Joined: Tue Apr 04, 2006 5:13 am

Post by tigercrew »

Salut
tu parle francais ?
As tu msn pour m'aider car ca concerne mon BTS et je galere un peu
Merci
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Is the SNMP daemon started ?

Try this :

Code: Select all

# /etc/init.d/snmpd status
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
tigercrew
Posts: 23
Joined: Tue Apr 04, 2006 5:13 am

Post by tigercrew »

i haven't the demon snmpd
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Can you try this :

Code: Select all

$ rpm -qa | grep -i snmp
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
tigercrew
Posts: 23
Joined: Tue Apr 04, 2006 5:13 am

Post by tigercrew »

i have try this command but no result.
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Then you need to install the SNMP packages.
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
tigercrew
Posts: 23
Joined: Tue Apr 04, 2006 5:13 am

Post by tigercrew »

i have install snmp (by urpmi)
but no service snmpd start
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Can you try this :

Code: Select all

$ rpm -qa | grep -i snmp
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests