Ignore:
Timestamp:
04/20/05 21:08:49 (8 years ago)
Author:
Michael Medin <michael@…>
Children:
f22f5a9
Parents:
5d8e0b5
Message:

+ Added multitasking to socket listsner (it can now handle multiple connections)

  • Fixed bug in NSClientListener now "seqv" in check_nt shouldn't happen. + Added COUNTER support to NSClient and CheckSystem
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/CheckDisk/CheckDisk.cpp

    r5d8e0b5 rae192e3  
    108108  // ./check_nscp -H 192.168.0.167 -p 1234 -s pwd -c 'CheckFileSize&ShowAll&MaxWarn=1024M&MaxCrit=4096M&File:WIN=c:\WINDOWS\*.*' 
    109109  // WIN: 1G (2110962363B)|WIN:2110962363:1073741824:4294967296 
    110   NSC_DEBUG_MSG("CheckDriveSize"); 
    111110  NSCAPI::nagiosReturn returnCode = NSCAPI::returnOK; 
    112111  std::list<std::string> args = arrayBuffer::arrayBuffer2list(argLen, char_args); 
     
    144143    } 
    145144  } 
    146  
    147   NSC_DEBUG_MSG_STD("Bounds: critical " + crit.min.toString() + " > size > " + crit.max.toString()); 
    148   NSC_DEBUG_MSG_STD("Bounds: warning " + warn.min.toString() + " > size > " + warn.max.toString()); 
    149   NSC_DEBUG_MSG_STD("Showall: " + ((bShowAll)?"yeap":"noop")); 
    150   NSC_DEBUG_MSG_STD("nsclient: " + ((bNSClient)?"yeap":"noop")); 
    151145 
    152146  for (std::list<std::string>::iterator it = drives.begin();it!=drives.end();it++) { 
     
    225219  // ./check_nscp -H 192.168.0.167 -p 1234 -s pwd -c 'CheckFileSize&ShowAll&MaxWarn=1024M&MaxCrit=4096M&File:WIN=c:\WINDOWS\*.*' 
    226220  // WIN: 1G (2110962363B)|WIN:2110962363:1073741824:4294967296 
    227   NSC_DEBUG_MSG("CheckFileSize"); 
    228221  NSCAPI::nagiosReturn returnCode = NSCAPI::returnOK; 
    229222  std::list<std::string> args = arrayBuffer::arrayBuffer2list(argLen, char_args); 
     
    268261    } 
    269262  } 
    270   NSC_DEBUG_MSG_STD("Bounds: critical " + strEx::itos(minCrit) + " > siez > " + strEx::itos(maxCrit)); 
    271   NSC_DEBUG_MSG_STD("Bounds: warning " + strEx::itos(minWarn) + " > size > " + strEx::itos(maxWarn)); 
    272   NSC_DEBUG_MSG_STD("Showall: " + ((bShowAll)?"yeap":"noop")); 
    273263 
    274264  std::list<std::pair<std::string,std::string> >::const_iterator pit; 
Note: See TracChangeset for help on using the changeset viewer.