Tag Archives: zabbix

SnamTrap and Zabbix

Centos 6

  • edit /etc/snmp/snmptrapd.conf

disableAuthorization yes

traphandle default /usr/sbin/snmptt

snmpTrapdAddr udp:10.100.0.2:162

doNotLogTraps yes

  • /etc/snmp/snmptt.ini

snmptt_conf_files = <<END
/etc/snmp/snmptt.conf
END

  • Add MIB in /etc/snmp/snmptt.conf

EVENT linkDown .1.3.6.1.6.3.1.1.5.3 “Status Events” Normal
FORMAT ZBXTRAP $aA Link down on interface $1. Admin state: $2. Operational state: $4
EXEC /usr/lib/zabbix/externalscripts/zabbix_trapper.sh $aA $1 $4

EVENT linkUp .1.3.6.1.6.3.1.1.5.4 “Status Events” Normal
FORMAT ZBXTRAP $aA Link up on interface $1. Admin state: $2. Operational state: $4
EXEC /usr/lib/zabbix/externalscripts/zabbix_trapper.sh $aA $1 $4

(more…)

Zabbix Tellegram graph

1.Create new User and add to Guest group.

Example: User_for_API

2.Test

curl -s -i -X POST -H ‘Content-Type: application/json-rpc’ -d ‘{ “params”: { “user”: “User_for_API “, “password”: “” }, “jsonrpc”: “2.0”, “method”: “user.login”, “id”: 0 }’ ‘http://127.0.0.1/zabbix/api_jsonrpc.php’

(more…)

Zabbix не бачить процесси

Zabbix-agent не бичить процесси, але вони запущені.

/usr/local/bin/zabbix_get -s 127.0.0.1 -p 10050 -k “proc.num[sshd].last(0)”
0

# ps -ax| grep sshd
637 ?? Is 0:13.32 /usr/sbin/sshd

Проблема в цьому….
sysctl -a | grep security.bsd.see_other
(more…)