External command error: Error in packet

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
romainalternatic
Posts: 3
Joined: Thu Apr 08, 2010 4:10 am

External command error: Error in packet

Post by romainalternatic »

Hello !
I installed Nagios on a computer in my society to control my network.
But, in a router's supervision, i have an error, and I don't know why.
This error is :

Code: Select all

External command error: Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: RFC1213-MIB::ifOperStatus.6
My code is :

Code: Select all

define host{
	use		generic-switch		; Inherit default values from a template
	host_name	RouteurAlternatic	; The name we're giving to this switch
	alias		RouteurAlternatic	; A longer name associated with the switch
	address		192.168.51.254		; IP address of the switch
	hostgroups	switches		; Host groups this switch is associated with
	contact_groups 	admins
	}

define host{
	use 		generic-switch		
	host_name	RouteurSiege		
	alias		RouteurSiege		
	address		192.1.1.251		
	hostgroups	switches	
	contact_groups 	admins	
	}

define host{
	use 		generic-switch
	host_name	FoneraAlternatic
	alias		FoneraAlternatic
	address		192.168.51.253
	hostgroups	switches
	contact_groups 	admins
 	}

define host{
	use 		generic-switch
	alias		ns6757
	host_name	ns6757
	address		
	hostgroups	switches
	contact_groups 	admins	
	}

define host{
	use 		generic-switch
	alias 		RouteurBI
	host_name	RouteurBI
	address 		
	hostgroups 	switches
	contact_groups 	admins
	}

define host{
	use 		generic-switch
	alias		ns6642
	host_name	ns6642
	address 	
	hostgroups	switches
	contact_groups 	admins
	}

define host{
	use		generic-switch
	alias		ks365218
	host_name	ks365218
	address 	
	hostgroups	switches
	contact_groups 	admins
	}

define host{
	use 		generic-switch		
	alias 		journaux.fr	
	host_name	journaux.fr	
	address		
	hostgroups	switches
	contact_groups 	admins
	}

define host{	
	use		generic-switch
	alias		discountpresse.com	
	host_name	discountpresse.com
	address		
	hostgroups	switches	
	contact_groups 	admins
	}

define host{
	use		generic-switch
	alias		zepresse.fr
	host_name	zepresse.fr	
	address		
	hostgroups	switches
	contact_groups 	admins
	}

define host{
	use		generic-switch
	alias		lesfigurines.com
	host_name	lesfigurines.com
	address		
	hostgroups	switches
	contact_groups 	admins
	}

define host{
	use		generic-switch
	alias		leportaildelabd.com
	host_name	leportaildelabd.com
	address		
	hostgroups	switches
	contact_groups 	admins
	}	

define host{	
	use		generic-switch
	alias		ettwin.bourgogne-interim.com		
	host_name	ettwin.bourgogne-interim.com
	address		
	hostgroups	switches
	contact_groups 	admins
	}

define host{
	use		generic-switch	
	alias		fm.alternatic.com
	host_name	fm.alternatic.com
	address 	
	hostgroups	switches
	contact_groups 	admins
	}

define host{
	use		generic-switch	
	alias		glpiocs.alternatic.com
	host_name	glpiocs.alternatic.com
	address 	
	hostgroups	switches 
	contact_groups 	admins
	}

###############################################################################
###############################################################################
#
# HOST GROUP DEFINITIONS
#
###############################################################################
###############################################################################

# Create a new hostgroup for switches

define hostgroup{
	hostgroup_name	switches		; The name of the hostgroup
	alias		Network Switches	; Long name of the group
	}




###############################################################################
###############################################################################
#
# SERVICE DEFINITIONS
#
###############################################################################
###############################################################################

# Create a service to PING to switch

define service{
	use			generic-service	; Inherit values from a template
	host_name		RouteurAlternatic,RouteurSiege,FoneraAlternatic		; The name of the host the service is associated with
	service_description	PING							; The service description
	check_command		check_ping!600.0,20%!1000.0,90%				; The command used to monitor the service
	normal_check_interval	5							; Check the service every 5 minutes under normal conditions
	retry_check_interval	1
	contact_groups 	admins							; Re-check the service every minute until its final/hard state is determined
	}

# Create a service to ping to servers
define service{
	use			generic-service
	host_name		ns6757,ns6642,ks365218,journaux.fr,discountpresse.com,zepresse.fr,lesfigurines.com,leportaildelabd.com,ettwin.bourgogne-interim.com,fm.alternatic.com,glpiocs.alternatic.com
	check_command		check_ping!600.0,20%!1000.0,90%
	service_description	PING
	normal_check_interval	2	
	retry_check_interval	1	
	contact_groups 	admins
	}

# Monitor uptime via SNMP

define service{
	use			generic-service	; Inherit values from a template
	host_name		RouteurAlternatic,RouteurSiege,RouteurBI,FoneraAlternatic,ns6757,ns6642,ks365218	
	service_description	Uptime	
	check_command		check_snmp!-C public -o sysUpTime.0
	contact_groups 	admins
	}



# Monitor Port 1 status via SNMP

define service{
	use			generic-service	; Inherit values from a template
	host_name		RouteurAlternatic,RouteurSiege	
	service_description	Port 1 Link Status
	check_command		check_snmp!-C public -o ifOperStatus.1 -r 1 -m RFC1213-MIB
	contact_groups 	admins
	}


#Port 2 status

define service{
	use			generic-service
	host_name 		RouteurAlternatic,RouteurSiege
	service_description	Port 2 Link Status
	check_command 		check_snmp!-C public -o ifOperStatus.2 -r 1 -m RFC1213-MIB
	contact_groups 	admins
	}


#Port 3 status

define service{
	use			generic-service
	host_name		RouteurAlternatic,RouteurSiege
	service_description	Port 3 Link Status

	check_command 		check_snmp!-C public -o ifOperStatus.3 -r 1 -m RFC1213-MIB
	contact_groups 	admins
	}

#Port 4 status

define service{
	use			generic-service
	host_name		RouteurAlternatic,RouteurSiege
	service_description	Port 4 Link Status
	check_command		check_snmp!-C public -o ifOperStatus.4 -r 1 -m RFC1213-MIB
	contact_groups 	admins
	}

 
#Port 5 status

define service{
	use 			generic-service
	host_name		RouteurAlternatic
	service_description	Port 5 Link Status
	check_command		check_snmp!-C public -o ifOperStatus.5 -r 1 -m RFC1213-MIB
	contact_groups 	admins
	}

#Port 6 status

define service{
	use 			generic-service
	host_name		RouteurAlternatic
	service_description	Port 6 Link Status
	check_command		check_snmp!-C public -o ifOperStatus.6 -r 1 -m RFC1213-MIB
	contact_groups 	admins
	}

 
#Port 7 status

define service{
	use 			generic-service
	host_name		RouteurAlternatic
	service_description	Port 7 Link Status
	check_command		check_snmp!-C public -o ifOperStatus.7 -r 1 -m RFC1213-MIB
	contact_groups 	admins
	}
 
#Port 8 status

define service{
	use 			generic-service
	host_name		RouteurAlternatic
	service_description	Port 8 Link Status
	check_command		check_snmp!-C public -o ifOperStatus.8 -r 1 -m RFC1213-MIB
	contact_groups 	admins
	}

#Surveillande du service HTTP

define service {
    use                	 	generic-service 
    host_name         	 	journaux.fr,zepresse.fr,discountpresse.com,lesfigurines.com,leportaildelabd.com
    service_description 	HTTP
    check_command       	check_http
    contact_groups 		admins
}

Can you help me please?

PS : sorry for my bad english ....
User avatar
admin
Site Admin
Posts: 256
Joined: Mon Oct 12, 2009 8:21 am

Re: External command error: Error in packet

Post by admin »

What service or services are showing this error?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Ethan Galstad
President
romainalternatic
Posts: 3
Joined: Thu Apr 08, 2010 4:10 am

Re: External command error: Error in packet

Post by romainalternatic »

It is a router called RouteurAlternatic.
The configuration is :

Code: Select all

define host{
   use      generic-switch      ; Inherit default values from a template
   host_name   RouteurAlternatic   ; The name we're giving to this switch
   alias      RouteurAlternatic   ; A longer name associated with the switch
   address      192.168.51.254      ; IP address of the switch
   hostgroups   switches      ; Host groups this switch is associated with
   contact_groups    admins
   }
And I have problem on ports no. 6, 7 and 8.
The configuration is :

Code: Select all

#Port 6 status

define service{
   use          generic-service
   host_name      RouteurAlternatic
   service_description   Port 6 Link Status
   check_command      check_snmp!-C public -o ifOperStatus.6 -r 1 -m RFC1213-MIB
   contact_groups    admins
   }


#Port 7 status

define service{
   use          generic-service
   host_name      RouteurAlternatic
   service_description   Port 7 Link Status
   check_command      check_snmp!-C public -o ifOperStatus.7 -r 1 -m RFC1213-MIB
   contact_groups    admins
   }

#Port 8 status

define service{
   use          generic-service
   host_name      RouteurAlternatic
   service_description   Port 8 Link Status
   check_command      check_snmp!-C public -o ifOperStatus.8 -r 1 -m RFC1213-MIB
   contact_groups    admins
   }
User avatar
admin
Site Admin
Posts: 256
Joined: Mon Oct 12, 2009 8:21 am

Re: External command error: Error in packet

Post by admin »

Are there 8 "regular" ports on the router? Perhaps port 6-8 are psuedo ports that don't support the ifOperstatus.X naming convention in the MIB.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Ethan Galstad
President
romainalternatic
Posts: 3
Joined: Thu Apr 08, 2010 4:10 am

Re: External command error: Error in packet

Post by romainalternatic »

yes i have 8 ports on my router. It is a Linksys RV082
Locked