Ad Widget

Collapse

Item value problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • drone89
    Junior Member
    • Feb 2013
    • 1

    #1

    Item value problem

    Hi,

    I'm trying to have number of lines in the linux log file and when i type this commande:

    Code:
    root@proxmox1:~# grep 'Severity="ERROR"' /opt/fujitsu/ServerViewSuite/RAIDManager/web/public/RAIDLog.xml | wc -l
    3
    linux returns 3

    and with zabbix_agentd.conf I wrote

    Code:
    UserParameter=raid.etat,grep 'Severity="ERROR"' /opt/fujitsu/ServerViewSuite/RAIDManager/web/public/RAIDLog.xml | wc -l
    and zabbix returns 0 on the web interface.

    I've got this in my zabbix_agentd.log :

    Code:
    grep: /opt/fujitsu/ServerViewSuite/RAIDManager/web/public/RAIDLog.xml: Permission denied
     61990:20130228:090116.490 Before
     61990:20130228:090116.490 Run remote command [grep 'Severity="ERROR"' /opt/fujitsu/ServerViewSuite/RAIDManager/web/public/RAIDLog.xml | wc -l] Result [1] [0]...
     61990:20130228:090116.490 For key [raid.etat] received value [0]
     61990:20130228:090116.490 In process_value('Apajh29-PROXMOX1','raid.etat','0')
    How can I do to have the true value?
  • heaje
    Senior Member
    Zabbix Certified Specialist
    • Sep 2009
    • 325

    #2
    The message in your agent log file says that Zabbix has no permission to look at the file. You need to modify permissions on the file to allow the user that Zabbix runs as to open it.

    Comment

    Working...