Hi all.
I am attempting to configure an agentless host on a new Zabbix install. On a CentOS 7
cat /etc/*elease*
CentOS Linux release 7.4.1708 (Core)
Derived from Red Hat Enterprise Linux 7.4 (Source)
cat: /etc/lsb-release.d: Is a directory
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
CentOS Linux release 7.4.1708 (Core)
CentOS Linux release 7.4.1708 (Core)
cpe:/o:centos:centos:7
zabbix_server -V
zabbix_server (Zabbix) 3.4.9
Revision 80550 9 May 2018, compilation time: May 9 2018 10:02:30
zabbix_agentd -V
zabbix_agentd (daemon) (Zabbix) 3.4.9
Revision 80550 9 May 2018, compilation time: May 9 2018 10:02:50
So far everything looks fine after initial setup. I ran into some minor issues but got easily resolved (selinux).
To first test, I decided to add a webserver as a host and simply do a HTTPS tcp check.
I created a new host, added Agent Interface at 127.0.0.1 with default port 10050, and enabled it.
Went to Items and created a new item;
Name: TCP-443
Type: Simple check
Key net.tcp.service[httpd,xx.xxx.x.xxx,443]
Host interface: Agent 127.0.0.1 : 10050
Update Interval: 10s
Show value: As is
Enabled: yes
The item page shows green Enabled as the status.
However when I go to the Hosts page under Configuration none of the Availability boxes are green (all grey) on that host.
When I go and stop the httpd service on the webserver, I don't see it update in zabbix.
But when I run the following command on the zabbix server:
zabbix_get -s 127.0.0.1 -k net.tcp.service[https,16.255.3.252,443]
I get a 0 when the webserver is stopped, and a 1 when it is running.
Am I missing a step in there to get the item and host properly configured for monitoring?
I am attempting to configure an agentless host on a new Zabbix install. On a CentOS 7
cat /etc/*elease*
CentOS Linux release 7.4.1708 (Core)
Derived from Red Hat Enterprise Linux 7.4 (Source)
cat: /etc/lsb-release.d: Is a directory
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
CentOS Linux release 7.4.1708 (Core)
CentOS Linux release 7.4.1708 (Core)
cpe:/o:centos:centos:7
zabbix_server -V
zabbix_server (Zabbix) 3.4.9
Revision 80550 9 May 2018, compilation time: May 9 2018 10:02:30
zabbix_agentd -V
zabbix_agentd (daemon) (Zabbix) 3.4.9
Revision 80550 9 May 2018, compilation time: May 9 2018 10:02:50
So far everything looks fine after initial setup. I ran into some minor issues but got easily resolved (selinux).
To first test, I decided to add a webserver as a host and simply do a HTTPS tcp check.
I created a new host, added Agent Interface at 127.0.0.1 with default port 10050, and enabled it.
Went to Items and created a new item;
Name: TCP-443
Type: Simple check
Key net.tcp.service[httpd,xx.xxx.x.xxx,443]
Host interface: Agent 127.0.0.1 : 10050
Update Interval: 10s
Show value: As is
Enabled: yes
The item page shows green Enabled as the status.
However when I go to the Hosts page under Configuration none of the Availability boxes are green (all grey) on that host.
When I go and stop the httpd service on the webserver, I don't see it update in zabbix.
But when I run the following command on the zabbix server:
zabbix_get -s 127.0.0.1 -k net.tcp.service[https,16.255.3.252,443]
I get a 0 when the webserver is stopped, and a 1 when it is running.
Am I missing a step in there to get the item and host properly configured for monitoring?
Comment