Hi, I’ new to this so i’m not quite sure how to do that.
I’m using icinga2 and icingaweb2 to monitor remote linux servers. I am using manubulon plugin. I have managed to configure check_snmp for one of my servers. I have configured icinga2 the same way for another server (just changed the community which is not the same) but i can’t make it work.
I have checked that the port 161 was open for my server, it is. I even opened the tcp connexions on this server to be sure. It doesn’t change anything.
The command snmpwalk works on my monitoring server, but on icinga I have the message "No response from host ‘ip’ "
The check_command “hostalive” is from the generic-template that, I thnik, has to be imported for every service. The actual command that is important is the snmp-process. I don’t think there is a pobleme with the hostalive command because I have an another server for which it is working.
did you try e.g. net-snmp on your server? Does the snmpwalk work with them? If not, something is blocking the requests e.g. the local firewall, firewall in the middle, the other device.
The snmpwalk and snmpget commands work perfectly. I don’t understand what difference there is between the snmpwalk command and the check command don manually, froms what I understood that’s where the issue is.
Yes, if enabled, the OS is blocking process, activity until is allowd.
If you are using SELinux (like on CentOS) you will find this in the logs. That’s why I asked if something is written in the logs.
So what logs you’ve checked before, when I asked this?
SELinux is part of the OS. So you don’t will see this in icinga2.log. On CentOS the logfile for SELinux /var/log/audit/audit.log. If you are using Ubuntu there is AppArmor installed. I don’t know where you have to look there. I have no knowledge about Ubuntu.
But I’m sure something is blocking the check command. Specially if you can do a snmpwalk with the commands from net-snmp.