Page 1 of 3
Ports not detected on switch using Network switch wizzard
Posted: Fri Jun 30, 2017 2:45 am
by TorqueSteer
Hi,
I'm unable to detect any network ports on one of my switches. I'm using the latest Nagios XI build running from the downloaded template.
I've not had any problems before and have numerous switches setup in the same way. I've tried using the troubleshooting tip
/usr/bin/cfgmaker --show-op-down --noreversedns --zero-speed '100000000' '
[email protected]:161::::2'
But when i try and run it as the root user on the XI console, i get the following error: -bash: /USR/BIN/CFGMAKER: No such file or directory
Any help would be much appreciated! Please excuse me as i'm fairly new to Nagios and linux boxes, so apologies if i've missed out any info.
cheers,
Al
Re: Ports not detected on switch using Network switch wizzar
Posted: Fri Jun 30, 2017 5:55 am
by eloyd
Let's start with this: Is this a new installation or an old one that's been updated? If it's new, when did you download the appliance?
Can you post the output from
please?
And lastly, the output from
Re: Ports not detected on switch using Network switch wizzar
Posted: Fri Jun 30, 2017 6:34 am
by TorqueSteer
It's an instalation that was downloaded from the Nagios page (Hyper-V) as trial around march/april this year and then updated using the built in Nagios updater.
When I try and run those commands I get a command not found error. I am just typing in what you have posted logged in as the root user.
Re: Ports not detected on switch using Network switch wizzar
Posted: Fri Jun 30, 2017 6:37 am
by eloyd
It sounds as though your system may not have a proper shell set up.
Try
and see if you get anything.
Re: Ports not detected on switch using Network switch wizzar
Posted: Fri Jun 30, 2017 7:26 am
by TorqueSteer
Ahh I see,
yes that got me a result:
Re: Ports not detected on switch using Network switch wizzar
Posted: Fri Jun 30, 2017 7:28 am
by eloyd
Without trying to figure out why you have incorrect shell settings or how to fix them, try this:
Code: Select all
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
Then try all the commands that weren't working properly for you before.
Re: Ports not detected on switch using Network switch wizzar
Posted: Fri Jun 30, 2017 7:47 am
by TorqueSteer
Progress! Sort of....
Looks like Nagios is getting no response from the switch over SNMP, i've checked the settings on the switch and it is setup correctly. Could timeout be the issue?
Re: Ports not detected on switch using Network switch wizzar
Posted: Fri Jun 30, 2017 7:50 am
by eloyd
I'm not a big SNMP person, and I've never actually used cfgmaker, so you'll have to wait for someone from Nagios Enterprises to wake up and join the conversation.

Re: Ports not detected on switch using Network switch wizzar
Posted: Fri Jun 30, 2017 8:15 am
by TorqueSteer
eloyd wrote:I'm not a big SNMP person, and I've never actually used cfgmaker, so you'll have to wait for someone from Nagios Enterprises to wake up and join the conversation.

No problem, thanks for all of your help!
Re: Ports not detected on switch using Network switch wizzar
Posted: Fri Jun 30, 2017 9:38 am
by cdienger
It does appear to be timing out. This could be due to a firewall between the Nagios server and 10.69.132.1 or a misconfiguration somewhere.
Is the Nagios server able to ping 10.69.132.1?
You also want to be sure that UDP port 161 isn't getting blocked by a firewall on the Nagios server, or between the Nagios server and destination or on the destination itself. Check iptables on the Nagios server with:
UDP port 161 is the default snmp port. Is this the port 10.69.132.1 is configured to use?