You're asking very basic questions! Read books...
Ad Widget
Collapse
Somebody help me !! URGENT!!
Collapse
X
-
-
regarding my basic question
Thanks for ur reply sir.... i know i am not good in these stuffs... i'm trying hard here. can u atleast tell me how i can get to solve the error ---> Cannot connect to [10.239.19.120] [Connection refused] in my zabbix_server.log file ????? ur help will be really appreciated sir.Comment
-
Hi,
lets start from the bottom. First check if you can connect from the windows workstation to the zabbix-linux-server:
At the windows-computer try a telnet 10.239.18.13 10051
If you get a black box and you can get back to the command-line by pressing enter the zabbix-services on the server are running. If you get message telling you you cannot connect to the host eather there is a firewall running on the zabbix server or the processes aren't running.
Then try the same thing from the zabbix-server:
telnet 10.239.19.120 10050
There won't be a prompt, just
Connected to 10.239.19.120
Escape character is '^]'.
If you press enter you will get
ZBX_NOTSUPPORTED
Connection closed by foreign host.
If you get other results eather the zabbix-agent isn't running on the windows-pc or there is a firewall (Windows XP SP2 / Windows 2003 SP1 Firewall?) enabled.Comment
-
telnet
thanks for ur prompt reply
i tried as u said....when i did telnet from windows i got the black screen and when i press "enter" it comes to command line.... but if i dont press enter also it comes back to command line after some time. Is it usual to happen like that?
Next i tried telnet on the linux machine ...as u said and i got these messages
telnet 10.239.19.120 10050
Trying 10.239.19.120...
Connected to 10.239.19.120 (10.239.19.120).
Escape character is '^]'.
Connection closed by foreign host.
but when i press enter as u said i got the message as u said
[zabbix@localhost bin]$ telnet 10.239.19.120 10050
Trying 10.239.19.120...
Connected to 10.239.19.120 (10.239.19.120).
Escape character is '^]'.
ZBX_NOTSUPPORTED
Connection closed by foreign host.
now wat to do? my windows is running service pack 2Comment
-
Not sure, but I think you should disable active checks for now unless you intend to use them.
So in your zabbix_agentd.conf:
... and restart your agent process of course.Code:#ServerPort=10051 DisableActive=1
When I run into trouble I usually go to the most basic configuration and settings and build up step by step from there, so you can easily tell where things get screwy.
I think compiling with net-snmp requires you have that package installed. So if you intend to use it, install net-snmp and compile Zabbix again.
Based on your telnet output, I think your server <-> agent communication works as intended, so their might be something wrong with your GUI setup. Have you tried using any of the template items (Host.Win32 has a few that are backward compatible, so should be usable).
Also, is your agent running on your Windows box (check in the Services window)?Comment
-
It sounds like you can connect through telnet just fine. I also don't see anything wrong with your .conf files that you posted. Personally, I haven't had much luck getting active checks to work with Linux, so all my items are set to ZABBIX_Agent. I HIGHLY recommend you stay away from active checks until you have gotten a simple setup working with normal ZABBIX_Agent items. Here are some things to check:
If you have both the zabbix server running, and you have the zabbix agentd on the Windows PC running, then take a look at your Zabbix web interface. Click on Configuration -> Hosts and make sure you have set up a host that points to the Windows PC. To double check if you have set yours up here are the steps: Enter a name for the host into the Host text box, click Use IP Address, and enter the Windows PC's IP address. Everything else is fine to leave as default, so click Add.
Once you have a host, you have to add items for it. From the Hosts screen, click the name of the host that corresponds to the Windows PC. In the text box at the bottom, enter these values at add an item:
Description: Outgoing traffic on interface eth0 (1min)
Type: Zabbix agent
key: netloadout1[eth0]
units: Bps
and leave everything else at its default value. Click Add.
Now, with that setup, you should be able to look at that host's latest data, and see it gathering the amount of outgoing traffic on your ethernet device once every minute.
If that does not work, then something else is going on. If it does work, then you can start adding more items that come built into zabbix.Comment
-
We're all willing to help you out here, but you also need to make some effort.
I suspect that there is nothing wrong with your installation at all, you simply don't have any items defined and you are getting hung up on the error message in the client file that it can't connect back to the server. It is safe to ignore this unless your items are of the type ZABBIX_Active, which they should not be.
Does your server show with a Monitored status in the hosts section of the web front end? If so, go check the documentation section and add some items, I think you'll see it's working correctly.Comment
-
its working
Guys!!
Yesterday i finally got some values recorded. My configuration is working for active checks only. I got many values recoorded. I added items to monitor CPU utilization. And there is some problem with my windows pc where my agent is working. The linux box is not connecting to my windows agent. That's why i am getting "connection refused error" in my server log. But my active checks were getting recorded into server. So like that i saw the graph for the first time..and i am thrilled.
Thank u so much guys.... u rock!! I'm still in the process of checking other items. and i also want to find out about why my windows PC is refusing the connection from the linux server. Windows firewall is OFF. but there is a mac afee s/w installed.... i dont know whether that's responsible for it. I dont have any control over it...i'm on a network and i am not the admin of it.
will get back to u with updates...thanks again...
Comment
-
I am sure McAfee is blocking all incoming traffic on port 10050. In fact, it should block traffic on that port, unless there is a reason not to. If you use Zabbix, there is obviously a reason not to block that particular port. So take a look at the McAfee config and open up port 10050. Whether you are a network admin or not shouldn't matter because it's a piece of software on your PC.Originally posted by BharathuI'm still in the process of checking other items. and i also want to find out about why my windows PC is refusing the connection from the linux server. Windows firewall is OFF. but there is a mac afee s/w installed.... i dont know whether that's responsible for it. I dont have any control over it...i'm on a network and i am not the admin of it.)
Cudo's on getting your setup working btw
Comment
-
reg Mac Afee firewall
I really have no control on it. I went thru the firewall setting where we can change access on the ports. All those fields were disabled. I cannot do any thing. I am still trying to find some other way out. Just like the active checks i have a strong feeling i can make the server polling method also work.
For the time being i am getting thrilled seeing these supeb graps i'm getting. 20 days of hard work paid off finally.
Comment
-
Server Polling Working !!
Hello everybody...
Now i got the server polling also working... it is doing a great job. For server polling these are the modification required in the windows agent config file.
Server=10.239.18.13
#ServerPort=10051
#Hostname=10.239.52.10 (windows host)
ListenPort=10050
ListenIP=10.239.18.13 (my zabbix server installed here)
Also i added the host from the WEB Gui with post "10050" and selected add the "item" with "zabbix agent" type.
this worked for me
Comment
Comment