Hey all,
sorry for asking such a dummy question. But yet i haven't got anyone to ask. Maybe someone here can help me.
I want to monitor a deamon in centos via UserParameter.
To testing i created in server x zabbix agent a UserParameter, which looks like this here:
Gave zabbix all privilegies via visudo. the copy is here:
I know it isn't the best way (maybe the dirtiest one, but this all is just a testing now)
After creating an item, i have got an error. This one:
What should i do? I haven't got an idea, where the problem can be.
I think i made a mistake in the sudoers file? First i edited it with nano! Maybe this can be the reason?
Thanks a lot,
mira
sorry for asking such a dummy question. But yet i haven't got anyone to ask. Maybe someone here can help me.
I want to monitor a deamon in centos via UserParameter.
To testing i created in server x zabbix agent a UserParameter, which looks like this here:
UserParameter=services.check.name, sudo systemctl status name | grep -c running
Gave zabbix all privilegies via visudo. the copy is here:
zabbix ALL=(ALL) ALL
I know it isn't the best way (maybe the dirtiest one, but this all is just a testing now)
After creating an item, i have got an error. This one:
sh: /usr/bin/sudo: Permission denied
0
0
What should i do? I haven't got an idea, where the problem can be.
I think i made a mistake in the sudoers file? First i edited it with nano! Maybe this can be the reason?
Thanks a lot,
mira


Comment