Hello !
I have a problem with system.run.
I have always a result at 0 !
It's command line not usual. With command line usual, it's perfect (example : find, ps ...) but with command line HP it's not same (example : hplog, hpacucli).
normaly my command :
shell > hpacucli ctrl all show config
Smart Array P400 in Slot 1 (sn: PAFGK0K9VVZ36D)
array A (SAS, Unused Space: 0 MB)
logicaldrive 1 (68.3 GB, RAID 1, OK)
physicaldrive 2I:1:1 (port 2I:box 1:bay 1, SAS, 72 GB, OK)
physicaldrive 2I:1:2 (port 2I:box 1:bay 2, SAS, 72 GB, OK)
array B (SAS, Unused Space: 0 MB)
logicaldrive 2 (136.7 GB, RAID 1, OK)
physicaldrive 1I:1:7 (port 1I:box 1:bay 7, SAS, 146 GB, OK)
physicaldrive 1I:1:8 (port 1I:box 1:bay 8, SAS, 146 GB, OK)
array C (SAS, Unused Space: 0 MB)
logicaldrive 3 (136.7 GB, RAID 1, OK)
physicaldrive 1I:1:5 (port 1I:box 1:bay 5, SAS, 146 GB, OK)
physicaldrive 1I:1:6 (port 1I:box 1:bay 6, SAS, 146 GB, OK)
array D (SAS, Unused Space: 0 MB)
logicaldrive 4 (136.7 GB, RAID 1, OK)
physicaldrive 2I:1:3 (port 2I:box 1:bay 3, SAS, 146 GB, OK)
physicaldrive 2I:1:4 (port 2I:box 1:bay 4, SAS, 146 GB, OK)
I want monitoring my raid system. So Normally :
shell > hpacucli ctrl all show config | grep OK -c
12
But with system.run[hpacucli ctrl all show config | grep OK -c], I have always 0 in return.
The user zabbix don't have correct rights by default. I add "zabbix ALL=NOPASSWD:/usr/sbin/hpacucli" in /etc/sudoer
I have always 0 in return.

I have tested with userparameter in zabbix_agentd.conf, it's the same.
Help me please
I have a problem with system.run.
I have always a result at 0 !
It's command line not usual. With command line usual, it's perfect (example : find, ps ...) but with command line HP it's not same (example : hplog, hpacucli).
normaly my command :
shell > hpacucli ctrl all show config
Smart Array P400 in Slot 1 (sn: PAFGK0K9VVZ36D)
array A (SAS, Unused Space: 0 MB)
logicaldrive 1 (68.3 GB, RAID 1, OK)
physicaldrive 2I:1:1 (port 2I:box 1:bay 1, SAS, 72 GB, OK)
physicaldrive 2I:1:2 (port 2I:box 1:bay 2, SAS, 72 GB, OK)
array B (SAS, Unused Space: 0 MB)
logicaldrive 2 (136.7 GB, RAID 1, OK)
physicaldrive 1I:1:7 (port 1I:box 1:bay 7, SAS, 146 GB, OK)
physicaldrive 1I:1:8 (port 1I:box 1:bay 8, SAS, 146 GB, OK)
array C (SAS, Unused Space: 0 MB)
logicaldrive 3 (136.7 GB, RAID 1, OK)
physicaldrive 1I:1:5 (port 1I:box 1:bay 5, SAS, 146 GB, OK)
physicaldrive 1I:1:6 (port 1I:box 1:bay 6, SAS, 146 GB, OK)
array D (SAS, Unused Space: 0 MB)
logicaldrive 4 (136.7 GB, RAID 1, OK)
physicaldrive 2I:1:3 (port 2I:box 1:bay 3, SAS, 146 GB, OK)
physicaldrive 2I:1:4 (port 2I:box 1:bay 4, SAS, 146 GB, OK)
I want monitoring my raid system. So Normally :
shell > hpacucli ctrl all show config | grep OK -c
12
But with system.run[hpacucli ctrl all show config | grep OK -c], I have always 0 in return.
The user zabbix don't have correct rights by default. I add "zabbix ALL=NOPASSWD:/usr/sbin/hpacucli" in /etc/sudoer
I have always 0 in return.

I have tested with userparameter in zabbix_agentd.conf, it's the same.
Help me please
Comment