Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix action doesn't fix #41

Open
JD-ISWT opened this issue Nov 7, 2019 · 0 comments
Open

Fix action doesn't fix #41

JD-ISWT opened this issue Nov 7, 2019 · 0 comments

Comments

@JD-ISWT
Copy link

JD-ISWT commented Nov 7, 2019

Hey,

I got a problem with the automatic fix action. Seems that the remote action doesn't do anything.
When I acknowledge the problem in the dashboard I have the following message in the logs :

(the acknowledgement was about a single package)

2019-11-07 17:45:03,112 7745 INFO Getting Started with the event: https://monitoring..com/tr_events.php?triggerid=16968&eventid=298 [fix.py:71]
2019-11-07 17:45:03,112 7745 INFO JSON-RPC Server Endpoint: https://monitoring..com/api_jsonrpc.php [init.py:56]
2019-11-07 17:45:03,166 7745 INFO Connected to Zabbix API v.4.4.1 [fix.py:78]
2019-11-07 17:45:03,183 7745 INFO [1 in 1] debian10 [fix.py:121]
2019-11-07 17:45:03,197 7745 INFO zabbix_get -s MyIP -k "system.run[sudo apt-get --assume-yes install --only-upgrade sudo,nowait]" [fix.py:51]
2019-11-07 17:45:03,232 7745 INFO 1

I have also the message on the agent in the log:

1975:20191107:164503.223 Executing command 'sudo apt-get --assume-yes install --only-upgrade sudo'

But the update is not run :

apt-cache policy sudo
sudo:
Installed: 1.8.27-1
Candidate: 1.8.27-1+deb10u1
Version table:
1.8.27-1+deb10u1 500
500 http://security.debian.org buster/updates/main amd64 Packages
*** 1.8.27-1 500
500 http://deb.debian.org/debian buster/main amd64 Packages
100 /var/lib/dpkg/status

I checked that the remote commands and enabled on the agent and zabbix user is declared in sudoers

And can I debug the problem and get more traces

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant