View Full Version : How check custom port ?
When i'm add tcp,,4000 but it's not work 'i'm try add tcp,4000 and this not work. I'm got in log:
Simple check [net.tcp.service[tcp,,4000,tp.core]] is not supported
How check custom port ?
Hah... common.c contain not correct params order. Fix in attach. tcp,4000 working.
net.tcp.port[ip,port]
Not working. As simple check i'm got in log:
Simple check [net.tcp.service[net.tcp.port[,4000],tp.core]] is not supported
:rolleyes:
Dave Miller
03-03-2006, 23:26
Would it be possible to get a quick HOW TO posted on the installation of the tcp_port_check.path? That is, unless someone has come up with a better way to make tcp,”port number” work with simple checks.
put patch in zabbix directory. Then run command:
patch -p1 < file_with.patch
Dave Miller
05-03-2006, 05:25
I changed the zabbix path in the patch to make it correct, for my install.
Then ran: patch -p1 < file_with.patch
./configure --parms.....
make
make install
and it worked great.
The only thing is that simple check keys pop, http, and smtp now return a zero, when they are accepting connections.
Thats OK, because tcp,110 tcp,80 and tcp,25 work just fine now...
Thanks again...
Hmm... strange. I'm use ssh key and it's work.
ruckus37
18-04-2006, 13:25
Does this work for 1.1beta8
tcp,port seems to be still broken in beta9 too. Any plans for this to be fixed in the final 1.1? (Hoping so). The attached patch doesn't work in 1.1b9.
Eric
same at my side, in beta9 it isn't working :(
Hi,
we've the same Problem with custom tcp ports. After a while we found two sections of port-checks in the common.c-file (to find it, search for "http"). One section checks the port, the other section does the performance-ceck
Both sections look like this:
.
.
else if(strcmp(service,"http") == 0)
{
if(port == 0) port=80;
ret=tcp_expect(ip,port,NULL,NULL,"",&value_int);
}
.
.
To create your own port service, duplicate the section, change "http" to a key, what do want, change port to the port you want to check!
Do this for both sections!
Now it should look like this:
.
.
else if(strcmp(service,"http") == 0)
{
if(port == 0) port=80;
ret=tcp_expect(ip,port,NULL,NULL,"",&value_int);
}
else if(strcmp(service,"mssql") == 0)
{
if(port == 0) port=1433;
ret=tcp_expect(ip,port,NULL,NULL,"",&value_int);
}
.
.
We used it to create sections for:
- Microsoft SQL Server
- Microsoft RDP Service
- Pervasive SQL Server
The Port-Check works well. We don't test the performance-check.
If anyone needs the section we used, we can post it here!
Bye
Koko
cybaspace
26-04-2006, 16:43
we run zabbix version 1.1b9 and it still doesn't do simple tcp checks (even after the patch)
Any idea when it's fixed? Would be verry handy you know ... :p
ad@kbc-clearing.com
26-04-2006, 22:02
The tcp,port simple check is really very important for us, and works fine in 1.1b2.
We are really looking forward to move to a newer release, with so many nice new features.
Hopefully, someone can make a patch for this nasty bug.
Hello Cybaspace,
do you test the patch or do you change the common.c file manualy?
In any case you have to rebuild an restart zabbix!
Koko
hi koko,
i tried to modify the common.c but simple cheks for my ports fail :(
i have to monitor if our ICA-farm is up and runnig therefore i have to check if tcp-port 1494 and 2512 is accepting connections. error still the same: Simple check [net.tcp.service[ica,icatestserver]] is not supported
cybaspace
27-04-2006, 08:08
Hello Cybaspace,
do you test the patch or do you change the common.c file manualy?
In any case you have to rebuild an restart zabbix!
Koko
I didn't use the workaround you described, because we monitor a lot of ports, so that would be a lot of work to put them in manually ;-0
I used the patch that was posted at the beginning of this thread.
I have used the pach and checked if the changes where made in the source. Recompiled and reinstalled the binaries. After that we restarted everything, but no luck...
hi koko,
i tried to modify the common.c but simple cheks for my ports fail :(
i have to monitor if our ICA-farm is up and runnig therefore i have to check if tcp-port 1494 and 2512 is accepting connections. error still the same: Simple check [net.tcp.service[ica,icatestserver]] is not supported
Hi Globe,
what did you do? Can you show your mods of common.c-file here? I think it looks like this:
...
else if(strcmp(service,"ica1494") == 0)
{
if(port == 0) port=1494;
ret=tcp_expect(ip,port,NULL,NULL,"",&value_int);
}
else if(strcmp(service,"ica2512") == 0)
{
if(port == 0) port=2512;
ret=tcp_expect(ip,port,NULL,NULL,"",&value_int);
}
..
This should be twice in your common.c! Remember to reconfigure, remake and restart zabbix!
Then create two elements, one with the key "ica1494" and one with the key "ica2512".
Koko
thx koko, found the mistake, did no configure, just make the binaries
The issue with incorrect processing of simple checks will be fixed in 1.1beta10.
cybaspace
02-05-2006, 11:33
Till then, won't there be a patch or is the release of beta10 just a matter of days?
The 1.1beta10 will be released this week. Please wait.
ruckus37
02-05-2006, 15:31
yes nice one