Ad Widget

Collapse

[Need Help] Unexpected behavior when trying to set UserParameter

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Severity Gaming
    Junior Member
    • Aug 2020
    • 3

    #1

    [Need Help] Unexpected behavior when trying to set UserParameter

    Hello everyone,

    Looking for some help. Trying to set up some remote monitoring of my new APC UPS units using apcaccess and the Zabbix Agent. apcaccess appears to work properly when I run it as a non-priv or root user at the command line, it returns the dump of data I'd expect, but when the agent (also running as root) tries to run it I'm getting an error. Firewall is off.

    Example Command: /sbin/apcaccess status -h 127.0.0.1:3551 | awk '/^(BCHARGE).*:/ {print $3}'
    Error: Error contacting apcupsd @ 127.0.0.1:3551: Permission denied
    OS: Centos 7
    Package: apcupsd-3.14.14-18.el7.x86_64


    This process appears to work just fine when I run it on a Windows host. Wondering if there's something special about the linux version of the agent that could be blocking this? I've also reached out to the APCUPSD folks too since I get that it could very well be something about their app.


    Thanks for your help!
    Chris
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    Is SELinux enabled on your Linux client?

    Comment

    • Severity Gaming
      Junior Member
      • Aug 2020
      • 3

      #3
      just checked, yeah it does look enabled. going to try with it off.

      Comment

      • Severity Gaming
        Junior Member
        • Aug 2020
        • 3

        #4
        Ended up being due to selinux. followed and modified the following to fit my use case https://www.zabbix.com/forum/zabbix-...nux-and-zabbix

        thanks so much for the pointer!

        Comment

        Working...