SNMP TRAP INTRIGATION WITH ICINGA

A

Amit_*nix

Guest
Hello All,
Since there is no section for monitoring tools Questions i guess i will be posting my question here..

System :-
OS:- Centos 6.0 i686
Icinga :-
icinga-1.8.4-4.el6.rf.i686
icinga-idoutils-libdbi-mysql-1.8.4-4.el6.rf.i686
icinga-gui-1.8.4-4.el6.rf.i686

Plugins:-
Nagios plugins 1.4
check_snmp_mem.pl
check_snmp_load.pl

Mysql:-
libdbi-dbd-mysql-0.8.3-5.1.el6.i686
mysql-server-5.1.73-3.el6_5.i686
mysql-libs-5.1.73-3.el6_5.i686
mysql-5.1.73-3.el6_5.i686
php-mysql-5.3.3-27.el6_5.i686
nagios-plugins-mysql-1.4.16-10.el6.i686
icinga-idoutils-libdbi-mysql-1.8.4-4.el6.rf.i686

I have sucessfully installed those with check_nrpe plugin and they work Great. But when i try to set it up to get traps from remote server using check_snmp_mem.pl, It give me a status "UNKNOWN"


while i try to check from command line the plugin works
i.e
[root@localhost tmp]# /usr/lib/nagios/plugins/check_snmp_load.pl -H 192.168.0.120 -C public -w 4,3,3 -c 8,5,5 -T netsl -f
Load : 0.00 0.00 0.00 : OK | load_1_min=0.00;4;8 load_5_min=0.00;3;5 load_15_min=0.00;3;5

but when i set it up with icinga it doesn't work.

+DETAILS +

/etc/icinga/icinga.cfg
cfg_file=/etc/icinga/objects/remotehost2-commands.cfg
cfg_file=/etc/icinga/objects/remotehost-2.cfg


COMMAND DEFINATION
/etc/icinga/object/remotehost2-commands.cfg
define command{
command_name check_snmp_mem
command_line $user1$/check_snmp_mem.pl -H 192.168.0.120 -C public -w $ARG1$ -c $ARG2$ -T netsl -f
}

#define command{
# command_name check_snmp_load
#command_line $user1$/check_snmp_load.pl -H $HOSTADDRESS$ -C public -w $ARG2$ -c $ARG3$ -T netsl -f
#}

SERVICE DEFINATION
/etc/icinga/objects/remotehost-2.cfg

define host{
host_name remotehost2
# hostgroups linux
check_period 24x7
max_check_attempts 10
check_command check-host-alive
notification_period 24x7
notification_interval 120
# notification_options w,c,r
address 192.168.0.120
}

define service {
use generic-service
host_name remotehost2
service_description linux_memory
check_command check_snmp_mem!80,60!99,90
max_check_attempts 10
check_interval 5
retry_interval 3
check_period 24x7
notification_interval 120
notification_period 24x7
notification_options w,c,r
}



/etc/snmp/snmpd.conf
rocommunity public

ANY SUGGESTION OVER THE ISSUE IS APPRECIATED.
 


i have to configure snmptrapd.conf, i will update it soon.
 
I finally found the solution
i had problem with my service and command definition.
 

Members online


Top