Skip to content

Troubleshooting

Status: verified

Every entry below cost this guide's lab real minutes: the database too small for the server's crowd, the parameter agent 2 does not have, the trigger grammar that pushed back, the password the policy refused, the alert that never left. Symptoms in the order you will meet them.

The frontend says it cannot reach the database — or the server's log fills with connection errors. The server is a crowd of worker processes, each wanting database connections. A small PostgreSQL with max_connections at a tidy 30 told the lab's server remaining connection slots are reserved and refused it outright. PostgreSQL's own default of 100 ran the same server immediately. Before tuning anything exotic, count: server workers on one side, max_connections on the other, and remember that the frontend and your psql sessions drink from the same pool.

Agent 2 will not start, and the error names a parameter. Agent 2's grammar is smaller than the old agent's. The lab pasted AllowRoot=1 in from server-side habit and got invalid parameter AllowRoot … unknown parameter and exit 1 — the program checks the whole file and refuses to guess. When a copied configuration kills the start, delete lines until it lives, then add back one at a time; the error always names the line.

zabbix_get says connection error, and ss shows nothing listening. Two different silences live here. If nothing listens on 10050, the agent is not running (see above, or it is still starting). If it listens and still refuses you, read its Server= line: the agent answers only the addresses listed there, and asking from an unlisted address is the one rejection in this guide with no error message anywhere — the agent's log is the only witness. While you are there, one lab-specific trap worth knowing in general: an agent launched from a script may keep the script's terminal as its own (agent 2 in this lab stayed in the foreground); start it as a service under your init system and the question disappears.

The item exists but no values arrive. Walk the chain in order: does zabbix_get answer the key by hand? If it errors ZBX_NOTSUPPORTED: Unknown metric, the key is wrong or its user parameter is not in the agent's configuration (restart the agent after editing it). If by hand works and in Zabbix it does not, the item's interface is wrong or missing — the API refuses to create an agent item without one, but a hand-built item pointed at a dead interface fails quietly in the UI. If values arrive and then stop, check the item's state in the UI for not supported and read the reason; it is nearly always the exact error the agent returned.

The trigger parses in your head and not in Zabbix. Trigger functions have typed arguments: a count of values is #5, a time window is 5m, and mixing the two in find() gets you a correction, sometimes demanding a macro where you wrote a number (the lab's time-shift did exactly this). Write the simplest form that can be true — chapter 7's #1 — verify it fires, and complicate it afterwards. A trigger that will not save is the system helping you; a trigger that saves and never fires needs the cause-and-observe test from chapter 7's check, not more expression.

A user cannot be created, and the error reads like a policy lecture. It is one. 7.0 refuses passwords that contain the user or family name, fail the character variety rules, or sit on the common-password list — the lab's first rookie password met all three fates in one message. Choose passphrases assembled to have nothing to do with the account, and expect scripts that provision users to need the same care.

A problem fired and nobody was told. Do not start in the mail logs; start in Zabbix's own paper trail, in order. problem.get: the problem exists. action.get: an action matches it and is enabled — remembering that the shipped Report problems… action starts disabled. alert.get for that action: an alert row exists with a status. Status 2 hands you the delivery error, in the receiving system's own words — the lab's read no welcome message 220* from SMTP server, a mail-path refusal, fixed at the media type's SMTP settings, not in the action. No alert row at all points one link earlier: the action's conditions, the user's media (present? active set to 0, which is enabled — the flag reads backwards), the severity mask covering this problem's severity, and — if the action was created seconds before the problem — a short wait, since brand-new actions deserve one settled minute and one fresh firing before being declared broken.

The API answers, but not in the way the manual shows. Three small things: apiinfo.version takes no auth token — sending one converts a working call into a session error; Authorization: Bearer is a header, not a parameter, on every other call; and a login that suddenly fails for everyone usually means somebody's scripts have been guessing passwords — the block message says temporarily blocked, and it lifts on its own.