Hello all,
i have defined the following userparameter:
UserParameter=cmta.sendmailup[*],/etc/init.d/sendmail status up
"/etc/init.d/sendmail" is a customized script and waits for an id like.. BB-Out
Example:
lp0056:/home/qx56451 # /etc/init.d/sendmail status up BB-out
1
i defined the following item and key..
BB-Out (as desc) and key cmta.sendmailup[BB-out]
within the log i see:
006495:20060612:153000 Got line:cmta.sendmailup[BB-out]
006495:20060612:153000 Sending back:Status of sendmail daemons:
this means it doesnt use the keys [variable] at the cli without an argument i get this..
lp0056:/home/qx56451 # /etc/init.d/sendmail status up
Status of sendmail daemons:
I want to monitor a lot of diffenernt sendmail instances and need to use a variable because it would be senceless to add a line foreach instance. They are different on each host and may change within a day. I dont want to give shell access to the gui admin to solve this issue in zabbix_agentd.conf.
What am i doing wrong?
regards,
Marc
i have defined the following userparameter:
UserParameter=cmta.sendmailup[*],/etc/init.d/sendmail status up
"/etc/init.d/sendmail" is a customized script and waits for an id like.. BB-Out
Example:
lp0056:/home/qx56451 # /etc/init.d/sendmail status up BB-out
1
i defined the following item and key..
BB-Out (as desc) and key cmta.sendmailup[BB-out]
within the log i see:
006495:20060612:153000 Got line:cmta.sendmailup[BB-out]
006495:20060612:153000 Sending back:Status of sendmail daemons:
this means it doesnt use the keys [variable] at the cli without an argument i get this..
lp0056:/home/qx56451 # /etc/init.d/sendmail status up
Status of sendmail daemons:
I want to monitor a lot of diffenernt sendmail instances and need to use a variable because it would be senceless to add a line foreach instance. They are different on each host and may change within a day. I dont want to give shell access to the gui admin to solve this issue in zabbix_agentd.conf.
What am i doing wrong?
regards,
Marc
Comment