Hi,
I'm trying to have number of lines in the linux log file and when i type this commande:
linux returns 3
and with zabbix_agentd.conf I wrote
and zabbix returns 0 on the web interface.
I've got this in my zabbix_agentd.log :
How can I do to have the true value?
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
and with zabbix_agentd.conf I wrote
Code:
UserParameter=raid.etat,grep 'Severity="ERROR"' /opt/fujitsu/ServerViewSuite/RAIDManager/web/public/RAIDLog.xml | wc -l
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')
Comment