@sebastian-roth I have a holiday this August, I’m going to make the translation and I’m going to try it out in my organization, we have several FOGs. When I see it well, we talk about it
ah, Congratulations to everyone on the project
@sebastian-roth I have a holiday this August, I’m going to make the translation and I’m going to try it out in my organization, we have several FOGs. When I see it well, we talk about it
ah, Congratulations to everyone on the project
First sorry for my level of english,
I use this with Python and the API, https://github.com/mechalas/fog-inventory-updater. Modify it and add for example to line 289 “inventory[‘other1’]=socket.gethostbyname(socket.gethostname())” and and this sent as a snapin, this will upload the client’s ip to the inventory section with other1 field, then you can extract a CSV report of the data.
"I had a problem when updating to 1.5.10. The update process went well until it requested to update the database, then the website was unresponsive while the Apache server was running. I observed the following error in the httpd logs (ssl_error_log):
[php7:error] [pid 31427] [client “ip”:60433] PHP Parse error: syntax error, unexpected ‘)’ in /var/www/html/fog/lib/plugins/location/pages/locationmanagementpage.class.php on line 170
I removed the comma from line 169, after the $protocol variable in the locationmanagementpage.class.php file, and then the update process completed successfully. I’m currently testing image deployment and it seems to be working. What happened is that all default services like ‘power manager’, ‘printer manager’, ‘snapins’, etc. were disabled on the computers, and I can enable them one by one. Once enabled, the computers were successfully added to the domain, but I still can’t send snapins; the fog.txt file shows an error that it can’t download the file. I’ve decided to roll back the update and investigate further. I’ll try to document it better, but it seems like a problem with the location plugin."
php 7.2.34
centos 7.9
pd: I edit, it’s not downloading the snapin because the “http” is missing in the link. I assume it’s due to the variable $protocol that I modified on line 169
@sebastian-roth I have a holiday this August, I’m going to make the translation and I’m going to try it out in my organization, we have several FOGs. When I see it well, we talk about it
ah, Congratulations to everyone on the project
@tom-elliott No problem, I will modify one of the default languages to include Catalan. When I’m stable, I’ll move it internally to my organization as there are several areas that use it
Hello
I want to make the interface translation to a language different from the usual ones, namely Catalan. I have no problems with Poedit and the files I saw are in /fog/management/languages.
The question is which files should be modified to get a new language to the post with my translation?
thank you.
@mechalas yes, now it works perfectly. Cool
@mechalas well, I think I limited the topic.
Your script works in some cases and not in others. The error it gives seems to be linked to the machine name. I have tried it on several computers, win10, w7, with different versions of python etc … and the only pattern I have found is that on computers that an image has been dumped via fog it works, if the computer is in fog with the client but an image has not been dumped does not work.
In both win10 and w7 when it doesn’t work it gives the error I told you
@mechalas the first computer I tried was a w10 with python 3.9.5 and the inventory works with -x but the information does not go up. Now I have tested it with a w7 and python 3.8.10 and it works perfectly.
This weekend I will try to do more testing
@mechalas OK,
OK you are right.
I have moved on, but now I have this error:
Traceback (most recent call last):
File “C:\temp\fog-inventory”, line 535, in <module>
host, invid= fog.find_host(name=args.hostname)
File “C:\temp\fog-inventory”, line 223, in find_host
invid= int(invidstr)
TypeError: int() argument must be a string, a bytes-like object or a number, not ‘NoneType’