sergiotocalini / jenkix

Zabbix Agent - Jenkins
GNU General Public License v3.0
13 stars 10 forks source link

Error for this Zabbix Items [Jenkins] Service: Uptime [Jenkins] Service: Listening #4

Closed itkroplis closed 6 years ago

itkroplis commented 6 years ago

Ubuntu 16.4
Error for this Zabbix Items: [Jenkins] Service: Uptime Value "sudo: no tty present and no askpass program specified 0" of type "string" is not suitable for value type "Numeric (unsigned)

[Jenkins] Service: Listening Value "sudo: no tty present and no askpass program specified 0" of type "string" is not suitable for value type "Numeric (unsigned)"

In /etc/sudoers I add: zabbix ALL=(ALL) NOPASSWD: ALL

sergiotocalini commented 6 years ago

You need to configure properly your sudo to able to execute commands without tty. You can do this removing this option on your sudoers:

# Defaults    requiretty
itkroplis commented 6 years ago

Snx, is good! zabbix ALL=(ALL) NOPASSWD: ALL zabbix ALL=NOPASSWD: ALL