PDA

View Full Version : PB to login with the webgui


chebichev
18-01-2005, 11:26
Hello,

Im trying to use zabbix,

I use zabbix-1.0.tar.gz
I created the user zabbix
I created the database zabbix with postgresql ... OK
I installed frontends/php on apache ... OK
I configure db.inc.php (db zabbix, user zabbix)

--> when i connect to http://localhost
I have the login page, but I can't log with default account: "admin" " ".

I wonder if it is normal that I haven"t zabbix_server on bin directory,
only zabbix_agent,agentd,sender

Is zabbix_server only available for commercial version ?


(sorry for english mistakes, cause im french..)


thanks for all !

:) Jeremy :)

Alexei
18-01-2005, 11:31
Why you're looking for zabbix_server? it's available only in 1.1alpha3 and later versions.

Also, use Admin, not admin!

Please, read documentation :)

chebichev
18-01-2005, 11:42
sorry bad documentation guide

ok i reconfigure everything and i have suckerd+trapperd,
however, after lauching suckerd,trapperd,agentd, i can't login in the browser with "admin"

in /tmp/zabbix_suckerd.log i have :

006129:20050118:145052 Got QUIT or INT or TERM or PIPE signal. Exiting...
006133:20050118:145052 Got QUIT or INT or TERM or PIPE signal. Exiting...
006135:20050118:145052 Got QUIT or INT or TERM or PIPE signal. Exiting...
006137:20050118:145052 Got QUIT or INT or TERM or PIPE signal. Exiting...
006129:20050118:145052 One child process died. Exiting ...
006129:20050118:145052 Cannot remove PID file [/var/tmp/zabbix_suckerd.pid] [No such file or directory]
006199:20050118:145055 Starting zabbix_suckerd...
006201:20050118:145055 zabbix_suckerd #1 started [Alerter]
006201:20050118:145055 Query::select a.alertid,a.mediatypeid,a.sendto,a.subject,a.messa ge,a.status,a.retries,mt.mediatypeid,mt.type,mt.de scription,mt.smtp_server,mt.smtp_helo,mt.smtp_emai l,mt.exec_path from alerts a,media_type mt where a.status=0 and a.retries<3 and a.mediatypeid=mt.mediatypeid order by a.clock
006201:20050118:145055 Query failed:PGRES_FATAL_ERROR
006203:20050118:145055 zabbix_suckerd #2 started [nodata() calculator]
006205:20050118:145055 zabbix_suckerd #3 started [ICMP pinger]
006199:20050118:145055 zabbix_suckerd #0 started [Housekeeper]
006207:20050118:145055 zabbix_suckerd #4 started [Sucker. SNMP:OFF]
006199:20050118:145107 Query::delete from alerts where clock<1074520255
006199:20050118:145107 Query failed:PGRES_FATAL_ERROR
006199:20050118:145107 Query::vacuum analyze alerts
006199:20050118:145107 Query failed:PGRES_FATAL_ERROR
006199:20050118:145107 Query::vacuum analyze actions
006199:20050118:145107 Query failed:PGRES_FATAL_ERROR

chebichev
25-01-2005, 10:27
is anyone can help me ?
up :)

sauron
25-01-2005, 11:02
check your postgresq config.

Simple run

netstat -pvnlA inet

zabbix working with PostgreSQL over tcp/ip ;)

chebichev
26-01-2005, 14:40
OK, now i'v tried with mysql :

-database zabbix created OK ( user: root , database used: zabbix)

-schema + data : OK ( when i do : select * from users i saw "admin" and "guest")

- ./configure -with-mysql -with-ucd-snmp OK

- make: OK

- i added zabbix_agent 10000/tcp +zabbix_trap 10001/tcp in the end of /etc/services

- file db.inc.php : type:mysql , database: zabbix, user:root (no pass)

- all docs in /home/zabbix/public_html

- file * /etc/zabbix/zabbix_agent.conf : UNCHANGED
* /etc/zabbix/zabbix_agentd.conf: UNCHANGED
* /etc/zabbix/zabbix_suckerd.conf: dbhost=localhost dbname=zabbix, dbuser:root
* /etc/zabbix/zabbix_trapperd.conf dbhost=localhost dbname=zabbix, dbuser:root


---> all seems to be OK in /tmp/zabbix_suckerd.log zabbix_trapperd.log an zabbix_agentd.log

- http://127.0.0.1/~zabbix
> the url is OK but I can't log with Admin and no password.. (i have the login webpage)


I'm Sorry ,I know that I did errors, but I can't resolve them myself .
thanks everybody !


ps : with netstat -pvnlA inet i have (with others)
TCP 0.0.0.0:3306 mysqld
TCP " :10000 zabbix_agentd
TCP " :10001 zabbix_trapperd

Alexei
26-01-2005, 14:43
the url is OK but I can't log with admin and no password.. (i have the login webpage) You cannot login as admin or Admin??? See my very first post, default name is Admin.

chebichev
26-01-2005, 15:24
I try admin and Admin.

Now I've just created a mysql user zabbix with pass zabbix.
i modif db.inc.php, and all serveur conf in /etc/zabbix

and i'm going to test with

chebichev
27-01-2005, 09:41
With another mysql user, the problem is the same, so i keep user root and no password.

i'm trying another way to explain what i've done:

$mysql -u root
mysql> select * from zabbix.users;
" i saw two lines Admin and guest" .

in /home/zabbix/public_html/db.inc.php :
$DB_TYPE ="MYSQL"
$DB_SERVER="localhost"
$DB_DATABASE="zabbix"
$DB_USER="root" (db_pass = "")

I try ./usr/local/bin/zabbix_suckerd and zabbix_trapperd
(initially i have only zabbix_agent, sender and trapper in the directory )

my logs :
zabbix_suckerd.log
".....starting zabbix_suckerd"
".... #0 started (housekeeper)"
"..... #3 started (ICMP pinger)"
"......#1 started (Alerter)"
".......#4 started (sucker. SNMP ON)"
".......#2 started (nodata() calculator)"

zabbix_trapperd.log
idem: 6 lines with "zabbix_trapperd started" ( 11996 11997 11998 12000 11999)

I think zabbix, and mysql are correctly installed.

(files /etc/zabbix_suckerd.conf,trapperd.conf are configured with db zabbix, and user root)


- May i use the line DBSocket=/tmp/mysql.sock (i'v found /var/lib/mysql.sock on my system) ?
-Is it possible that i forgot anything on apache configuration ?

However, i have the login page with http://127.0.0.1/~zabbix


:o Thanks everybody for everything, I understand that it must be so boring to help me with my stupid problem ! :o

chebichev
27-01-2005, 15:35
I did exactly the same thing under ubuntu this morning,
and it's OK !!!


thanks everybody, now i can start playing with !!!!:D :D :D