#2 Fixes for MIDASd

closed-fixed
None
9
2003-12-20
2003-12-16
No

diff -Nur ../MIDAS-2.1a/MIDASd/processclient.c
MIDASd/processclient.c
--- ../MIDAS-2.1a/MIDASd/processclient.c 2003-
11-21 20:47:45.000000000 +0100
+++ MIDASd/processclient.c 2003-12-15
08:06:47.000000000 +0100
@@ -281,7 +287,7 @@
query = dfree(query);
dbr = dbFree(dbr);

- query = dsprintf
(query, "SELECT FROM MIDAS_Checks WHERE CID='%s'
AND AlertOnRed=1", CID);
+ query = dsprintf
(query, "SELECT * FROM MIDAS_Checks WHERE CID='%
s' AND AlertOnRed='1'", CID);
dbr = dbQuery
(query, SQLCFG);
if(dbr)
{
@@ -312,7 +318,7 @@
query = dfree
(query);
dbr = dbFree
(dbr);

- query =
dsprintf(query, "UPDATE MIDAS_Check_Hosts SET
CurFail=0 WHERE TID='%s' AND HID='%s' AND CID='%s'",
TID, HID, CID);
+ query =
dsprintf(query, "UPDATE MIDAS_Host_Checks SET
CurFail=0 WHERE TID='%s' AND HID='%s' AND CID='%s'",
TID, HID, CID);
dbr = dbQuery
(query, SQLCFG);
query = dfree
(query);
dbr = dbFree
(dbr);

Discussion

  • Tom Cashmore

    Tom Cashmore - 2003-12-20
    • priority: 5 --> 9
    • assigned_to: nobody --> tcashmore
    • status: open --> closed-fixed
     
  • Tom Cashmore

    Tom Cashmore - 2003-12-20

    Logged In: YES
    user_id=562122

    These fixes have been incorprated into the next release
    (v2.2a).

    Tom Cashmore

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks