Error while inserting data into the database:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Group', `active`='1', `config_id`=1, `last_modified`=NOW(), `members`=1' at line 1
SQL error modifying Contact Group
-
luniversity
- Posts: 56
- Joined: Mon Dec 10, 2012 9:39 am
SQL error modifying Contact Group
I have a contact group that I'm trying to modify. This group has only one account. I'm trying to remove the existing user and add two more and I keep getting the syntax error below. I've tried removing the only user, then tried adding the other 2 users...everything I try gives me the same error:
Mike Westmoreland
Lamar University
Lamar University
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: SQL error modifying Contact Group
Can you show the queries you were running? Also it is highly suggested to do this via CCM instead of raw queries.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
-
luniversity
- Posts: 56
- Joined: Mon Dec 10, 2012 9:39 am
Re: SQL error modifying Contact Group
Yes sir, I was using CCM to make the changes. That error message above is what I got. Of course, I'm a couple version behind (nagios XI2012R1.2; CCM 1.02).
Mike Westmoreland
Lamar University
Lamar University
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: SQL error modifying Contact Group
Ah sorry, I figured from the error that it was a raw query. I'm going to have to do a 2012r1.2 install to test. I know it works now, but I dont know at what point it would have been patched. Obviously the quickest fix I would suggest is updating at least to the newest 2012 version of r2.8, but understandable if that might not be possible.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
-
luniversity
- Posts: 56
- Joined: Mon Dec 10, 2012 9:39 am
Re: SQL error modifying Contact Group
Actually, I'm trying to get this system ready to upgrade to the latest version, but I was trying to fix the existing errors first. I'm sure I'll have another post on upgrading later. But thanks for looking into it.
Mike Westmoreland
Lamar University
Lamar University
Re: SQL error modifying Contact Group
What condition are your db tables in?
Code: Select all
tail -50 /var/log/mysqld.logFormer Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
luniversity
- Posts: 56
- Joined: Mon Dec 10, 2012 9:39 am
Re: SQL error modifying Contact Group
I ended up deleting this contactgroup via CCM and re-creating it. This resolved my issue.
Mike Westmoreland
Lamar University
Lamar University