Hello,
Very new to Zabbix, currently installed and setup Zabbix server and agent on 2 VMs for testing. I have been able to do the setup and login to the dashboard. I have added the agent host to the dashboard and its availability status is stuck at unknown. I found online that it would become available once the 3 tests (Detect Operating System, Ping and Traceroute would work). I managed to make ping and traceroute work by installing nmap, traceroute and enabling their use by zabbix in selinux policies. However, I'm not able to make 'Detect Operating System' work.
I get the following error when I run it:
I have added `zabbix ALL=(ALL) NOPASSWD: ALL` to visudo and don't see any logs in /var/log/audit/audit.log so I don't think selinux is stopping the execution. I can run the command
with my local user in zabbix server. But I cannot use the zabbix user. I get the following error when I try it:
System Information: Rocky Linux 8.6
DB: Postgresql 13
Zabbix: 6.0
Please help with this issue and let me know what further info I need to provide regarding this.
Thanks,
Very new to Zabbix, currently installed and setup Zabbix server and agent on 2 VMs for testing. I have been able to do the setup and login to the dashboard. I have added the agent host to the dashboard and its availability status is stuck at unknown. I found online that it would become available once the 3 tests (Detect Operating System, Ping and Traceroute would work). I managed to make ping and traceroute work by installing nmap, traceroute and enabling their use by zabbix in selinux policies. However, I'm not able to make 'Detect Operating System' work.
I get the following error when I run it:
Cannot execute script.
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
Code:
sudo nmap -O <agent_IP>
Code:
sudo su - zabbix
su: warning: cannot change directory to /var/lib/zabbix: No such file or directory
This account is currently not available.
This account is currently not available.
DB: Postgresql 13
Zabbix: 6.0
Please help with this issue and let me know what further info I need to provide regarding this.
Thanks,
Comment