-
Incident report
-
Resolution: Won't fix
-
Major
-
None
-
1.8.1
-
HP-UX test B.11.23 U ia64 1576952155 unlimited-user license
-bash-3.00# gcc -v
Using built-in specs.
Target: ia64-hp-hpux11.23
Configured with: ../gcc/configure
Thread model: single
gcc version 4.1.1
First, problem with iconv. Configure must search iconv.h in /usr/local/include/iconv.h because /usr/include/iconv.h present, but it is not gnu version and it do not compile with zabbix.
Also, iconv libs configure script must search in /usr/local/lib/hpux32 against /usr/local/lib
sysinfo.h. In hp-ux this file present but cannot be compiled. In compilation compilation fails with errors:
-bash-3.00# make
No suffix list.
Making all in src
No suffix list.
Making all in libs
No suffix list.
Making all in zbxcrypto
gcc -DHAVE_CONFIG_H -I. -I../../../include -g -O2 -I/u01/app/oracle/product/10.2.0/db_1/rdbms/public -I/u01/app/oracle/product/10.2.0/db_1/rdbms/demo -I/usr/local/include -MT md5.o -MD -MP -MF .deps/md5.Tpo -c -o md5.o md5.c
In file included from ../../../include/sysinc.h:258,
from ../../../include/common.h:23,
from md5.c:54:
/usr/include/sys/sysinfo.h:187: error: array type has incomplete element type
I solve this compilation problem , remove sysinfo.h from configure
Next, compilation problem with zabbixsms
Making all in zbxsms
gcc -DHAVE_CONFIG_H -I. -I../../../include -g -O2 -I/u01/app/oracle/product/10.2.0/db_1/rdbms/public -I/u01/app/oracle/product/10.2.0/db_1/rdbms/demo -I/usr/local/include -MT sms.o -MD -MP -MF .deps/sms.Tpo -c -o sms.o sms.c
sms.c: In function 'send_sms':
sms.c:249: error: 'CRTSCTS' undeclared (first use in this function)
sms.c:249: error: (Each undeclared identifier is reported only once
sms.c:249: error: for each function it appears in.)
*** Error exit code 1
Stop.
*** Error exit code 1
Stop.
*** Error exit code 1
Stop.
*** Error exit code 1
Stop.
I solved this problem, patches sms.c, remove their functional.
After this zabbix server compiles, but dies. Backend is oracle. Zabbix proxy have same problem Versions 1.8.1, 1.8.2
This is log file:
5683:20100212:185938.406 Starting zabbix_server. Zabbix 1.8.2 (revision 10104).
5683:20100212:185938.407 **** Enabled features ****
5683:20100212:185938.407 SNMP monitoring: NO
5683:20100212:185938.407 IPMI monitoring: NO
5683:20100212:185938.407 WEB monitoring: NO
5683:20100212:185938.407 Jabber notifications: NO
5683:20100212:185938.407 ODBC: NO
5683:20100212:185938.407 SSH2 support: NO
5683:20100212:185938.407 IPv6 support: NO
5683:20100212:185938.407 **************************
5683:20100212:185938.411 Connect to the database
5683:20100212:185938.558 Query [txnlev:0] [select refresh_unsupported from config where 1=1 and configid between 200000000000000 and 299999999999999]
5683:20100212:185938.737 Query [txnlev:0] [select masterid from nodes where nodeid=2]
5683:20100212:185938.787 In DBupdate_triggers_after_restart()
5683:20100212:185938.787 Query [txnlev:1] [select distinct t.triggerid,t.expression,t.description,t.status,t.priority,t.value,t.url,t.comments from hosts h,items i,triggers t,functions f where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=t.triggerid and h.status in (0) and i.status in (0) and t.status in (0) and i.type not in (2) and i.key_ not in ('status','zabbix[log]')]
5683:20100212:185938.918 End of DBupdate_triggers_after_restart()
5683:20100212:185938.922 In init_database_cache() size:29361112
5683:20100212:185938.923 In init_configuration_cache() size:314572800
5685:20100212:185938.925 server #1 started [DB Cache]
5685:20100212:185938.925 In main_dbconfig_loop()
5685:20100212:185938.925 Connect to the database
5687:20100212:185938.931 server #2 started [Poller. SNMP: NO]
5687:20100212:185938.932 In main_poller_loop() poller_type:0 poller_num:1
5687:20100212:185938.932 Connect to the database
5688:20100212:185938.937 server #3 started [Poller. SNMP: NO]
5688:20100212:185938.938 In main_poller_loop() poller_type:0 poller_num:2
5688:20100212:185938.938 Connect to the database
5690:20100212:185938.938 server #4 started [Poller. SNMP: NO]
5690:20100212:185938.938 In main_poller_loop() poller_type:0 poller_num:3
5690:20100212:185938.938 Connect to the database
5691:20100212:185938.940 server #5 started [Poller. SNMP: NO]
5691:20100212:185938.940 In main_poller_loop() poller_type:0 poller_num:4
5691:20100212:185938.940 Connect to the database
5692:20100212:185938.941 server #6 started [Poller. SNMP: NO]
5692:20100212:185938.942 In main_poller_loop() poller_type:0 poller_num:5
5692:20100212:185938.942 Connect to the database
5693:20100212:185938.943 server #7 started [Alerter]
5693:20100212:185938.943 Connect to the database
5694:20100212:185938.945 server #8 started [Housekeeper]
5698:20100212:185938.949 server #10 started [Node watcher. Node ID:2]
5698:20100212:185938.950 In main_nodeupdater_loop()
5698:20100212:185938.950 Connect to the database
5700:20100212:185938.951 server #11 started [DB Syncer]
5700:20100212:185938.951 In main_dbsyncer_loop()
5700:20100212:185938.951 Connect to the database
5683:20100212:185938.952 server #0 started [Watchdog]
5683:20100212:185938.952 In main_watchdog_loop()
5683:20100212:185938.952 Connect to the database
5702:20100212:185938.952 server #12 started [Escalator]
5702:20100212:185938.953 In main_escalator_loop()
5702:20100212:185938.953 Connect to the database
5695:20100212:185938.955 server #9 started [Timer]
5695:20100212:185938.956 Connect to the database
5685:20100212:185939.009 Syncing ...
5685:20100212:185939.010 In DCsync_confguration()
5685:20100212:185939.010 In DCsync_hosts()
5685:20100212:185939.010 Query [txnlev:0] [select hostid,proxy_hostid,host,useip,ip,dns,port,status,useipmi,ipmi_ip,ipmi_port,ipmi_authtype,ipmi_privilege,ipmi_username,ipmi_password,maintenance_status,maintenance_type,maintenance_from,errors_from,available,disable_until,snmp_errors_from,snmp_available,snmp_disable_until,ipmi_errors_from,ipmi_available,ipmi_disable_until from hosts where status in (0) and hostid between 200000000000000 and 299999999999999 order by hostid]
5685:20100212:185939.016 End of DCsync_hosts()
5685:20100212:185939.016 In DCsync_items()
5685:20100212:185939.016 Query [txnlev:0] [select i.itemid,i.hostid,h.proxy_hostid,i.type,i.data_type,i.value_type,i.key_,i.snmp_community,i.snmp_oid,i.snmp_port,i.snmpv3_securityname,i.snmpv3_securitylevel,i.snmpv3_authpassphrase,i.snmpv3_privpassphrase,i.ipmi_sensor,i.delay,i.delay_flex,i.trapper_hosts,i.logtimefmt,i.params,i.status,i.authtype,i.username,i.password,i.publickey,i.privatekey from items i,hosts h where i.hostid=h.hostid and h.status in (0) and i.status in (0,3) and i.itemid between 200000000000000 and 299999999999999 order by i.itemid]
5683:20100212:185939.036 In init_config()
5683:20100212:185939.036 Query [txnlev:0] [select mt.mediatypeid, mt.type, mt.description, mt.smtp_server, mt.smtp_helo, mt.smtp_email, mt.exec_path, mt.gsm_modem, mt.username, mt.passwd, m.mediaid,m.userid,m.mediatypeid,m.sendto,m.severity,m.period from media m, users_groups u, config c,media_type mt where m.userid=u.userid and u.usrgrpid=c.alert_usrgrpid and m.mediatypeid=mt.mediatypeid and m.active=0]
5690:20100212:185939.037 In get_values()
5690:20100212:185939.037 In DCinit_nextchecks()
5690:20100212:185939.037 In DCconfig_get_poller_items() poller_type:0 poller_num:2
5690:20100212:185939.037 End of DCconfig_get_poller_items():0
5690:20100212:185939.037 In DCflush_nextchecks()
5690:20100212:185939.037 End of get_values()
5690:20100212:185939.037 In DCconfig_get_normal_poller_nextcheck() poller_type:0 poller_num:2
5690:20100212:185939.037 End of DCconfig_get_normal_poller_nextcheck():-1
5690:20100212:185939.037 Poller #2 spent 0.000292 seconds while updating 0 values. Sleeping for 5 seconds
5685:20100212:185939.040 End of DCsync_items()
5685:20100212:185939.040 End of DCsync_confguration() time:0.030737sec. pfree:99.999938%
5685:20100212:185939.041 DB config spent 0.031053 second while processing configuration data. Nextsync after 60 sec.
5698:20100212:185939.051 Starting sync with nodes
5698:20100212:185939.051 In main_historysender()
5698:20100212:185939.051 Sleeping 10 seconds
5688:20100212:185939.052 In get_values()
5688:20100212:185939.052 In DCinit_nextchecks()
5688:20100212:185939.052 In DCconfig_get_poller_items() poller_type:0 poller_num:1
5688:20100212:185939.052 End of DCconfig_get_poller_items():0
5688:20100212:185939.052 In DCflush_nextchecks()
5688:20100212:185939.052 End of get_values()
5688:20100212:185939.052 In DCconfig_get_normal_poller_nextcheck() poller_type:0 poller_num:1
5688:20100212:185939.052 End of DCconfig_get_normal_poller_nextcheck():-1
5688:20100212:185939.052 Poller #1 spent 0.000241 seconds while updating 0 values. Sleeping for 5 seconds
5692:20100212:185939.075 In get_values()
5692:20100212:185939.076 In DCinit_nextchecks()
5692:20100212:185939.076 In DCconfig_get_poller_items() poller_type:0 poller_num:4
5692:20100212:185939.076 End of DCconfig_get_poller_items():0
5692:20100212:185939.076 In DCflush_nextchecks()
5692:20100212:185939.076 End of get_values()
5692:20100212:185939.076 In DCconfig_get_normal_poller_nextcheck() poller_type:0 poller_num:4
5692:20100212:185939.076 End of DCconfig_get_normal_poller_nextcheck():-1
5692:20100212:185939.076 Poller #4 spent 0.000317 seconds while updating 0 values. Sleeping for 5 seconds
5702:20100212:185939.081 In process_escalations()
5702:20100212:185939.082 Query [txnlev:0] [select escalationid,actionid,triggerid,eventid,r_eventid,esc_step,status from escalations where status in (0,1) and nextcheck<=1265965179 and escalationid between 200000000000000 and 299999999999999]
5695:20100212:185939.093 Query [txnlev:0] [select distinct i.itemid,i.key_,h.host,h.port,i.delay,i.description,i.type,h.useip,h.ip,i.history,i.lastvalue,i.prevvalue,i.hostid,i.value_type,i.delta,i.prevorgvalue,i.lastclock,i.units,i.multiplier,i.formula,i.status,i.valuemapid,h.dns,i.trends,i.lastlogsize,i.data_type,i.mtime from hosts h,items i, functions f where h.hostid=i.hostid and h.status=0 and i.status=0 and f.function in ('nodata','date','dayofweek','time','now') and i.itemid=f.itemid and (h.maintenance_status=0 or h.maintenance_type=0) and h.hostid between 200000000000000 and 299999999999999]
5687:20100212:185939.142 In get_values()
5687:20100212:185939.142 In DCinit_nextchecks()
5687:20100212:185939.142 In DCconfig_get_poller_items() poller_type:0 poller_num:0
5687:20100212:185939.142 End of DCconfig_get_poller_items():0
5687:20100212:185939.142 In DCflush_nextchecks()
5687:20100212:185939.142 End of get_values()
5687:20100212:185939.142 In DCconfig_get_normal_poller_nextcheck() poller_type:0 poller_num:0
5687:20100212:185939.142 End of DCconfig_get_normal_poller_nextcheck():-1
5687:20100212:185939.142 Poller #0 spent 0.000288 seconds while updating 0 values. Sleeping for 5 seconds
5702:20100212:185939.144 Escalator spent 0.062118 seconds while processing escalation items. Nextcheck after 3 sec.
5693:20100212:185939.144 Query [txnlev:0] [select a.alertid,a.mediatypeid,a.sendto,a.subject,a.message,a.status,mt.mediatypeid,mt.type,mt.description,mt.smtp_server,mt.smtp_helo,mt.smtp_email,mt.exec_path,mt.gsm_modem,mt.username,mt.passwd,a.retries from alerts a,media_type mt where a.status=0 and a.mediatypeid=mt.mediatypeid and a.alerttype=0 and mt.mediatypeid between 200000000000000 and 299999999999999 order by a.clock]
5695:20100212:185939.146 In process_maintenance()
5695:20100212:185939.146 Query [txnlev:0] [select m.maintenanceid,m.maintenance_type,m.active_since,tp.timeperiod_type,tp.every,tp.month,tp.dayofweek,tp.day,tp.start_time,tp.period,tp.start_date from maintenances m,maintenances_windows mw,timeperiods tp where m.maintenanceid=mw.maintenanceid and mw.timeperiodid=tp.timeperiodid and 1265965179 between m.active_since and m.active_till]
5700:20100212:185939.147 Syncing ...
5700:20100212:185939.147 In DCsync_history(history_first:0 history_num:0)
5700:20100212:185939.147 DB syncer spent 0.000064 second while processing 0 items. Nextsync after 5 sec.
5691:20100212:185939.154 In get_values()
5691:20100212:185939.154 In DCinit_nextchecks()
5691:20100212:185939.154 In DCconfig_get_poller_items() poller_type:0 poller_num:3
5691:20100212:185939.154 End of DCconfig_get_poller_items():0
5691:20100212:185939.154 In DCflush_nextchecks()
5691:20100212:185939.154 End of get_values()
5691:20100212:185939.155 In DCconfig_get_normal_poller_nextcheck() poller_type:0 poller_num:3
5691:20100212:185939.155 End of DCconfig_get_normal_poller_nextcheck():-1
5691:20100212:185939.155 Poller #3 spent 0.000227 seconds while updating 0 values. Sleeping for 5 seconds
5683:20100212:185939.178 In ping_database()
5683:20100212:185939.183 One child process died (PID:5706). Exiting ...
5683:20100212:185941.205 Connect to the database
5683:20100212:185941.289 In free_database_cache()
5683:20100212:185941.289 In DCsync_all()
5683:20100212:185941.289 In DCsync_history(history_first:0 history_num:0)
5683:20100212:185941.289 Syncing history data...
5683:20100212:185941.289 In DCsync_trends() trends_num:0
5683:20100212:185941.289 Syncing trends data...
5683:20100212:185941.289 Syncing trends data...done.
5683:20100212:185941.289 End of DCsync_trends()
5683:20100212:185941.289 End of DCsync_all()
5683:20100212:185941.290 End of free_database_cache()
5683:20100212:185941.290 In free_configuration_cache()
5683:20100212:185941.290 End of free_configuration_cache()
5683:20100212:185941.292 Zabbix Server stopped. Zabbix 1.8.2 (revision 10104).