OpenNetAdmin

Track. Automate. Configure.

Home About Features Community Develop
Download this project as a tar.gz file

Problem selecting host

sdaa

23-03-2009 07:46:44

I imported hosts to one subnet, but after that I cannot select a single host in any subnet. The workspace just waits and waits....

How do I troubleshoot this?

Regards
Stig

Matt

23-03-2009 08:50:25

First off, I'm curious if you can view and select subnets correctly? Is it just hosts that do not show their workspace info?

The best way to do debugging at this point is to bump up the debug log level for ONA. It should be logging data to /var/log/ona.log by default. I dont have a nice GUI to bump this up yet so you will need to make the adjustment via SQL. The easiest way to do that is to use a tool like phpmyadmin, but in lieu of that, here is the direct query to run.

update sys_config set value = 6 where name like 'debug';

This would be ran after logging into mysql of course.. that might look something like this:

mysql -u ona_sys -p ona

Now you should start to see a TON of stuff logging in /var/log/ona.log. I usually do a tail -f on that file and watch it as I do various tasks in the browser.

sdaa

23-03-2009 09:51:07

I can select the subnet and see all the hosts, ie I select the campus, the the vlan and then click on the subnet. So I can see all the hosts. But when I click a host in the subnet, then everything times out.

It's however possible to use the command line to find out info:
(have cut out some details.

host_display host=172.22.32.16
HOST RECORD (rvbyvbr01.xxxxx)
id 30
primary_dns_id 78
device_id 22
name rvbyvbr01
--
ASSOCIATED INTERFACE RECORD (1 of 1)
id 36
subnet_id 22 (xxxx)
host_id 30 (rvbyvbr01.xxx)
ip_addr 172.22.32.16
ip_addr_text 172.22.32.16

ASSOCIATED DEVICE RECORD
id 22
device_type_id 6

dns_record_display name=78
DNS A RECORD (rvbyvbr01.xxxx)
id 78
domain_id 31 (xxx)
interface_id 36 (172.22.32.16)
type A
name rvbyvbr01
ebegin 2009-03-20 15:58:58

ASSOCIATED PTR RECORD (1 of 1)
id 79
domain_id 12 (22.172.in-addr.arpa)
interface_id 36 (172.22.32.16)
dns_id 78
type PTR
ebegin 2009-03-20 15:58:58

Regards
Stig

sdaa

23-03-2009 09:55:58

And I have enabled logging to ona.log, but I can't see anything useful int that log......

Stig

sdaa

23-03-2009 12:15:15

Mea culpa, I messed up things myself.

By changing the file
/opt/ona/www/workspace_plugins/builtin/host_actions/config.inc.php
to something faulty, things stopped working. By removing this file everything is fine again.

Don't now right now what was wrong with the file, but now it's easier to debug things.

Regards
Stig