How to install zabbix-agent from source on raspberry pi

The name of the pictureThe name of the pictureThe name of the pictureClash 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:




  1. Downloaded source files

  2. Untar into /usr/local/src/


  3. 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?










share|improve this question























  • 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










  • the agent starts after adjusting the permissions but how can I make it run as a service?
    – sealfab
    Mar 11 at 14:46














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:




  1. Downloaded source files

  2. Untar into /usr/local/src/


  3. 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?










share|improve this question























  • 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










  • the agent starts after adjusting the permissions but how can I make it run as a service?
    – sealfab
    Mar 11 at 14:46












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:




  1. Downloaded source files

  2. Untar into /usr/local/src/


  3. 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?










share|improve this question















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:




  1. Downloaded source files

  2. Untar into /usr/local/src/


  3. 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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 12 at 0:11









galoget

2,1062820




2,1062820










asked Mar 11 at 14:04









sealfab

187




187











  • 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










  • 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











  • 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















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















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



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














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













































































Popular posts from this blog

pylint3 and pip3 broken

Missing snmpget and snmpwalk

How to enroll fingerprints to Ubuntu 17.10 with VFS491