![](https://secure.gravatar.com/avatar/21caf0a08d095be7196a1648d20942be.jpg?s=120&d=mm&r=g)
We fixed the "run outside directory" a long time ago, it's chdir'ing to the correct dir when the scripts are started.
Tom
On 14/03/2016 20:31, Adam Armstrong wrote:
Aha. I see. You don't use -h on delete device! I assumed that error was caused by running it outside the correct directory!
Presumably it won't discover because it's marked down by the poller. I'm not sure if we notify about that during discovery, perhaps we don't.
adam.
Sent from Mailbird http://www.getmailbird.com/?utm_source=Mailbird&utm_medium=email&utm_campaign=sent-from-mailbird
On 14/03/2016 17:57:37, Jeffrey d'Ambly jeffrey.dambly@jasper.com wrote:
I don’t see why that matters, there seems to be an issue with something in the db, I still can’t remove this device or poll it.
[root@sjc-corp-net01 observium]# ./delete_device.php -h 176 Observium 0.15.5.6406 Remove Device
Device -h doesn't exist! [root@sjc-corp-net01 observium]#
From: observium <observium-bounces@observium.org mailto:observium-bounces@observium.org> on behalf of Adam Armstrong <adama@memetic.org mailto:adama@memetic.org> Reply-To: Observium Network Observation System <observium@observium.org mailto:observium@observium.org> Date: Monday, March 14, 2016 at 10:49 AM To: "observium@observium.org mailto:observium@observium.org" <observium@observium.org mailto:observium@observium.org> Subject: Re: [Observium] cannot find device
lol?
why are you trying to run observium scripts from your home directory with full path?
adam.
Sent from Mailbird http://www.getmailbird.com/?utm_source=Mailbird&utm_medium=email&utm_campaign=sent-from-mailbird
On 14/03/2016 17:48:14, Jeffrey d'Ambly <jeffrey.dambly@jasper.com mailto:jeffrey.dambly@jasper.com> wrote:
I have a device that I cannot discover or delete, in observium Professional
How can I fix this?
mysql> select hostname, device_id FROM devices WHERE hostname LIKE 'ams-sw121'; +-----------+-----------+ | hostname | device_id | +-----------+-----------+ | ams-sw121 | 176 | +-----------+-----------+ 1 row in set (0.00 sec)
mysql> exit Bye [root@sjc-corp-net01 ~]# /home/observium/discovery.php -h 176 Observium 0.15.5.6406 Discovery
Current Revision : 6406 New Revision : 7674 WARNING: 0 devices discovered. Did you specify a device that does not exist? Memory usage: 4.5MB (peak: 4.5MB) MySQL: Cell[21/0.03s] Row[0/0s] Rows[2/0s] Column[0/0s] Update[0/0s] Insert[0/0s] Delete[0/0s] [root@sjc-corp-net01 ~]#
[root@sjc-corp-net01 ~]# /home/observium/delete_device.php -h 176 Observium 0.15.5.6406 Remove Device
Device -h doesn't exist! [root@sjc-corp-net01 ~]#
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium