Pages: [1]   Go Down
Author Topic: Microsoft SQL  (Read 259 times)
0 Members and 1 Guest are viewing this topic.
guidito_ito
Newbie
*

Karma: 0
Offline Offline

Posts: 5


View Profile
« on: January 11, 2011, 02:29:10 PM »

Hi. Is there a way to run a sql query by pandora agent in ms sql?
I've tried ODBC but it seems like the database has that strange nvchar issue.
Then I tried using sqlcmd.exe: when using the windows CMD the result is fine, but using module_exec I can't get anything. taking a look at the XML the data field is empty. It's not a strange thing what i do just sqlcmd.exe with a user, database, query and then | tr -d "\r\n" and that's it.
I can't figure it out I think is an encoding issue of some kind but i'm not sure please help me
Logged

opike
Full Member
***

Karma: 0
Offline Offline

Posts: 26


View Profile
« Reply #1 on: January 20, 2011, 01:06:23 AM »

The agent should pick up any text that is written to standard out.

When you run you sql script from the command line what does it write to standard out?

Also, you can monitor the files in server_path directory (as specified in the pandora_agent.conf) and see exactly what information is being picked up by the agent. This might help you troubleshoot what is going on.
Logged

Pages: [1]   Go Up
Print
 
Jump to:  


SourceForge.net Logo  This site is monitored by Pandora FMS   ArticaST