Nsca checks, restart command and some other stuff

This pull request contains commits for : 
- adding a debug log helful to get launched commands
- adding return codes in dbsql module
- adding the RESTART_PROGRAM in external commands
- not raising dependency and freshness checks for passive only checked hosts