I am very new at using zabbix, and trying to learn what is quite a large subject, however I have an issue that I need some help with please.
I have a zabbix server, a proxy and an agent. Zabbit is 6.5, proxy is the same and so is the agent that is installed on Ubunutu.
The Zabbix server connects to the proxy, and can communicate, the proxy can connect to the agent (On kali) and server and communicate.
The issue I am having whilst testing is I have created a web scenario to monitor if Greenbone community server is available (GVM), If its not available then I want it to run a script to update and then start GVM.
Normally to update GVM I type greegreenbone-feed-sync
Normally to start GVM I type gvm-start.
I thought I could create a script with the following contents :
sudo greegreenbone-feed-sync
sudo gvm-start
I manually execute the script from zabbix and I get the following in the zabbix screen along with the below extract of the log
Feebback from Zabbix
sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
sudo: a password is required
log file
730084:20240706:103306.069 Executing command '/etc/zabbix/gvmstarter.sh'
730082:20240706:103355.657 Executing command '/etc/zabbix/gvmstarter.sh'
I have upped the server timeout and agent timeout to 30 s. So The agent does try and run it bit the "sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
sudo: a password is required " - Is confusing me.
Any help would be appreciated.
Jez
I have a zabbix server, a proxy and an agent. Zabbit is 6.5, proxy is the same and so is the agent that is installed on Ubunutu.
The Zabbix server connects to the proxy, and can communicate, the proxy can connect to the agent (On kali) and server and communicate.
The issue I am having whilst testing is I have created a web scenario to monitor if Greenbone community server is available (GVM), If its not available then I want it to run a script to update and then start GVM.
Normally to update GVM I type greegreenbone-feed-sync
Normally to start GVM I type gvm-start.
I thought I could create a script with the following contents :
sudo greegreenbone-feed-sync
sudo gvm-start
I manually execute the script from zabbix and I get the following in the zabbix screen along with the below extract of the log
Feebback from Zabbix
sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
sudo: a password is required
log file
730084:20240706:103306.069 Executing command '/etc/zabbix/gvmstarter.sh'
730082:20240706:103355.657 Executing command '/etc/zabbix/gvmstarter.sh'
I have upped the server timeout and agent timeout to 30 s. So The agent does try and run it bit the "sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
sudo: a password is required " - Is confusing me.
Any help would be appreciated.
Jez
Comment