Related Articles
Send SNMP Traps from Nagios to Remote Management Host
1. Add ‘send snmp trap’ command to nagios vim /usr/local/nagios/etc/objects/commands.cfg define command{ command_name send_snmptrap command_line /usr/bin/snmptrap -v 2c -c public 10.50.24.34 ” NAGIOS-NOTIFY-MIB::nSvcEvent nSvcHostname s “$HOSTNAME$” nSvcDesc s “$SERVICEDESC$” nSvcStateID i $SERVICESTATEID$ nSvcOutput s “$SERVICEOUTPUT$” } 2. Add this event and enable the event to services which needed to send traps vim /usr/local/nagios/etc/objects/localhost.cfg define service{ […]
Connect 2 Asterisk servers with IAX2 Trunk
Server 1 configurations [usa-IAX] host=10.0.0.1 username=panadura secret=RMoBaNvjZO type=peer qualify=yes context=from-trunk-iax2-usa-IAX [usa-IAX_user] secret=RMoBaNvjZO type=user context=from-internal Server 2 Configurations [panadura-IAX] host=10.0.0.1 username=panadura secret=RMoBaNvjZO type=peer qualify=yes context=from-trunk-iax2-panadura-IAX [panadura-IAX_user] secret=RMoBaNvjZO type=user context=from-internal
Create Permanent alias on CentOS/Redhat
The ‘alias’ command in CentOS allows for you to create an alias to a command. For example, if you want to use the vim text editor, but are used to typing vi file-to-edit.txt, you can create an alias to automatically start vim instead of vi when typing the command. Showing current aliases To show the […]