akm77 / ldapcomputers

LDAP computers - GLPI plugin
GNU General Public License v3.0
7 stars 6 forks source link

Status of Computer in AD #6

Open EC2311 opened 4 years ago

EC2311 commented 4 years ago

Hello, What is the menaing of this field ? where does it come from ? I don't see it in the differents fields of our AD.

Is it a ping ?

Thanks

akm77 commented 4 years ago

When computer just imported from ldap, plugin check whether computer in database or not. Key field is object guid. If computer just imported plugin assign status New. If computer already exist in database, plugin checking changes in attributes and if attributes were changed, status change to Active. And finally, if computer exist in databes, but not found in just imported computers status changing to Not found. The last case mean that computer were removed from from domain. Plugin doesn't immediatly remove such computer from database. It will be remove after number days assigned in Delete outdated computers in advansed info tab. I will be grateful for the comments.

EC2311 commented 4 years ago

ok, I thought iwas linked to a 'ping' function done when gettign the computers : for instance : "not found" was : exist in AD but not pinging..

so summary : NEW : just found with tools Active : already exist in table of tool (as new or active) Not found -> deleted from AD

ok we can imagine (an automatic command) to ping the list of computer (present in glpi table) to add the information of ping in your table ;)

akm77 commented 4 years ago

I think about this possibility (i.e. ping) . But at the moment my thought is the best way is ping by ip address, because your dns server may doesn't resolve name of your computers in AD for some reason, for example security requirements. By the way take a look for plugin shellcomands. It may be nice start point to automate ping polling.