LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-27-2010, 07:19 AM   #1
golden_boy615
Member
 
Registered: Dec 2008
Distribution: Ubuntu Fedora
Posts: 445

Rep: Reputation: 17
linux snmp problem


hello
I am using orion snmp monitor in my network and I have no problem with windows systems but linux systems have some problem first of all snmp monitor shows cpu load on 100% all the time that is completely wrong and secong my snmp monitor can just show cpu and memory and response time information of linux systems and not disk information and nothing more.
this is my /etc/snmp/snmpd.conf file content:

com2sec paranoid default public
group MyROSystem v1 paranoid
group MyROSystem v2c paranoid
group MyROSystem usm paranoid
group MyROGroup v1 readonly
group MyROGroup v2c readonly
group MyROGroup usm readonly
group MyRWGroup v1 readwrite
group MyRWGroup v2c readwrite
group MyRWGroup usm readwrite
view all included .1 80
view system included .iso.org.dod.internet.mgmt.mib-2.system
access MyROSystem "" any noauth exact system none none
access MyROGroup "" any noauth exact all none none
access MyRWGroup "" any noauth exact all all none
syslocation Unknown (configure /etc/snmp/snmpd.local.conf)
syscontact Root <root@localhost> (configure /etc/snmp/snmpd.local.conf)
interface eth0
agentaddress 192.168.8.200:161


can any body tell what is wrong with my snmp agents.

Thank you for any help.
 
Old 03-27-2010, 11:08 AM   #2
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,249

Rep: Reputation: 144Reputation: 144
Try with this sample configuration file, may be helpful, the commented lines have used for snmptrap and this is a snmpd agent side configuration
PHP Code:
rocommunity wvnt
#trapcommunity public
#trap2sink 172.16.11.79 public 166
#master agentx
#agentSecName disman
#createUser disman MD5 omnibis@1
#rouser disman auth

com2sec   local       localhost         public
com2sec   mynetwork   172.16.0.0/16      wvnt
#LinkUpDownNotifications yes
group    MyRWGroup    v1           local
group    MyRWGroup    v2c          local
group    MyROGroup    v1           mynetwork
group    MyROGroup    v2c          mynetwork

view all     included  .1                               80

access MyROGroup    
""        any         noauth      exact    all     none    none
access MyRWGroup    
""        any         noauth      exact    all     all     none

#proc sendmail 10 1
proc httpd 10 1

#Generic 0 1  ColdStart
#Generic 1 10 WarmStart
#Generic 2 10 IFDown
#Generic 3 10 IFUp

disk    /            50%
disk    /usr         80%
disk    /home        40%
disk    /var         70%
disk    /opt         80%
#monitor -S -D -u disman -r 60 -o dskPath -o dskAvail -o dskTotal -o dskErrorMsg "Harddisk" dskErrorFlag 0 1
#monitor -D -u disman -r 60 -o tcpCurrEstab -o tcpPassiveOpens -o tcpActiveOpens -o tcpAttemptFails "TCP Established" tcpCurrEstab > 10
#monitor -D -u disman -r 10 -i -o prNames.1 -o prCount.1 -o prErrMessage.1 "Process Httpd" prErrorFlag.1 0 1 
#monitor -u disman -r 10 -o loadaveLoad -o loadaveErrMessage "AvgCPU Load" loadaveErrorFlag 0 1
#monitor -u disman -r 10 -o memTotalReal.0 -o memAvailReal.0 "Real Memory" memAvailReal.0 < 10000
#monitor -u disman -r 10 -o memErrorName -o memSwapErrorMsg "Swap Memory" memSwapError = 0 1
#monitor -D -u disman -r 10 "Network Traffic" ifInOctets > 5000000
#monitor -D -u disman -r 10 -o hrSWRunName "High Process Memory" hrSWRunPerfMem > 1000000
# Check for loads:
load 12 8 6
#logmatch LoginFailure /var/log/secure 10 Failed password 
#notificationEvent TESTLOGMATCH 1.3.6.1.4.1.2021.16 
#monitor -s -D -r 10 -e TESTLOGMATCH -o logMatchName -o logMatchFileName -o logMatchCurrentCount -o logMatchRegEx "Log Match" != logMatchCurrentCount -u disman
pass .1.3.6.1.4.1.4413.4.1 /usr/bin/ucd5820stat 

Last edited by kirukan; 03-27-2010 at 11:10 AM.
 
Old 03-28-2010, 02:00 AM   #3
golden_boy615
Member
 
Registered: Dec 2008
Distribution: Ubuntu Fedora
Posts: 445

Original Poster
Rep: Reputation: 17
I tested it but it did not any change.
CPU Load is 100% again and non of other information of my Linux systems is added.

Thank you for your help.
 
Old 03-28-2010, 04:46 AM   #4
golden_boy615
Member
 
Registered: Dec 2008
Distribution: Ubuntu Fedora
Posts: 445

Original Poster
Rep: Reputation: 17
this is my new config file:
Quote:
com2sec local localhost public
group MyRWGroup v1 local
group MyRWGroup v2c local
group MyROGroup v1 192.168.8.0/24
group MyROGroup v2c 192.168.8.0/24
view all included .1 80
access MyROGroup "" any noauth exact all none none
access MyRWGroup "" any noauth exact all all none
proc httpd 10 1
disk / 50%
disk /usr 80%
disk /home 40%
disk /var 70%
disk /opt 80%
load 12 8 6
pass .1.3.6.1.4.1.4413.4.1 /usr/bin/ucd5820stat
interface eth0
agentaddress 192.168.8.204:161
and these is my output commands fo querying local machine :
Quote:
[root@localhost ~]# snmpwalk -c public -v 1 127.0.0.1 system
Timeout: No Response from 192.168.8.204
[root@localhost ~]# snmpwalk -c public -v 1 127.0.0.1 interface
Timeout: No Response from 192.168.8.204
and this my output command of querying other linux systems from my local machine:
Quote:
[root@localhost ~]# snmpwalk -c public -v 1 192.168.8.200 interface
End of MIB
[root@localhost ~]# snmpwalk -c public -v 1 192.168.8.200 system
SNMPv2-MIB::sysDescr.0 = STRING: Linux teimoori 2.6.26-2-686 #1 SMP Wed Nov 4 20:45:37 UTC 2009 i686
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (8474996) 23:32:29.96
SNMPv2-MIB::sysContact.0 = STRING: Root <root@localhost> (configure /etc/snmp/snmpd.local.conf)
SNMPv2-MIB::sysName.0 = STRING: teimoori
SNMPv2-MIB::sysLocation.0 = STRING: Unknown (configure /etc/snmp/snmpd.local.conf)
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORID.1 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance
SNMPv2-MIB::sysORID.2 = OID: SNMP-MPD-MIB::snmpMPDCompliance
SNMPv2-MIB::sysORID.3 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance
SNMPv2-MIB::sysORID.4 = OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.5 = OID: TCP-MIB::tcpMIB
SNMPv2-MIB::sysORID.6 = OID: IP-MIB::ip
SNMPv2-MIB::sysORID.7 = OID: UDP-MIB::udpMIB
SNMPv2-MIB::sysORID.8 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup
SNMPv2-MIB::sysORDescr.1 = STRING: The SNMP Management Architecture MIB.
SNMPv2-MIB::sysORDescr.2 = STRING: The MIB for Message Processing and Dispatching.
SNMPv2-MIB::sysORDescr.3 = STRING: The management information definitions for the SNMP User-based Security Model.
SNMPv2-MIB::sysORDescr.4 = STRING: The MIB module for SNMPv2 entities
SNMPv2-MIB::sysORDescr.5 = STRING: The MIB module for managing TCP implementations
SNMPv2-MIB::sysORDescr.6 = STRING: The MIB module for managing IP and ICMP implementations
SNMPv2-MIB::sysORDescr.7 = STRING: The MIB module for managing UDP implementations
SNMPv2-MIB::sysORDescr.8 = STRING: View-based Access Control Model for SNMP.
SNMPv2-MIB::sysORUpTime.1 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.2 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.3 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.4 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.5 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.6 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.7 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.8 = Timeticks: (0) 0:00:00.00
End of MIB
that this is it's config file:
Quote:
com2sec paranoid default public
group MyROSystem v1 paranoid
group MyROSystem v2c paranoid
group MyROSystem usm paranoid
group MyROGroup v1 readonly
group MyROGroup v2c readonly
group MyROGroup usm readonly
group MyRWGroup v1 readwrite
group MyRWGroup v2c readwrite
group MyRWGroup usm readwrite
view all included .1 80
view system included .iso.org.dod.internet.mgmt.mib-2.system
access MyROSystem "" any noauth exact system none none
access MyROGroup "" any noauth exact all none none
access MyRWGroup "" any noauth exact all all none
syslocation Unknown (configure /etc/snmp/snmpd.local.conf)
syscontact Root <root@localhost> (configure /etc/snmp/snmpd.local.conf)
interface eth0
agentaddress 192.168.8.200:161
thanks for any help.
 
Old 03-28-2010, 09:10 AM   #5
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,249

Rep: Reputation: 144Reputation: 144
Quote:
agentaddress 192.168.8.204:161
Just comment this line and check at your localhost
 
Old 03-28-2010, 02:24 PM   #6
golden_boy615
Member
 
Registered: Dec 2008
Distribution: Ubuntu Fedora
Posts: 445

Original Poster
Rep: Reputation: 17
I did it but it does not work again:
my new snmpd.conf:
Quote:
com2sec paranoid default public
group MyROSystem v1 paranoid
group MyROSystem v2c paranoid
group MyROSystem usm paranoid
group MyROGroup v1 readonly
group MyROGroup v2c readonly
group MyROGroup usm readonly
group MyRWGroup v1 readwrite
group MyRWGroup v2c readwrite
group MyRWGroup usm readwrite
view all included .1 80
view system included .iso.org.dod.internet.mgmt.mib-2.system
access MyROSystem "" any noauth exact system none none
access MyROGroup "" any noauth exact all none none
access MyRWGroup "" any noauth exact all all none
syslocation Unknown (configure /etc/snmp/snmpd.local.conf)
syscontact Root <root@localhost> (configure /etc/snmp/snmpd.local.conf)
interface eth0
#agentaddress 192.168.8.204:161
Quote:
[root@localhost ~]# /etc/init.d/snmpd restart
Stopping snmpd: [ OK ]
Starting snmpd: [ OK ]
[root@localhost ~]# snmpwalk -c public -v 1 127.0.0.1 interface
End of MIB
[root@localhost ~]# snmpwalk -c public -v 1 localhost interface
End of MIB
what else do you think I forget?
 
Old 03-29-2010, 12:57 AM   #7
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,249

Rep: Reputation: 144Reputation: 144
Quote:
com2sec paranoid default public
group MyROSystem v1 paranoid
group MyROSystem v2c paranoid
group MyROSystem usm paranoid
group MyROGroup v1 readonly
group MyROGroup v2c readonly
group MyROGroup usm readonly
group MyRWGroup v1 readwrite
group MyRWGroup v2c readwrite
group MyRWGroup usm readwrite
view all included .1 80
view system included .iso.org.dod.internet.mgmt.mib-2.system
access MyROSystem "" any noauth exact system none none
access MyROGroup "" any noauth exact all none none
access MyRWGroup "" any noauth exact all all none
syslocation Unknown (configure /etc/snmp/snmpd.local.conf)
syscontact Root <root@localhost> (configure /etc/snmp/snmpd.local.conf)
configuration seems OK, check your /etc/hosts
 
Old 03-29-2010, 06:36 AM   #8
golden_boy615
Member
 
Registered: Dec 2008
Distribution: Ubuntu Fedora
Posts: 445

Original Poster
Rep: Reputation: 17
thank you for your attention
this is my /etc/hosts file content:
Quote:
[root@localhost ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost localhost
::1 localhost6.localdomain6 localhost6
anything else that you want to see?
 
Old 04-03-2010, 12:00 AM   #9
golden_boy615
Member
 
Registered: Dec 2008
Distribution: Ubuntu Fedora
Posts: 445

Original Poster
Rep: Reputation: 17
any body please help
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Integrate Mod-Apache-Snmp with Net-SNMP source kirukan Linux - Server 2 05-11-2011 01:48 AM
Net-SNMP writing a Subagent - snmp.conf Unknown token: master AustinMarton Programming 0 12-16-2008 07:34 PM
SNMP master & SNMP client Script for system monitoring ratul_11 Programming 1 12-24-2007 05:32 AM
How to configure ucd-snmp and net-snmp? Tazzmanian Linux - Networking 1 05-27-2005 08:09 AM
snmp (ucd-snmp, net-snmp) markus1982 Linux - Software 1 11-21-2002 10:45 AM


All times are GMT -5. The time now is 05:04 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration