Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

(Automated Script)

#!/bin/bash
rm -f /etc/zabbix/backup/zabbix_agentd.conf.*
cp /etc/zabbix/zabbix_agentd.conf /etc/zabbix/backup/zabbix_agentd.conf.`date +%s`
VAR=`grep -w "# Include=/etc/zabbix/zabbix_agentd.userparams.conf" /etc/zabbix/zabbix_agentd.conf`
RETVAL=$?
[ $RETVAL -eq 0 ] && sed -i 's/# Include=/etc/zabbix/zabbix_agentd.userparams.conf/ Include=/etc/zabbix/zabbix_agentd.userparams.conf/g' /etc/zabbix/zabbix_agentd.conf

RETVAL=$?
echo "$RETVAL"

echo "now"

if [ -f "/etc/zabbix/zabbix_agentd.userparams.conf" ]; then
    echo "User parameter File exists"


rm -f /etc/zabbix/backup/zabbix_agentd.userparams.conf.*
cp /etc/zabbix/zabbix_agentd.userparams.conf /etc/zabbix/backup/zabbix_agentd.userparams.conf.`date +%s`
echo "Userparameter=$1,$2" >> /etc/zabbix/zabbix_agentd.userparams.conf


else
        echo "There isnt any Userparameter.conf : Creating File"
                touch /etc/zabbix/zabbix_agentd.userparams.conf
                chown zabbix:zabbix /etc/zabbix/zabbix_agentd.userparams.conf

fi