Search found 3 matches

by kaynine
Fri Feb 11, 2011 7:45 pm
Forum: Scripts and Templates
Topic: Updated 02/26/11 Script + Templates for Ubiquiti AirOS (SSH)
Replies: 8
Views: 12621

Re: Updated 02/04/11 Script + Templates for Ubiquiti AirOS (

Ok figured it out .. but now another Error :lol: python /var/www/cacti/scripts/scgrab/scgrab.py --authcred=userpass.txt --host=x.x.x.x --plugin=ubnt-mcastatus --query=freq File "/var/www/cacti/scripts/scgrab/scgrab.py", line 395 modify_time = datetime.fromtimestamp(os.path.getmtime(cacheFile)) if os...
by kaynine
Fri Feb 11, 2011 7:28 pm
Forum: Scripts and Templates
Topic: Updated 02/26/11 Script + Templates for Ubiquiti AirOS (SSH)
Replies: 8
Views: 12621

Re: Updated 02/04/11 Script + Templates for Ubiquiti AirOS (

As i am not familure with python, how do i run this to fix the current script? Thanks Hi. Oops - I was using the newer syntax from python3 which was backported to 2.6/2.7. Please try the below fix: --- scgrab.py 2011-02-09 18:29:13.380563996 -0600 +++ scgrab-py25.py 2011-02-09 18:29:53.750563938 -06...
by kaynine
Wed Feb 09, 2011 3:45 pm
Forum: Scripts and Templates
Topic: Updated 02/26/11 Script + Templates for Ubiquiti AirOS (SSH)
Replies: 8
Views: 12621

Re: Updated 02/04/11 Script + Templates for Ubiquiti AirOS (

I Tried these scripts out, but am getting an error: python /var/www/cacti/scripts/scgrab/scgrab.py --authcred=user pass.txt --host=x.x.x.x --plugin=ubnt-mcastatus --query=uptime File "/var/www/cacti/scripts/scgrab/scgrab.py", line 88 except Exception as e: ^ SyntaxError: invalid syntax