Zabbix NetworkManagementStation tracking INN
supraexpress at globaleyes.net
supraexpress at globaleyes.net
Sun May 16 12:02:00 UTC 2004
If anyone is or will be using the opensource Zabbix NMS for network
monitoring, up and beyond simple SNMP things, a two line fix is needed to
allow the Zabbix "client agent daemon" (zabbix_agentd) to properly respond to
INN's "hello" message. As shipped, Zabbix expects a return code of 220 upon a
socket connection with INN where it should be 200. Since I don't know what
other NNTP servers respond with I thought that I would post this here for
INN. This is used in conjunction with Zabbix's "unix-host" template which has
a bunch of services defined for monitoring.
*** sysinfo.c.orig Sun Mar 7 09:06:56 2004
--- sysinfo.c Sun May 16 06:46:15 2004
***************
*** 2515,2521 ****
else if(strcmp(service,"nntp") == 0)
{
if(port == 0) port=119;
! result=tcp_expect(ip,port,"220","");
}
else if(strcmp(service,"imap") == 0)
{
--- 2515,2521 ----
else if(strcmp(service,"nntp") == 0)
{
if(port == 0) port=119;
! result=tcp_expect(ip,port,"200","quit\n");
}
else if(strcmp(service,"imap") == 0)
{
***************
*** 2664,2670 ****
else if(strcmp(service,"nntp") == 0)
{
if(port == 0) port=119;
! result=tcp_expect(ip,port,"220","");
}
else if(strcmp(service,"imap") == 0)
{
--- 2664,2670 ----
else if(strcmp(service,"nntp") == 0)
{
if(port == 0) port=119;
! result=tcp_expect(ip,port,"200","quit\n");
}
else if(strcmp(service,"imap") == 0)
{
More information about the inn-workers
mailing list