I've created a small perl script and zabbix template that will alert you if a open tcp port changes on a monitored host.
The perl script uses nmap to monitor the host and will fire a trigger if any previously open port becomes closed, or if a closed port opens.
To install put the checkPorts.pl (change extension to .pl) in your externalScripts directory on your Zabbix server and make sure the user running the Zabbix server has permissions to run the file and nmap. Then import and apply the template to your hosts.
The script runs as an external check from your zabbix server to monitor your hosts.
Script:
Template:
w
The perl script uses nmap to monitor the host and will fire a trigger if any previously open port becomes closed, or if a closed port opens.
To install put the checkPorts.pl (change extension to .pl) in your externalScripts directory on your Zabbix server and make sure the user running the Zabbix server has permissions to run the file and nmap. Then import and apply the template to your hosts.
The script runs as an external check from your zabbix server to monitor your hosts.
Script:
Template:
w
Comment