im so confused how to set up snmp running centos 5.2
can anybody help me.
setting up snmp
Moderators: Developers, Moderators
this is some of setting of snmp.conf .. what do i need to change here..
# First, map the community name "public" into a "security name"
# sec.name source community
com2sec notConfigUser default public
####
# Second, map the security name into a group name:
# groupName securityModel securityName
group notConfigGroup v1 notConfigUser
group notConfigGroup v2c notConfigUser
####
# Third, create a view for us to let the group have rights to:
# Make at least snmpwalk -v 1 localhost -c public system fast again.
# name incl/excl subtree mask(optional)
view systemview included .1.3.6.1.2.1.1
view systemview included .1.3.6.1.2.1.25.1.1
view systemview included .1.3.6.1
####
# Finally, grant the group read-only access to the systemview view.
# group context sec.model sec.level prefix read write notif
access notConfigGroup "" any noauth exact systemview none none
# -----------------------------------------------------------------------------
# Here is a commented out example configuration that allows less
# restrictive access.
# YOU SHOULD CHANGE THE "COMMUNITY" TOKEN BELOW TO A NEW KEYWORD ONLY
# KNOWN AT YOUR SITE. YOU *MUST* CHANGE THE NETWORK TOKEN BELOW TO
# SOMETHING REFLECTING YOUR LOCAL NETWORK ADDRESS SPACE.
## sec.name source community
#com2sec local localhost COMMUNITY
#com2sec mynetwork NETWORK/24 COMMUNITY
## group.name sec.model sec.name
#group MyRWGroup any local
#group MyROGroup any mynetwork
#
#group MyRWGroup any otherv3user
#...
## incl/excl subtree mask
#view all included .1 80
## -or just the mib2 tree-
#view mib2 included .iso.org.dod.internet.mgmt.mib-2 fc
## context sec.model sec.level prefix read write notif
#access MyROGroup "" any noauth 0 all none none
#access MyRWGroup "" any noauth 0 all all all
###############################################################################
# Sample configuration to make net-snmpd RFC 1213.
# Unfortunately v1 and v2c don't allow any user based authentification, so
# opening up the default config is not an option from a security point.
#
# WARNING: If you uncomment the following lines you allow write access to your
# snmpd daemon from any source! To avoid this use different names for your
# community or split out the write access to a different community and
# restrict it to your local network.
# Also remember to comment the syslocation and syscontact parameters later as
# otherwise they are still read only (see FAQ for net-snmp).
#
# First, map the community name "public" into a "security name"
# sec.name source community
#com2sec notConfigUser default public
# First, map the community name "public" into a "security name"
# sec.name source community
com2sec notConfigUser default public
####
# Second, map the security name into a group name:
# groupName securityModel securityName
group notConfigGroup v1 notConfigUser
group notConfigGroup v2c notConfigUser
####
# Third, create a view for us to let the group have rights to:
# Make at least snmpwalk -v 1 localhost -c public system fast again.
# name incl/excl subtree mask(optional)
view systemview included .1.3.6.1.2.1.1
view systemview included .1.3.6.1.2.1.25.1.1
view systemview included .1.3.6.1
####
# Finally, grant the group read-only access to the systemview view.
# group context sec.model sec.level prefix read write notif
access notConfigGroup "" any noauth exact systemview none none
# -----------------------------------------------------------------------------
# Here is a commented out example configuration that allows less
# restrictive access.
# YOU SHOULD CHANGE THE "COMMUNITY" TOKEN BELOW TO A NEW KEYWORD ONLY
# KNOWN AT YOUR SITE. YOU *MUST* CHANGE THE NETWORK TOKEN BELOW TO
# SOMETHING REFLECTING YOUR LOCAL NETWORK ADDRESS SPACE.
## sec.name source community
#com2sec local localhost COMMUNITY
#com2sec mynetwork NETWORK/24 COMMUNITY
## group.name sec.model sec.name
#group MyRWGroup any local
#group MyROGroup any mynetwork
#
#group MyRWGroup any otherv3user
#...
## incl/excl subtree mask
#view all included .1 80
## -or just the mib2 tree-
#view mib2 included .iso.org.dod.internet.mgmt.mib-2 fc
## context sec.model sec.level prefix read write notif
#access MyROGroup "" any noauth 0 all none none
#access MyRWGroup "" any noauth 0 all all all
###############################################################################
# Sample configuration to make net-snmpd RFC 1213.
# Unfortunately v1 and v2c don't allow any user based authentification, so
# opening up the default config is not an option from a security point.
#
# WARNING: If you uncomment the following lines you allow write access to your
# snmpd daemon from any source! To avoid this use different names for your
# community or split out the write access to a different community and
# restrict it to your local network.
# Also remember to comment the syslocation and syscontact parameters later as
# otherwise they are still read only (see FAQ for net-snmp).
#
# First, map the community name "public" into a "security name"
# sec.name source community
#com2sec notConfigUser default public
this is what i get when i tried to add a device
occam (172.30.100.115)
SNMP Information
SNMP error
*Create Graphs for this Host
Devices [edit: occam]
Description
Give this host a meaningful description.
Hostname
Fully qualified hostname or IP address for this device.
Host Template
Choose what type of host, host template this is. The host template will govern what kinds of data should be gathered from this type of host. None Cisco Router Generic SNMP-enabled Host Karlnet Wireless Bridge Local Linux Machine Netware 4/5 Server ucd/net SNMP Host Windows 2000/XP Host
Notes
Enter notes to this host.
Disable Host
Check this box to disable all checks for this host. Disable Host
Availability/Reachability Options
Downed Device Detection
The method Cacti will use to determine if a host is available for polling.
NOTE: It is recommended that, at a minimum, SNMP always be selected. None Ping and SNMP SNMP Ping
Ping Method
The type of ping packet to sent.
NOTE: ICMP on Linux/UNIX requires root privileges. ICMP Ping TCP Ping UDP Ping
Ping Port
TCP or UDP port to attempt connection.
Ping Timeout Value
The timeout value to use for host ICMP and UDP pinging. This host SNMP timeout value applies for SNMP pings.
Ping Retry Count
The number of times Cacti will attempt to ping a host before failing.
SNMP Options
SNMP Version
Choose the SNMP version for this device. Not In Use Version 1 Version 2 Version 3
SNMP Community
SNMP read community for this device.
SNMP Username (v3)
SNMP v3 username for this device.
SNMP Password (v3)
SNMP v3 password for this device.
SNMP Auth Protocol (v3)
Choose the SNMPv3 Authorization Protocol. MD5 (default) SHA
SNMP Privacy Passphrase (v3)
Choose the SNMPv3 Privacy Passphrase.
SNMP Privacy Protocol (v3)
Choose the SNMPv3 Privacy Protocol. [None] DES (default) AES
SNMP Context
Enter the SNMP Context to use for this device.
SNMP Port
Enter the UDP port number to use for SNMP (default is 161).
SNMP Timeout
The maximum number of milliseconds Cacti will wait for an SNMP response (does not work with php-snmp support).
Maximum OID's Per Get Request
Specified the number of OID's that can be obtained in a single SNMP Get request.
NOTE: This feature only works when using Spine
Data Query Debug Information
+ Running data query [2].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/net-snmp_disk.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.2021.9.1.1'
+ No SNMP data returned
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/net-snmp_disk.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/net-snmp_disk.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/net-snmp_disk.xml'
Associated Graph Templates
Graph Template Name Status
1) ucd/net - CPU Usage Not Being Graphed
2) ucd/net - Load Average Not Being Graphed
3) ucd/net - Memory Usage Not Being Graphed
Add Graph Template: Cisco - CPU Usage Host MIB - Logged in Users Host MIB - Processes Linux - Memory Usage Netware - File System Activity Netware - File System Cache Netware - Logged In Users Netware - Open Files SNMP - Generic OID Template ucd/net - CPU Usage ucd/net - Load Average ucd/net - Memory Usage Unix - Load Average Unix - Logged in Users Unix - Ping Latency Unix - Processes
Associated Data Queries
Data Query Name Debugging Re-Index Method Status
1) SNMP - Interface Statistics (Verbose Query) Uptime Goes Backwards Success [0 Items, 0 Rows]
2) ucd/net - Get Monitored Partitions (Verbose Query) Uptime Goes Backwards Success [0 Items, 0 Rows]
Add Data Query: Karlnet - Wireless Bridge Statistics Netware - Get Available Volumes Netware - Get Processor Information SNMP - Get Mounted Partitions SNMP - Get Processor Information Unix - Get Mounted Partitions Re-Index Method: None Uptime Goes Backwards Index Count Changed Verify All Fields
occam (172.30.100.115)
SNMP Information
SNMP error
*Create Graphs for this Host
Devices [edit: occam]
Description
Give this host a meaningful description.
Hostname
Fully qualified hostname or IP address for this device.
Host Template
Choose what type of host, host template this is. The host template will govern what kinds of data should be gathered from this type of host. None Cisco Router Generic SNMP-enabled Host Karlnet Wireless Bridge Local Linux Machine Netware 4/5 Server ucd/net SNMP Host Windows 2000/XP Host
Notes
Enter notes to this host.
Disable Host
Check this box to disable all checks for this host. Disable Host
Availability/Reachability Options
Downed Device Detection
The method Cacti will use to determine if a host is available for polling.
NOTE: It is recommended that, at a minimum, SNMP always be selected. None Ping and SNMP SNMP Ping
Ping Method
The type of ping packet to sent.
NOTE: ICMP on Linux/UNIX requires root privileges. ICMP Ping TCP Ping UDP Ping
Ping Port
TCP or UDP port to attempt connection.
Ping Timeout Value
The timeout value to use for host ICMP and UDP pinging. This host SNMP timeout value applies for SNMP pings.
Ping Retry Count
The number of times Cacti will attempt to ping a host before failing.
SNMP Options
SNMP Version
Choose the SNMP version for this device. Not In Use Version 1 Version 2 Version 3
SNMP Community
SNMP read community for this device.
SNMP Username (v3)
SNMP v3 username for this device.
SNMP Password (v3)
SNMP v3 password for this device.
SNMP Auth Protocol (v3)
Choose the SNMPv3 Authorization Protocol. MD5 (default) SHA
SNMP Privacy Passphrase (v3)
Choose the SNMPv3 Privacy Passphrase.
SNMP Privacy Protocol (v3)
Choose the SNMPv3 Privacy Protocol. [None] DES (default) AES
SNMP Context
Enter the SNMP Context to use for this device.
SNMP Port
Enter the UDP port number to use for SNMP (default is 161).
SNMP Timeout
The maximum number of milliseconds Cacti will wait for an SNMP response (does not work with php-snmp support).
Maximum OID's Per Get Request
Specified the number of OID's that can be obtained in a single SNMP Get request.
NOTE: This feature only works when using Spine
Data Query Debug Information
+ Running data query [2].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/net-snmp_disk.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.2021.9.1.1'
+ No SNMP data returned
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/net-snmp_disk.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/net-snmp_disk.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/net-snmp_disk.xml'
Associated Graph Templates
Graph Template Name Status
1) ucd/net - CPU Usage Not Being Graphed
2) ucd/net - Load Average Not Being Graphed
3) ucd/net - Memory Usage Not Being Graphed
Add Graph Template: Cisco - CPU Usage Host MIB - Logged in Users Host MIB - Processes Linux - Memory Usage Netware - File System Activity Netware - File System Cache Netware - Logged In Users Netware - Open Files SNMP - Generic OID Template ucd/net - CPU Usage ucd/net - Load Average ucd/net - Memory Usage Unix - Load Average Unix - Logged in Users Unix - Ping Latency Unix - Processes
Associated Data Queries
Data Query Name Debugging Re-Index Method Status
1) SNMP - Interface Statistics (Verbose Query) Uptime Goes Backwards Success [0 Items, 0 Rows]
2) ucd/net - Get Monitored Partitions (Verbose Query) Uptime Goes Backwards Success [0 Items, 0 Rows]
Add Data Query: Karlnet - Wireless Bridge Statistics Netware - Get Available Volumes Netware - Get Processor Information SNMP - Get Mounted Partitions SNMP - Get Processor Information Unix - Get Mounted Partitions Re-Index Method: None Uptime Goes Backwards Index Count Changed Verify All Fields
Who is online
Users browsing this forum: No registered users and 1 guest