[op5-users] ninja

a.hanifi at ville.laval.qc.ca a.hanifi at ville.laval.qc.ca
Thu Jul 9 18:48:44 CEST 2009


I don't know if im doing something wrong here
I ve just grabbed  the latest snapshot of merlin and ninja from git

So far , Merlin is working just fine .. the only problem I saw so far is that Merlin will not try to reconnect if mysql goes done .. I tested  this by stopping mysql for a couple of minutes .. and starting it again.
Merlin will complaint  DB is still down .. so you just have to restart it again.

On the ninja side the story is a little bit different .
I have run the ninja_db_init.sh  to update the Merlin database , and verified some tables are indeed created .
I can logon to the web interface using the default user/password (monitor/monitor) , the problem is that ninja cannot read in host or services information ..
First test .. I thought maybe it's  not communicating with mysql .. so I stopped mysql service again .. and immediately ninja gave a nice error saying it cannot communicate with mysql!
Sounds cool. I verified the content of the Merlin database .. and as expected the db is ok

mysql> use merlin;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> select count(*) from host;
+----------+
| count(*) |
+----------+
|       18 |
+----------+
1 row in set (0.00 sec)

mysql>
mysql> select count(*) from service;
+----------+
| count(*) |
+----------+
|       60 |
+----------+
1 row in set (0.00 sec)

mysql>

the only page that shows some infos is  the Comments page which show all  the comments.

2-  when I click on  the Host group Overview  I get I little message saying:  The requested group ('windows-servers') wasn't found
So somehow it knows I have a host group named windows-servers .. it just can't show more info about it !
Again when I click on Hostggroup_grid link I get a kohana error :

An error was detected which prevented the loading of this page. If this problem persists, please contact the website administrator.
application/controllers/status.php [1418]:
Invalid argument supplied for foreach()
Stack Trace

 *   application/controllers/status.php [1299]:
Status_Controller->_show_grid( host, APC-Sensors )

 *   application/controllers/status.php [1239]:
Status_Controller->group_grid( host, all )
*         Status_Controller->hostgroup_grid(  )

 *   system/core/Kohana.php [313]:

so from this line:
Status_Controller->_show_grid( host, APC-Sensors )
It somehow know about a group named APC-Sensors.
So This is it .. maybe I missed something ?
Thanks

SunChero





-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.op5.com/pipermail/op5-users/attachments/20090709/d9c2ba55/attachment.html 


More information about the op5-users mailing list