What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

how to monitor snmp centos7

Votes:

0

Dear Support,

I have problem when monitoring CentOs7. I got this reference : https://kb.paessler.com/en/topic/2023-how-can-i-monitor-systems-running-linux-and-unix-with-prtg from support team. And have been followed all instruction but, PRTG still can not monitor via SNMP. I try to test it using SNMP Tester, and It's work.

Thanks.

centos7 linux snmp

Created on May 30, 2016 9:43:47 AM



10 Replies

Votes:

0

Hello,

What exact error message are you getting when trying to set SNMP sensors to monitor CentOs7?

Created on May 30, 2016 1:00:12 PM by  Isidora Jeremic [Paessler Support]



Votes:

0

Hi, Sorry for late reply.

The error message is : No Such Name (SNMP error # 2)

but when I'm trying to test using SNMP Tester, it's work. here is the result :

Paessler SNMP Tester 5.2.3 Computername: NB-065-LMI Interface: (10.x.x.x)
6/24/2016 2:37:52 PM (1 ms) : Device: subdomain.domain.xxx
6/24/2016 2:37:52 PM (2 ms) : SNMP V2c
6/24/2016 2:37:52 PM (2 ms) : Uptime
6/24/2016 2:37:52 PM (37 ms) : SNMP Datatype: ASN_TIMETICKS
6/24/2016 2:37:52 PM (37 ms) : -------
6/24/2016 2:37:52 PM (38 ms) : DISMAN-EVENT-MIB::sysUpTimeInstance = 249554397 ( 28 days )
6/24/2016 2:37:52 PM (53 ms) : SNMP Datatype: ASN_TIMETICKS
6/24/2016 2:37:52 PM (54 ms) : HOST-RESOURCES-MIB::hrSystemUptime.0 = 1797377583 ( 208 days )
6/24/2016 2:37:52 PM (54 ms) : Done

Created on Jun 24, 2016 7:45:36 AM

Last change on Jun 24, 2016 7:50:17 AM by  Stephan Linke [Paessler Support]



Votes:

0

Hello,

The "No such name" error means that the specified SNMP object was not found. This can have various reasons - changed OID, network connection problems, etc.

Which exact SNMP sensor type are you trying to set?

Are you getting the same error message for all SNMP sensors on this device?

Please use SNMP Tester again and perform a test "Scan Interfaces". Is it showing any error?

Created on Jun 24, 2016 2:39:06 PM by  Isidora Jeremic [Paessler Support]



Votes:

0

Hi,

here is the result of scan interface :

6/27/2016 11:58:54 AM (2 ms) : SNMP V2c
6/27/2016 11:58:54 AM (2 ms) : Scaninterfaces
Scanning Standard Interfaces...
6/27/2016 11:58:54 AM Start Scan
6/27/2016 11:58:54 AM Host: 103.14.74.47
6/27/2016 11:58:54 AM Community: testsnmp
6/27/2016 11:58:54 AM SNMP Version: V2
6/27/2016 11:58:54 AM Delay: 0
6/27/2016 11:58:54 AM Force32: No
6/27/2016 11:58:54 AM Single Get: No
6/27/2016 11:58:54 AM GET: 1.3.6.1.2.1.1.3.0
6/27/2016 11:58:54 AM Try 1
6/27/2016 11:58:54 AM DoRequest 0
6/27/2016 11:58:54 AM Init Session
6/27/2016 11:58:54 AM Host: 103.14.74.47:161
6/27/2016 11:58:54 AM Timeout: 2000000
6/27/2016 11:58:54 AM Version: 2
6/27/2016 11:58:54 AM Open Session
6/27/2016 11:58:54 AM Send Request
6/27/2016 11:58:54 AM Send Done
6/27/2016 11:58:54 AM Start 51878368
6/27/2016 11:58:54 AM Done 51878368 Status=0
6/27/2016 11:58:54 AM 0 ASN_COUNTER,ASN_TIMETICKS: 274521272
6/27/2016 11:58:54 AM GET: 1.3.6.1.2.1.2.1.0
6/27/2016 11:58:54 AM Try 1
6/27/2016 11:58:54 AM DoRequest 0
6/27/2016 11:58:54 AM Init Session
6/27/2016 11:58:54 AM Host: 103.14.74.47:161
6/27/2016 11:58:54 AM Timeout: 2000000
6/27/2016 11:58:54 AM Version: 2
6/27/2016 11:58:54 AM Open Session
6/27/2016 11:58:54 AM Send Request
6/27/2016 11:58:54 AM Send Done
6/27/2016 11:58:54 AM Start 51878368
6/27/2016 11:58:54 AM Done 51878368 Status=0
6/27/2016 11:58:54 AM 0 SNMP_ERR_NOSUCHOBJECT
6/27/2016 11:58:54 AM Test 64bit
6/27/2016 11:58:54 AM GET NEXT: 1.3.6.1.2.1.31.1.1.1.6
6/27/2016 11:58:54 AM DoRequest 0
6/27/2016 11:58:54 AM Init Session
6/27/2016 11:58:54 AM Host: 103.14.74.47:161
6/27/2016 11:58:54 AM Timeout: 2000000
6/27/2016 11:58:54 AM Version: 2
6/27/2016 11:58:54 AM Open Session
6/27/2016 11:58:54 AM Send Request
6/27/2016 11:58:54 AM Send Done
6/27/2016 11:58:54 AM Start 51878368
6/27/2016 11:58:56 AM Done 51878368 Status=2
6/27/2016 11:58:56 AM DoRequest 0
6/27/2016 11:58:56 AM Init Session
6/27/2016 11:58:56 AM Host: 103.14.74.47:161
6/27/2016 11:58:56 AM Timeout: 2000000
6/27/2016 11:58:56 AM Version: 2
6/27/2016 11:58:56 AM Open Session
6/27/2016 11:58:56 AM Send Request
6/27/2016 11:58:56 AM Send Done
6/27/2016 11:58:56 AM Start 51878368
6/27/2016 11:58:56 AM Done 51878368 Status=0
6/27/2016 11:58:56 AM 0 SNMP_ERR_ENDOFMIBVIEW
6/27/2016 11:58:56 AM 64bit NOT available
6/27/2016 11:58:56 AM GET NEXT: 1.3.6.1.2.1.2.2.1.2
6/27/2016 11:58:56 AM DoRequest 0
6/27/2016 11:58:56 AM Init Session
6/27/2016 11:58:56 AM Host: 103.14.74.47:161
6/27/2016 11:58:56 AM Timeout: 2000000
6/27/2016 11:58:56 AM Version: 2
6/27/2016 11:58:56 AM Open Session
6/27/2016 11:58:56 AM Send Request
6/27/2016 11:58:56 AM Send Done
6/27/2016 11:58:56 AM Start 51878368
6/27/2016 11:58:56 AM Done 51878368 Status=0
6/27/2016 11:58:56 AM 0 ASN_COUNTER,ASN_TIMETICKS: 1822344679
6/27/2016 11:58:56 AM Current: 1.3.6.1.2.1.25.1.1.0
6/27/2016 11:58:56 AM GET NEXT: 1.3.6.1.2.1.25.1.1.0
6/27/2016 11:58:56 AM DoRequest 0
6/27/2016 11:58:56 AM Init Session
6/27/2016 11:58:56 AM Host: 103.14.74.47:161
6/27/2016 11:58:56 AM Timeout: 2000000
6/27/2016 11:58:56 AM Version: 2
6/27/2016 11:58:56 AM Open Session
6/27/2016 11:58:56 AM Send Request
6/27/2016 11:58:56 AM Send Done
6/27/2016 11:58:56 AM Start 51878368
6/27/2016 11:58:56 AM Done 51878368 Status=0
6/27/2016 11:58:56 AM 0 SNMP_ERR_ENDOFMIBVIEW
6/27/2016 11:58:56 AM GetNext=9
Result: #O49

Found standard interfaces:
No standard interfaces found

and here is my snmpd.conf

  1. sec.name source community com2sec ConfigUser default testsnmp com2sec AllUser default testsnmp
  1. Map 'ConfigUser' to 'ConfigGroup' for SNMP Version 2c
  2. Map 'AllUser' to 'AllGroup' for SNMP Version 2c
  3. sec.model sec.name group ConfigGroup v2c ConfigUser group AllGroup v2c AllUser
  1. Define 'SystemView', which includes everything under .1.3.6.1.2.1.1 (or .1.3.6.1.2.1.25.1)
  2. Define 'AllView', which includes everything under .1
  3. incl/excl subtree view SystemView included .1.3.6.1.2.1.1 view SystemView included .1.3.6.1.2.1.25.1.1 view AllView included .1
  1. Give 'ConfigGroup' read access to objects in the view 'SystemView'
  2. Give 'AllGroup' read access to objects in the view 'AllView'
  3. context model level prefix read write notify access ConfigGroup "" any noauth exact SystemView none none access AllGroup "" any noauth exact AllView none none

thanks.

Created on Jun 27, 2016 5:13:08 AM

Last change on Jun 27, 2016 5:13:08 AM



Votes:

2

Hello,

please change

view SystemView included .1.3.6.1.2.1.1

to

view SystemView included .1.3.6.1

Does that help?

Created on Jun 27, 2016 1:05:14 PM by  Isidora Jeremic [Paessler Support]

Last change on Jun 27, 2016 1:06:45 PM by  Isidora Jeremic [Paessler Support]



Votes:

0

Hi. It's work now.

thanks for your help

Created on Jun 28, 2016 4:54:35 AM



Votes:

0

Still cant browse

view SystemView included .1.3.6.1 view AllView included .1

5/16/2019 10:21:28 AM Timeout: 2000000
5/16/2019 10:21:28 AM Version: 2
5/16/2019 10:21:28 AM Open Session
5/16/2019 10:21:28 AM Send Request
5/16/2019 10:21:28 AM Send Done
5/16/2019 10:21:28 AM Start 58955096
5/16/2019 10:21:28 AM Done 58955096 Status=0
5/16/2019 10:21:28 AM 0 SNMP_ERR_NOSUCHOBJECT
5/16/2019 10:21:28 AM Test 64bit
5/16/2019 10:21:28 AM GET NEXT: 1.3.6.1.2.1.31.1.1.1.6
5/16/2019 10:21:28 AM DoRequest 0
5/16/2019 10:21:28 AM Init Session
5/16/2019 10:21:28 AM Host: 10.128.26.96:161
5/16/2019 10:21:28 AM Timeout: 2000000
5/16/2019 10:21:28 AM Version: 2
5/16/2019 10:21:28 AM Open Session
5/16/2019 10:21:28 AM Send Request
5/16/2019 10:21:28 AM Send Done
5/16/2019 10:21:28 AM Start 58955048
5/16/2019 10:21:28 AM Done 58955048 Status=0
5/16/2019 10:21:29 AM 0 SNMP_ERR_ENDOFMIBVIEW
5/16/2019 10:21:29 AM 64bit NOT available
5/16/2019 10:21:29 AM GET NEXT: 1.3.6.1.2.1.2.2.1.2
5/16/2019 10:21:29 AM DoRequest 0
5/16/2019 10:21:29 AM Init Session
5/16/2019 10:21:29 AM Host: 10.128.26.96:161
5/16/2019 10:21:29 AM Timeout: 2000000
5/16/2019 10:21:29 AM Version: 2
5/16/2019 10:21:29 AM Open Session
5/16/2019 10:21:29 AM Send Request
5/16/2019 10:21:29 AM Send Done
5/16/2019 10:21:29 AM Start 58955384
5/16/2019 10:21:29 AM Done 58955384 Status=0
5/16/2019 10:21:29 AM 0 ASN_COUNTER,ASN_TIMETICKS: 962718
5/16/2019 10:21:29 AM Current: 1.3.6.1.2.1.25.1.1.0
5/16/2019 10:21:29 AM GET NEXT: 1.3.6.1.2.1.25.1.1.0
5/16/2019 10:21:29 AM DoRequest 0
5/16/2019 10:21:29 AM Init Session
5/16/2019 10:21:29 AM Host: 10.128.26.96:161
5/16/2019 10:21:29 AM Timeout: 2000000
5/16/2019 10:21:29 AM Version: 2
5/16/2019 10:21:29 AM Open Session
5/16/2019 10:21:29 AM Send Request
5/16/2019 10:21:29 AM Send Done
5/16/2019 10:21:29 AM Start 58955096
5/16/2019 10:21:29 AM Done 58955096 Status=0
5/16/2019 10:21:29 AM 0 SNMP_ERR_ENDOFMIBVIEW
5/16/2019 10:21:29 AM GetNext=9
Result: #O49

Found standard interfaces:
No standard interfaces found

Created on May 16, 2019 5:25:11 PM

Last change on May 17, 2019 4:03:41 AM by  Sven Roggenhofer [Paessler Technical Support]



Votes:

0

Hello Astolfo,

What's the SNMP Tester result when selecting the "Read Device Uptime" option under "2. Select Request Type"?

Best regards,
Sebastian

Created on May 17, 2019 9:26:00 AM by  Sebastian Kniege [Paessler Support]



Votes:

0

Hi

I'm trying to setup SNMP on our CentOS 7 (10.192.167.10) server. I want it to send SNMP traps to our Probe installed on 10.192.167.2.

So far I have:

group notConfigGroup v1 notConfigUser group notConfigGroup v2c notConfigUser

view systemview included .1 view systemview included .1.3.6.1.2.1.25.1.1 view AllView included .1 80

access notConfigGroup "" any noauth exact systemview none none

syslocation Unknown (edit /etc/snmp/snmpd.conf) syscontact Root <root@localhost> (configure /etc/snmp/snmp.local.conf)

dontLogTCPWrappersConnects yes

rocommunity public 10.192.167.2/32 agentAddress udp:161 syslocation "Company" syscontact [email protected]

Using Paessler SNMP Tester, I get:

----------------------- New Test ----------------------- Paessler SNMP Tester - 20.2.4 Computername: DDBDC02 Interface: 10.192.167.2 02-07-2020 15:31:07 (12 ms) : Device: 10.192.167.10 02-07-2020 15:31:07 (17 ms) : SNMP v1 02-07-2020 15:31:07 (21 ms) : Uptime 02-07-2020 15:31:09 (2028 ms) : SNMP Datatype: ASN_UNIVERSAL 02-07-2020 15:31:09 (2033 ms) : ------- 02-07-2020 15:31:09 (2037 ms) : DISMAN-EVENT-MIB::sysUpTimeInstance = No response (check: firewalls, routing, snmp settings of device, IPs, SNMP version, community, passwords etc) (SNMP error # -2003) ( 0 seconds ) 02-07-2020 15:31:11 (4044 ms) : SNMP Datatype: ASN_UNIVERSAL 02-07-2020 15:31:11 (4049 ms) : HOST-RESOURCES-MIB::hrSystemUptime.0 = No response (check: firewalls, routing, snmp settings of device, IPs, SNMP version, community, passwords etc) (SNMP error # -2003) ( 0 seconds ) 02-07-2020 15:31:11 (4053 ms) : Done

Can anyone help?

Thanks

Br. Michael

Created on Jul 3, 2020 7:32:42 AM



Votes:

0

Hello Michael,

If you want to receive trap messages in PRTG, you will need to set up a SNMP Trap Receiver Sensor. Also, make sure that SNMP is correctly configured on the target device, and that no firewall is blocking the connection on either side (since you are getting a 2003 error in the tester).


Kind regards,
Sasa Ignjatovic, Tech Support Team

Created on Jul 3, 2020 9:00:38 AM by  Sasa Ignjatovic [Paessler Support]




Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.