Fazza Posted July 19, 2018 Posted July 19, 2018 I'm trying to add our Snipe-IT server to our Mutiny network monitoring system but it's not working! Snipe-IT is installed on CentOS 7 so it's this I need to install and configure SNMP on. This is what I've done so far: # yum -y install net-snmp net-snmp-utils I then copied across the pre-configured files from Mutiny's website (snmpd.conf and snmpd.local.conf) # systemctl enable snmpd && systemctl start snmpd restarted the server When connecting via SNMP it's saying there is no SNMP response so either something is missing or it's getting blocked somehow?
computer_expert Posted July 19, 2018 Posted July 19, 2018 Have you allowed the SMNP ports through firewalld? I think it is something like port 161 for SNMP but you'll need to double check
Fazza Posted July 19, 2018 Author Posted July 19, 2018 Have you allowed the SMNP ports through firewalld? I think it is something like port 161 for SNMP but you'll need to double check Nope! No idea how so I'll search for a command that does that then
computer_expert Posted July 19, 2018 Posted July 19, 2018 (edited) This should do the trick (assuming you are using the public zone): sudo firewall-cmd --zone=public --add-service=snmp --permanent There is a good article on firewalld here https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-using-firewalld-on-centos-7 Edited July 19, 2018 by computer_expert
JackCPickup Posted July 19, 2018 Posted July 19, 2018 If amending the firewall doesn't do the trick try troubleshooting with Paessler's SNMP Tester.
Fazza Posted July 19, 2018 Author Posted July 19, 2018 This should do the trick (assuming you are using the public zone): sudo firewall-cmd --zone=public --add-service=snmp --permanent Thanks for that! I've renamed 'public' to 'rainbow' - that's a lie, it's not rainbow but I'm not putting the one I actually use online! Do I need to ammend the above command to say --zone=public to --zone=rainbow or is that not what public in this instance is referring to?
JackCPickup Posted July 19, 2018 Posted July 19, 2018 Thanks for that! I've renamed 'public' to 'rainbow' - that's a lie, it's not rainbow but I'm not putting the one I actually use online! Do I need to ammend the above command to say --zone=public to --zone=rainbow or is that not what public in this instance is referring to? It is the same as the zones in Windows; Public, Private, Domain, except there are quite a few more zones available. They enable predefined firewall features based on the level of trust each zone represents.
kmount Posted July 19, 2018 Posted July 19, 2018 Fazza, I think you mean the community public in snmp you renamed - this isn't the same thing. It's the firewall zone and I suspect yours will still be public. 1
JackCPickup Posted July 19, 2018 Posted July 19, 2018 sudo firewall-cmd --get-default-zone To verify which you need to configure.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now