Menu ▾ ▴

#337 IP addresses are disappearing

1.1
closed
9
2015-10-12
2015-08-25
Anonymous
No

When adding static IPs from either MySQL or from the GUI, they would disapear after awhile.

They disppear even if "Check hosts status" and "Discover new hosts" are disabled on the subnet.

Any help is greatly appreciatet, thanks!

2 Attachments

Discussion

  • Benoit Lambert

    Benoit Lambert - 2015-08-25

    FYI this was my post, turns out the addon (pruneOffline.php) was removing recently added IPs, there must be something wrong with it.

     
  • Benoit Lambert

    Benoit Lambert - 2015-08-25

    The script (pruneOffline.php) was getting rid of hosts that weren't pingable (treating them as if they weren't pinged for 5 days, which was my value that I set for the script).

    I don't know how to edit the script in order for it to bypass devices that were never seen...

     
  • Miha Petkovsek

    Miha Petkovsek - 2015-08-26

    Hi, who wrote that script ?

    This should be as simple as running query to database 1x/day, like so:

    Finding offline (to test or similar):

    select * from `ipaddresses` where DATE_SUB(NOW(), INTERVAL 5 day) > `lastSeen` and `lastSeen` != "0000-00-00 00:00:00";
    

    Removing online

    delete from `ipaddresses` where ...
    

    br, Miha

     
  • Miha Petkovsek

    Miha Petkovsek - 2015-10-12
    • status: open --> closed
     

Anonymous
Anonymous

Add attachments
Cancel