> For the complete documentation index, see [llms.txt](https://ghoulsec.gitbook.io/ghoulsec-vault/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ghoulsec.gitbook.io/ghoulsec-vault/security-operations/zabbix-nms/zabbix-globalscrips.md).

# Zabbix Globalscrips

In Zabbix, **Global Scripts** are a set of user-defined scripts that can be used for various automation or custom actions across the entire Zabbix system. These scripts are typically written in languages like Bash, Python, or others and are used to extend the functionality of Zabbix. They are useful for executing actions such as sending notifications, performing external checks, or automating responses to certain triggers.

Global Scripts are disabled by default , we need to enable it before we can use the global scripts. To enable we need to make changes in the zabbix config file as follows :&#x20;

```bash
sudo nano /etc/zabbix/zabbix_server.conf
```

In the config file we will set the parameter `EnableGlobalScripts` to `1` to enable global script execution.

```bash
EnableGlobalScripts=1
```

Save & exit the file and restart the services to apply the config changes done .

```bash
sudo systemctl restart zabbix-server
```
