Koozali.org: home of the SME Server

Zabbix 1.0 How-to

kangkc

Zabbix 1.0 How-to
« Reply #15 on: March 06, 2005, 05:01:49 AM »
Drywalldude,
What I'm using is using the PING method in Zabbix to monitor the availability of the LAN hosts.

Try to do a ping from the Zabbix machine to you localhost, chances is if you are able to ping, you should be able to monitor.

Alternatively is to use SNMP which I have not gone into the detail as it's another different world with SNMP

Zabbix website has a very active and responsive community forum which I suggest to post your question on Zabbix site.  

As for the SMS gateway, it's basically text service gateway able to text message to your cellular phone (or known as mobile phone) which you will need a GSM modem connected to the SMS gateway. FYI.

Offline Drifting

  • ****
  • 431
  • +0/-0
Error connecting to database
« Reply #16 on: March 19, 2005, 03:56:26 PM »
Error connecting to database [Access denied for user: 'www@localhost' (Using password: NO)]

Using Tony Keanes Howto for Zabbix.

Any ideas? I have been in touch with Tony and he suggested a few things to try, one of which was the username & db name, which were set the same as his example he sent in the file zabbix_trapperd.conf.

I have reset the Mysql username as per Tony's instructions, still the same.

Not wanting to keep emailing and harrasing him, does any one have an idea why I get the above?
Infamy, Infamy, they all have it in for me!

dswillia

Zabbix 1.0 How-to
« Reply #17 on: March 19, 2005, 04:51:55 PM »
You need to edit the db.inc.php in the includes folder.  Set your dbname, user, and pasword accordingly.

Regards

Offline Drifting

  • ****
  • 431
  • +0/-0
Zabbix 1.0 How-to
« Reply #18 on: March 19, 2005, 07:58:24 PM »
Quote from: "dswillia"
You need to edit the db.inc.php in the includes folder.  Set your dbname, user, and pasword accordingly.

Regards


Whoo hooo that was it...

Thanks
Infamy, Infamy, they all have it in for me!

drywalldude

Anyone graphing "local host" I wold like to see??
« Reply #19 on: March 20, 2005, 02:22:15 AM »
My original idea was to have this graph the server itself "localhost" (even though I realize the smnp potential) I would like to know how this is accomplished ? as I have been a cati nut, and this looks even better!!! 8-)

kangkc

Zabbix 1.0 How-to
« Reply #20 on: March 20, 2005, 05:29:29 AM »
If it's just for localhost, you will have to decide what to monitor. HTTP port, SMTP etc.

For localhost actually I use sysmon as it doesn't make sense for availability (for my case) monitoring if the localhost is down, eveything on the localhost will be down including Zabbix.

chapan

Zabbix 1.0 How-to
« Reply #21 on: April 22, 2005, 02:37:06 AM »
Hi All,


I recently installed zabbix but it doesnot work for me.
I am able to browse the pages as well as able to start the services but data is collected I am monitoring the localhost where the zabbix is loaded as a test. I have started suckerd trapperd and agentd.
When I check in the webpage under the STATUS OF ZABBIX  

it shows no for both Is zabbix_suckerd running ? and
Is zabbix_trapperd running ?

can someone guide me on this

Thanks

Chapan

kangkc

Zabbix 1.0 How-to
« Reply #22 on: April 22, 2005, 02:58:51 AM »
You probably want to do some fundamental check on the daemons.

Log in to SME as root and do a 'ps' command in shell to check is the Zabbix related daemons started? Most probbaly it's not juding from what you mentioned. Check the config files that relating to the daemon to see any possible config problem etc.

chapan

Zabbix 1.0 How-to
« Reply #23 on: April 22, 2005, 06:59:01 PM »
Thanks For ur reply. ... I have tried that and it shows as zabbix_suckerd and zabbix_agentd running.
If I use lsof -i cammand and check it shows zabbix_agent and zabbix_trap.
I have checked the configuration files and I have configured the required details.

And to correct my mentioning in the earlier post there no new data collected.

Thanks

Chapan

kangkc

Zabbix 1.0 How-to
« Reply #24 on: April 23, 2005, 03:45:06 AM »
You mentioned that when you open the status page on Zabbix, you see the suckerd and trapperd is not running. Correct me if I'm wrong.

Can you double check the MySQL parameters to make sure the DB, id, password are correct.

The other things you can do is to change the debug option in the config files and look at the logfile parameters to see you notice any error captured in the log file.

I guess the log file will be the best bet to see what really happened.

Let me know if you need further assistance. Have not touched the Zabbix for almost a year since I have it running. That's the beauty of SME........

chapan

Zabbix 1.0 How-to
« Reply #25 on: April 26, 2005, 09:17:13 PM »
yes when I check on the [STATUS OF ZABBIX] tab Is zabbix_suckerd running ? and Is zabbix_trapperd running ? shows the vaule as "NO".

I have checked the MySQL parameters and all are correct if not it will give error when suckerd or traperd start.

As u suggeted I enabled the debug mode in all the cobf files except for sukkered others are not giving any new info except that the service started.

In sukkered log I find lot of info But I am not able to make sense out of it.

I will paste a sample of it here Hope you would be able to identifiy the problem.

009714:20050426:114603 Executing query:select a.alertid,a.mediatypeid,a.sendto,a.subject,a.message,a.status,a.retries,mt.mediatypeid,mt.type,mt.description,mt.smtp_server,mt.smtp_helo,mt.smtp_email,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
009714:20050426:114603 In DBnum_rows
009716:20050426:114603 Executing query:select distinct f.itemid,f.functionid,f.parameter from functions f, items i,hosts h where h.hostid=i.hostid and (h.status=0 or (h.status=2 and h.disable_until<1114541163)) and i.itemid=f.itemid and f.function='nodata' and i.lastclock+f.parameter<=1114541163 and i.status=0 and i.type=2 and f.lastvalue<>1
009716:20050426:114603 In DBnum_rows
009714:20050426:114633 Executing query:select a.alertid,a.mediatypeid,a.sendto,a.subject,a.message,a.status,a.retries,mt.mediatypeid,mt.type,mt.description,mt.smtp_server,mt.smtp_helo,mt.smtp_email,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
009714:20050426:114633 In DBnum_rows
009716:20050426:114633 Executing query:select distinct f.itemid,f.functionid,f.parameter from functions f, items i,hosts h where h.hostid=i.hostid and (h.status=0 or (h.status=2 and h.disable_until<1114541193)) and i.itemid=f.itemid and f.function='nodata' and i.lastclock+f.parameter<=1114541193 and i.status=0 and i.type=2 and f.lastvalue<>1
009716:20050426:114633 In DBnum_rows
009723:20050426:114652 Executing query:select i.itemid,i.key_,h.host,h.port,i.delay,i.description,i.nextcheck,i.type,i.snmp_community,i.snmp_oid,h.useip,h.ip,i.history,i.lastvalue,i.prevvalue,i.hostid,h.status,i.value_type,h.network_errors,i.snmp_port,i.delta,i.prevorgvalue,i.lastclock from items i,hosts h where i.nextcheck<=1114541212 and i.status=0 and i.type not in (2) and (h.status=0 or (h.status=2 and h.disable_until<=1114541212)) and h.hostid=i.hostid and i.itemid%1=0 and i.key_<>'status' and i.key_<>'icmpping' and i.key_<>'icmppingsec' order by i.nextcheck
009723:20050426:114652 In DBnum_rows
009723:20050426:114652 Spent 0 seconds while updating values
009723:20050426:114652 Executing query:select count(*),min(nextcheck) from items i,hosts h where (h.status=0 or (h.status=2 and h.disable_until<1114541212)) and h.hostid=i.hostid and i.status=0 and i.type not in (2) and i.itemid%1=0 and i.key_<>'status' and i.key_<>'icmpping' and i.key_<>'icmppingsec'
009723:20050426:114652 In DBnum_rows
009723:20050426:114652 Result of DBnum_rows [1]
009723:20050426:114652 Nextcheck:-1 Time:1114541212
009723:20050426:114652 Sleeping for 60 seconds
009718:20050426:114652 In create_host_file()
009718:20050426:114652 Executing query:select distinct h.ip from hosts h,items i where i.hostid=h.hostid and (h.status=0 or (h.status=2 and h.disable_until<=1114541212)) and (i.key_='icmpping' or i.key_='icmppingsec') and i.type=3 and i.status=0 and h.useip=1
009718:20050426:114652 In DBnum_rows
009718:20050426:114652 Executing query:select distinct h.host from hosts h,items i where i.hostid=h.hostid and (h.status=0 or (h.status=2 and h.disable_until<=1114541212)) and (i.key_='icmpping' or i.key_='icmppingsec') and i.type=3 and i.status=0 and h.useip=0
009718:20050426:114652 In DBnum_rows

chapan

Zabbix 1.0 How-to
« Reply #26 on: April 27, 2005, 02:39:52 AM »
thanks for taking out time to help me.

The problem got solved as I happend to restart the server and the status shows "yes".

Yet to check on other configuration.