How to install zabbix-agent from source on raspberry pi

Clash Royale CLAN TAG#URR8PPP up vote
0
down vote
favorite
Im trying to install zabbix-agent 3.2 on Raspberry Pi running Ubuntu Mate 16.04. The version in the repo is out of date and running the .deb file does not work (possibly wrong architecture).
Starting with these instructions I have done the following:
Downloaded source files- Untar into
/usr/local/src/ Executed these commands:
$ sudo ./configure --enable-agent --with-GnuTLS
$ sudo apt-get install apt-file
$ sudo apt-file update
$ ./configure --enable-agent --with-GnuTLS
$ sudo make install
$ sudo useradd -g zabbix zabbix
$ sudo groupadd zabbix
Currently running this:
sudo /usr/local/src/zabbix-3.2.11/zabbix_agentd
Will create the following log entry:
tail -f /var/log/zabbix_agentd.log
zabbix_agentd [18112]: cannot open PID file [/tmp/zabbix_agentd.pid]: [13]
Permission denied
I'm sure this is a permissions issue with the directory but once I can run this without error how do I make it run as a service?
software-installation compiling raspberrypi zabbix
add a comment |Â
up vote
0
down vote
favorite
Im trying to install zabbix-agent 3.2 on Raspberry Pi running Ubuntu Mate 16.04. The version in the repo is out of date and running the .deb file does not work (possibly wrong architecture).
Starting with these instructions I have done the following:
Downloaded source files- Untar into
/usr/local/src/ Executed these commands:
$ sudo ./configure --enable-agent --with-GnuTLS
$ sudo apt-get install apt-file
$ sudo apt-file update
$ ./configure --enable-agent --with-GnuTLS
$ sudo make install
$ sudo useradd -g zabbix zabbix
$ sudo groupadd zabbix
Currently running this:
sudo /usr/local/src/zabbix-3.2.11/zabbix_agentd
Will create the following log entry:
tail -f /var/log/zabbix_agentd.log
zabbix_agentd [18112]: cannot open PID file [/tmp/zabbix_agentd.pid]: [13]
Permission denied
I'm sure this is a permissions issue with the directory but once I can run this without error how do I make it run as a service?
software-installation compiling raspberrypi zabbix
What doesstat -c %a /tmpshow? Should be 1777 for/tmp. What doesls -l /tmp/zabbix_agentd.pidshow?
â PerlDuck
Mar 11 at 14:17
stat -c %a /tmp 1777 ls -l /tmp/zabbix_agentd.pid -rw-rw-r-- 1 zabbix zabbix 4 Mar 11 10:39 /tmp/zabbix_agentd.pid
â sealfab
Mar 11 at 14:45
the agent starts after adjusting the permissions but how can I make it run as a service?
â sealfab
Mar 11 at 14:46
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Im trying to install zabbix-agent 3.2 on Raspberry Pi running Ubuntu Mate 16.04. The version in the repo is out of date and running the .deb file does not work (possibly wrong architecture).
Starting with these instructions I have done the following:
Downloaded source files- Untar into
/usr/local/src/ Executed these commands:
$ sudo ./configure --enable-agent --with-GnuTLS
$ sudo apt-get install apt-file
$ sudo apt-file update
$ ./configure --enable-agent --with-GnuTLS
$ sudo make install
$ sudo useradd -g zabbix zabbix
$ sudo groupadd zabbix
Currently running this:
sudo /usr/local/src/zabbix-3.2.11/zabbix_agentd
Will create the following log entry:
tail -f /var/log/zabbix_agentd.log
zabbix_agentd [18112]: cannot open PID file [/tmp/zabbix_agentd.pid]: [13]
Permission denied
I'm sure this is a permissions issue with the directory but once I can run this without error how do I make it run as a service?
software-installation compiling raspberrypi zabbix
Im trying to install zabbix-agent 3.2 on Raspberry Pi running Ubuntu Mate 16.04. The version in the repo is out of date and running the .deb file does not work (possibly wrong architecture).
Starting with these instructions I have done the following:
Downloaded source files- Untar into
/usr/local/src/ Executed these commands:
$ sudo ./configure --enable-agent --with-GnuTLS
$ sudo apt-get install apt-file
$ sudo apt-file update
$ ./configure --enable-agent --with-GnuTLS
$ sudo make install
$ sudo useradd -g zabbix zabbix
$ sudo groupadd zabbix
Currently running this:
sudo /usr/local/src/zabbix-3.2.11/zabbix_agentd
Will create the following log entry:
tail -f /var/log/zabbix_agentd.log
zabbix_agentd [18112]: cannot open PID file [/tmp/zabbix_agentd.pid]: [13]
Permission denied
I'm sure this is a permissions issue with the directory but once I can run this without error how do I make it run as a service?
software-installation compiling raspberrypi zabbix
software-installation compiling raspberrypi zabbix
edited Mar 12 at 0:11
galoget
2,1062820
2,1062820
asked Mar 11 at 14:04
sealfab
187
187
What doesstat -c %a /tmpshow? Should be 1777 for/tmp. What doesls -l /tmp/zabbix_agentd.pidshow?
â PerlDuck
Mar 11 at 14:17
stat -c %a /tmp 1777 ls -l /tmp/zabbix_agentd.pid -rw-rw-r-- 1 zabbix zabbix 4 Mar 11 10:39 /tmp/zabbix_agentd.pid
â sealfab
Mar 11 at 14:45
the agent starts after adjusting the permissions but how can I make it run as a service?
â sealfab
Mar 11 at 14:46
add a comment |Â
What doesstat -c %a /tmpshow? Should be 1777 for/tmp. What doesls -l /tmp/zabbix_agentd.pidshow?
â PerlDuck
Mar 11 at 14:17
stat -c %a /tmp 1777 ls -l /tmp/zabbix_agentd.pid -rw-rw-r-- 1 zabbix zabbix 4 Mar 11 10:39 /tmp/zabbix_agentd.pid
â sealfab
Mar 11 at 14:45
the agent starts after adjusting the permissions but how can I make it run as a service?
â sealfab
Mar 11 at 14:46
What does
stat -c %a /tmp show? Should be 1777 for /tmp. What does ls -l /tmp/zabbix_agentd.pid show?â PerlDuck
Mar 11 at 14:17
What does
stat -c %a /tmp show? Should be 1777 for /tmp. What does ls -l /tmp/zabbix_agentd.pid show?â PerlDuck
Mar 11 at 14:17
stat -c %a /tmp 1777 ls -l /tmp/zabbix_agentd.pid -rw-rw-r-- 1 zabbix zabbix 4 Mar 11 10:39 /tmp/zabbix_agentd.pid
â sealfab
Mar 11 at 14:45
stat -c %a /tmp 1777 ls -l /tmp/zabbix_agentd.pid -rw-rw-r-- 1 zabbix zabbix 4 Mar 11 10:39 /tmp/zabbix_agentd.pid
â sealfab
Mar 11 at 14:45
the agent starts after adjusting the permissions but how can I make it run as a service?
â sealfab
Mar 11 at 14:46
the agent starts after adjusting the permissions but how can I make it run as a service?
â sealfab
Mar 11 at 14:46
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1013895%2fhow-to-install-zabbix-agent-from-source-on-raspberry-pi%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
What does
stat -c %a /tmpshow? Should be 1777 for/tmp. What doesls -l /tmp/zabbix_agentd.pidshow?â PerlDuck
Mar 11 at 14:17
stat -c %a /tmp 1777 ls -l /tmp/zabbix_agentd.pid -rw-rw-r-- 1 zabbix zabbix 4 Mar 11 10:39 /tmp/zabbix_agentd.pid
â sealfab
Mar 11 at 14:45
the agent starts after adjusting the permissions but how can I make it run as a service?
â sealfab
Mar 11 at 14:46