Questions tagged [syntax]

65 questions
2
votes
1 answer

Why can't I select from a table named range without using backticks?

I'm facing a problem with mysql. A query select * from range; works on mysql 5.0.22 but does not work mysql 5.1.61. but it works with backtick: i.e. select * from `range`; Kindly help in this regard. I want mysql 5.1.61 to execute the query…
User4283
  • 781
  • 3
  • 10
  • 27
2
votes
3 answers

Syntax error at '{'; expected '}' when using nagios in puppet

It's a big problem to me, because I'm not familiar with puppet. ERROR on the puppetmaster: debug: importing '/etc/puppet/manifests/nodes/group-1.pp' err: Could not parse for environment production: Syntax error at '{'; expected '}' at…
2
votes
1 answer

ZFS: Replace raidz1-member of a striped pool for raidz2

I have a pool (in Ubuntu 20 LTS) like this: # zpool status pool: zpool_test state: ONLINE scan: none requested config: NAME STATE READ WRITE CKSUM zpool_test ONLINE 0 0 0 raidz2-0 ONLINE 0 0 …
2
votes
1 answer

Postfix sasl_password file and MX resolution

Thanks to @AlexD idea, we'll implement the following transport table in order to simulate a IP failover using the DNS MX resolution (postfix 3.3) Relay for 2 domains, exemple[12].com exemple1.com relay:mx.myhost.com:587 exemple2.com …
Déjà vu
  • 5,546
  • 9
  • 36
  • 55
1
vote
1 answer

Editing a value in a ldap dn

What is the correct syntax to edit a value in an LDAP dn? As of now I was trying the following: serveradmin@magic:~$ ldapmodify -x -W -D cn=admin,dc=example,dc=com < dn: uid=foo,ou=People,dc=example,dc=com > changetype: modify > edit:…
CertifcateJunky
  • 143
  • 1
  • 6
1
vote
1 answer

How to set up cron trigger time rule every 5 mins + 2mins delay?

In Microsoft Azure, this runs the script every 5 mins: "0 */5 * * * *" I thought i will run another script every 5 mins plus 2 mins with rule: "0 */7 * * * *" but then i realized i made a mistake (0,5,10,15 vs 0,7,14,21) that's not 0,7,12,17 what i…
luky
  • 219
  • 1
  • 4
  • 12
1
vote
1 answer

CloudFormation stack yaml syntax?

I'm trying to create a SecurityGroup which has a tag like Name: SG-StackName. This code works perfect in json: "Resources": { "SecurityGroup": { "Type": "AWS::EC2::SecurityGroup", "Properties": { ... …
Putnik
  • 2,217
  • 4
  • 27
  • 43
1
vote
1 answer

Nginx: significance of bracket syntax?

Using Nginx on FreeBSD, wondering what's the difference between events { worker_connections 200; } and just worker_connections 200; by itself? Or server { listen 80; location / { return 301 https://$host$request_uri; …
House3272
  • 169
  • 1
  • 5
1
vote
1 answer

openldap alternative to modifying core schema syntax

I have an application that stores contacts in OpenLDAP. It uses the c attribute to store a string describing a country name. The syntax of c only allows a two-letter country code, but the application uses full country names. Therefore the attribute…
roelvanmeer
  • 1,764
  • 3
  • 13
  • 27
1
vote
0 answers

rsyslog filter on authpriv facility in rsyslog.conf

This has been addressed in other post(s), but I still can't get this to work properly. I am trying to OMIT (discard) certain entries from being written to my " /var/log/secure ". Namely, any line that contains certain trusted IP Addresses, in this…
Chris Charles
  • 11
  • 1
  • 4
1
vote
3 answers

Puppet string interpolation with function call and a variable as parameter

Trying to construct a string. I can do: "Blah blah ${::osfamily} blah blah" "Blah blah ${$::osfamily} blah blah" But whats the syntax to call a function with a variable as parameter and have string interpolation work? None of the following…
Swartz
  • 304
  • 5
  • 14
1
vote
1 answer

Fixing syntax errors in lighttpd.conf?

lighttpd newbie here... We're trying to set up lighttpd to host a local django app, kiosk-style. We intend to use wsgi for this, but we're having trouble figuring out the syntax for lighttpd's config file -- examples pulled straight from lighttpd…
Tom Corelis
  • 113
  • 6
1
vote
2 answers

Puppet Error: 400 on SERVER: Syntax error at

I am getting a syntax error when running puppet, although I cant figure out why: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Syntax error at 'String'; expected ')' at /etc/puppet/modules/riak/manifests/init.pp:17 Here…
1
vote
2 answers

Puppet case statements with integer range

I need to write a case using some ranges in order to write in a better way something like the following spaghetti code : if $mem < 1024 { $retvalue = "128M" } elsif $mem < 7000 { $retvalue = "160M" } elsif $mem < 15000 { $retvalue = "192M"…
FlexIt
  • 13
  • 2
1
vote
1 answer

How to customize munin alert message text

So, I use munin to monitor a couple hundred servers and I love it. I am trying to tweak the alert text to look a little different however, and I'm not understanding how to get it to do what I want. I have read…
Joe
  • 1,043
  • 8
  • 11