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
Beacon: Usage in windows #49965
Comments
can you further elaborate what you need help with? Have you tried setting it up and its not working? If so can you include your conifgurations and errors |
@Ch3LL Thanks for the reply. Below are my config files.
Due to wrong declaration in top file i had issue but rectified it.
What does the |
its in seconds as documented here: https://docs.saltstack.com/en/latest/topics/beacons/#beacon-monitoring-interval If you modify the beacon file since you are using pillar you just need to refresh your pillar data. |
@Ch3LL thanks for the reply. I don't see any events on master event bus. Can you please let me know if there is any additional configuration to be performed on the master ? My master config file is a below.
|
you should only see events if the diskusage has hit the limit you specified. Can you set it to a limit you know it should alert you? i'm also wondering if the diskusage beacons is suppose to work with windows. ping @saltstack/team-windows do you know? |
It should work, but it needs the |
psutil is part of the installation |
windows minion c drive is 10GB free of 254GB. This has surpassed specified limit for beacon to hit. |
is there any information in the minion log about the beacon? |
@Ch3LL below is the output when i run
|
Any help please ? |
1 similar comment
Any help please ? |
so it looks like its loading the module but not firing off any events. ping @garethgreenaway do you have any ideas here? Does the configuration setup look correct? |
I took a look at this one and found the issue. The configuration is correct but the drive letter in the configuration is used as the pattern for matching against the partition list returned from psutil. The driver letter requires two slashes to ensure properly escaping, but when the matching happens it appears as a single slash. The results returned from psutil also include the double slash, for proper escaping, which doesn't end up matching what is in the configuration. So this fix ensures that the pattern is properly escaped so we have match of what is returned from psutil. |
@garethgreenaway I have updated salt version now it is 2018.3.3
But still i don't see any event on master event bus. Even checked by restarting minion service on windows machine. |
@nkrishnakishor The fix will be in 2018.3.4 and Fluorine. |
@garethgreenaway thanks for the info. Waiting for it 🙂 |
Maybe I was wrong about it being in .4. Can try the one from the 2018.3 branch? |
Yeah, absolutely. Just a minute |
OK. So the beacon does appear to work, but it still gives the above stacktrace. |
@UtahDave will take another look. Can you share your beacon config? |
Here you go:
|
@UtahDave thanks for the file but i don't see any events on the master bus.
|
Do we need to have any package installed on master for beacon to work on Windows ? |
Description of Issue/Question
Need help to setup Beacon in windows minion
Setup
(Please provide relevant configs and/or SLS files (Be sure to remove sensitive info).)
Steps to Reproduce Issue
(Include debug logs if possible and relevant.)
Versions Report
salt --versions-report
salt --versions-report
Salt Version:
Salt: 2018.3.2
Dependency Versions:
cffi: Not Installed
cherrypy: Not Installed
dateutil: Not Installed
docker-py: Not Installed
gitdb: 0.6.4
gitpython: 1.0.1
ioflo: Not Installed
Jinja2: 2.7.2
libgit2: Not Installed
libnacl: Not Installed
M2Crypto: 0.28.2
Mako: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.5.6
mysql-python: Not Installed
pycparser: Not Installed
pycrypto: 2.6.1
pycryptodome: Not Installed
pygit2: Not Installed
Python: 2.7.5 (default, Jul 13 2018, 13:06:57)
python-gnupg: Not Installed
PyYAML: 3.11
PyZMQ: 15.3.0
RAET: Not Installed
smmap: 0.9.0
timelib: Not Installed
Tornado: 4.2.1
ZMQ: 4.1.4
System Versions:
dist: centos 7.5.1804 Core
locale: UTF-8
machine: x86_64
release: 3.10.0-862.11.6.el7.x86_64
system: Linux
version: CentOS Linux 7.5.1804 Core
The text was updated successfully, but these errors were encountered: