I've got an interesting one for you mates again....
I'm running zabbix on an asterisk system using userparameters to call asterisk with the -rx (connect, run command, show output, exit) option. my command line is this:
sudo -H /usr/sbin/asterisk -rx 'show queues' | grep --text -i '901' | awk '{print $3}'
so in the configuration file it looks like this:
UserParameter=queuelevel[901], sudo -H /usr/sbin/asterisk -rx 'show queues' | grep --text -i '901' | awk '{print $3}'
now, when I login AS zabbix user, it returns the number of calls holding in the queue (0 curently for example). It returns ONLY the number.
Here's the kicker. Zabbix changes the status of this item to "Not Supported" after every check. I have no idea why, and need help as I've got some serious breathing down my neck going on over it.
Permissions are correct, as I can run it as the zabbix user with no problem.
Any ideas on this?
I'm running zabbix on an asterisk system using userparameters to call asterisk with the -rx (connect, run command, show output, exit) option. my command line is this:
sudo -H /usr/sbin/asterisk -rx 'show queues' | grep --text -i '901' | awk '{print $3}'
so in the configuration file it looks like this:
UserParameter=queuelevel[901], sudo -H /usr/sbin/asterisk -rx 'show queues' | grep --text -i '901' | awk '{print $3}'
now, when I login AS zabbix user, it returns the number of calls holding in the queue (0 curently for example). It returns ONLY the number.
Here's the kicker. Zabbix changes the status of this item to "Not Supported" after every check. I have no idea why, and need help as I've got some serious breathing down my neck going on over it.
Permissions are correct, as I can run it as the zabbix user with no problem.
Any ideas on this?


Comment