Zabbix: zabbix_agentd: Can’t recreate Zabbix semaphores for IPC key 0x123456 Semaphore ID 123456. Operation not permitted.

Want to help support this blog? Try out Oh Dear, the best all-in-one monitoring tool for your entire website, co-founded by me (the guy that wrote this blogpost). Start with a 10-day trial, no strings attached.

We offer uptime monitoring, SSL checks, broken links checking, performance & cronjob monitoring, branded status pages & so much more. Try us out today!

Profile image of Mattias Geniar

Mattias Geniar, September 10, 2011

Follow me on Twitter as @mattiasgeniar

You can get the following error when you’re switching between users in a Zabbix Agent, but failed to stop the processes first.

zabbix_agentd [8394]: Can't recreate Zabbix semaphores for IPC key 0x7a028449 Semaphore ID 196608. Operation not permitted.

The key will obviously be different on your system. If you’re certain no more processes for the Zabbix Agent are running, you can manually remove the semaphores.

~# ipcrm -m 0x7a028449
~# ipcrm -S 0x7a028449

And then restart your Zabbix Agent.



Want to subscribe to the cron.weekly newsletter?

I write a weekly-ish newsletter on Linux, open source & webdevelopment called cron.weekly.

It features the latest news, guides & tutorials and new open source projects. You can sign up via email below.

No spam. Just some good, practical Linux & open source content.