snmpwalk works on EdgeSwitch 16 XG but check_snmp fails
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: snmpwalk works on EdgeSwitch 16 XG but check_snmp fails
Can you show the definition for your check_snmp command?
Re: snmpwalk works on EdgeSwitch 16 XG but check_snmp fails
Here it is. I believe I haven't touched it at all.
Code: Select all
define command {
command_name check_snmp
command_line $USER1$/check_snmp -H $HOSTADDRESS$ $ARG1$
}
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: snmpwalk works on EdgeSwitch 16 XG but check_snmp fails
Looking back, you ran it from the CLI with -C firmasnmp but in your command you have -C testsnmp
Re: snmpwalk works on EdgeSwitch 16 XG but check_snmp fails
Yeah, I did because I have no such SNMP community called "testsnmp" - that's just a placeholder to not reveal my company's name. So I forgot to edit that line because I didn't want to reveal the company's name where I work - oh well.
EDIT: replaced that to "testsnmp" in the previous post.
EDIT: replaced that to "testsnmp" in the previous post.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: snmpwalk works on EdgeSwitch 16 XG but check_snmp fails
The only other thing I can think that could be the problem is if 10.2.1.35 isn't really the address specified for the host net-sw-6
Re: snmpwalk works on EdgeSwitch 16 XG but check_snmp fails
That's what I thought at first. Here's some images to assure you that the address is in fact correct.
Ubiquiti's login page at 10.2.1.35:
Ubiquiti's other checks in Nagios:
And here's the SNMP community settings for the switch:
Here is the image album in case the formatting gets messed up:
https://imgur.com/a/CHD6Z5V
Ubiquiti's login page at 10.2.1.35:
Ubiquiti's other checks in Nagios:
And here's the SNMP community settings for the switch:
Here is the image album in case the formatting gets messed up:
https://imgur.com/a/CHD6Z5V
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: snmpwalk works on EdgeSwitch 16 XG but check_snmp fails
But what is set in the address field in the Nagios configuration file for the host net-sw-6?
Re: snmpwalk works on EdgeSwitch 16 XG but check_snmp fails
Now I feel like an idiot... The IP address was incorrect all along. I thought I had already checked it, and I most likely had, but for some reason I didn't notice the typo:
I've now corrected it to 10.2.1.35 and the checks are working:
Code: Select all
define host {
use generic-switch
host_name net-sw-6
alias Ubiquiti EdgeSwitch ES-16-XG - Upstairs
address 10.2.1.25
hostgroups switches
icon_image ubiquiti.png
}
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: snmpwalk works on EdgeSwitch 16 XG but check_snmp fails
glad to hear it is resolved!!!Ulfandu wrote:Now I feel like an idiot... The IP address was incorrect all along. I thought I had already checked it, and I most likely had, but for some reason I didn't notice the typo:
I've now corrected it to 10.2.1.35 and the checks are working:Code: Select all
define host { use generic-switch host_name net-sw-6 alias Ubiquiti EdgeSwitch ES-16-XG - Upstairs address 10.2.1.25 hostgroups switches icon_image ubiquiti.png }
Locking thread