Welcome to Pandora FMS Community › Forums › Community support › Weird bug – babel SVN Build BC070806 – Agents offline
-
Weird bug – babel SVN Build BC070806 – Agents offline
Posted by davidp on January 31, 2008 at 09:42Hi all,
I’ve just set up a babel server here on a dedicated server which use a MySQL database on another server. Nothing wrong transpires from the log file (as in: no mysql connection problem). The server is currently in verbose mode to better trace what goes on.
The console server is also running on a dedicated server (my web server) thus I have a different connection to mysql, which also works. I can create agents, but they invariably declare themselves offline.
On the babel server, I get entries like:
[code:1][V] 01-31-08 04:35:51 – Preparing to process data file at /var/spool/babel/data_in/thor.1201753846.data
[V] 01-31-08 04:35:51 – Registering audit #4 from agent ‘thor’
[V] 01-31-08 04:35:52 – Deleting data fileSo I expect no communication problem between the server and the sql server, and since I’m able to use the console, the sql communication is supposed to be all right on that side too.
The only disgression I did from the original setup is that I do not allow the the mysql user to do anything else than insert / select / delete / alter records. Is there a right (like execute scripts) which is needed to operate babel on the mysql server?
Best regards,
Davidmanu replied 16 years, 12 months ago 3 Members · 17 Replies -
17 Replies
-
-
-
::
Hi all,
The only disgression I did from the original setup is that I do not allow the the mysql user to do anything else than insert / select / delete / alter records. Is there a right (like execute scripts) which is needed to operate babel on the mysql server?
Best regards,
DavidSeems to be everything ok. Offline Agents have data inside ?. What is the interval for that agents ?. Remember that interval in babel is in MINUTES, so a 10080 interval is for gathering data every week.
-
-
-
::
If started in gdb, the output is as follow:
[code:1]babel-server v1.0.0 (build 080131) 2005-2007 (web site ommited)
Program received signal SIGSEGV, Segmentation fauilt.
0x00002ac88e67cbb0 in strlen () from /lib64/libc.so.6The bt command returns the following:
[code:1]#0 0x00002b988549abb0 in strlen () from /lib64/libc.so.6#1 0x00002b988546a84d in vfprintf () from /lib64/libc.so.6
#2 0x00002b988548cb7d in vasprintf () from /lib64/libc.so.6
#3 0x00002b98847fcc50 in g_vasprintf () from /usr/lib64/libglib-2.0.so.0
#4 0x00002b98847ee590 in g_strdup_vprintf () from /usr/lib64/libglib-2.0.so.0
#5 0x00002b98847c1a68 in ?? () from /usr/lib64/libglib-2.0.so.0
#6 0x00002b98847c1b21 in g_set_error () from /usr/lib64/libglib-2.0.so.0
#7 0x000000000040df78 in babel_db_connection_query ()
#8 0x000000000040fc92 in babel_server_init_source ()
#9 0x000000000040fe58 in babel_server_start ()
#10 0x0000000000406ce9 in main ()
I guess it’s expected from code coming from trunk, but it was running flawlessly previously so I’m a bit at a loss. No update has been done on the OS either.
-
::
Oh no, you miunderstood me, or I didn’t explain myself well.
I meant put the agent in debug mode, this means, edit babel_agent.conf and set debug 1
debug mode means that the agent will run as expected but the XML will remain in /var/spool/babel/data_out it won’t be copied to the server so you can analyze it.So, set the debug mode and when the agent is done, take a look at the XML and see if there’s data in it.
Let us know what’s going on!
-
::
As requested, here’s an exert from a typical xml file on the babel server “/var/spool/babel/babel_in”:
[code:1]
02/15/08 05:26:40
10080
Account Policyuser_policy
is not /etc/login.defs
is not /etc/login.defs
is not /etc/login.defs
is not /etc/login.defs.
.
.
Service enabled
Service enabled
Service enabled
Service enabledSnmpAgentremote
_Dangerous community nameSetUID Filessetuid
Tomcat5remote
UID0uid0
Regards,
David -
::
As requested, here’s an exert from a typical xml file on the babel server “/var/spool/babel/babel_in”:
Regards,
DavidRename to .xml and try to open locally with a browser (mozilla/firefox) to check if XML is correct. This could the first problem, some 1.1 modules generate bad XML…
-
-
-
-
-
-
::
x86
Given the XML you posted here, it’s more likely an agent problem, not a server one.
As long as the XML doesn’t have any agent name in it, the server doesn’t know who assigns the data to.Did you erase any data of the XML you posted here or you just posted it as you had it in your system without any modification?
-
::
Yes, as the text was making 96Kb
Besides, I still have the sourcecode, I could recompile trunk but as I said, I was getting segmentation fault with the trunk “babelserver” lately.
That said, I didn’t change the agents, just the server and the thing began working so if it was an XML issue, “branch” babelserver would still crash.
The fact I dropped the database and recreated it might have helped too.
I’ll have to retest with the ” trunk ” babelserver later today. I’ll keep you posted.
-