SNMP problem - No data received from host

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

SNMP problem - No data received from host

Post by benhank »

I had to rebuild my nagios server from scratch.
I exported my data( backups,) from my 32 bit server to my new 64 bit.

After the migration i get this error when nagios tries to check my UPS devices. The problem is that I did not set these up so I don't know what the configuration should be.

Code: Select all

Unknown
SNMP problem - No data received from host
CMD: /usr/bin/snmpget -t 1 -r 5 -m '' -v 1 [authpriv] x.x.x.x :161

Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: SNMP problem - No data received from host

Post by nscott »

Can you show me the command definitions (screenshots from the Core Config Manager are fine) for these services that are returning this result? It looks like its a command definition issue and that would be the best place to start.
Nicholas Scott
Former Nagios employee
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: SNMP problem - No data received from host

Post by benhank »

sorry for the delay here it is:
You do not have the required permissions to view the files attached to this post.
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: SNMP problem - No data received from host

Post by benhank »

and here is the host template
You do not have the required permissions to view the files attached to this post.
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: SNMP problem - No data received from host

Post by scottwilkerson »

Can you run the check_em01 command from the commandline?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: SNMP problem - No data received from host

Post by benhank »

how? just wanna make sure I do it right
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: SNMP problem - No data received from host

Post by scottwilkerson »

Well, I am not familiar with the plugin, but based on your screenshot it would be something like

Code: Select all

/usr/local/nagios/libexec/check_em01 <HOST_ADDRESS> V 2 99 1 100
This is how Nagios will execute it...
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: SNMP problem - No data received from host

Post by benhank »

weird i get

Code: Select all

login as: root
[email protected]'s password:
Last login: Fri Aug 10 15:22:45 2012 from 172.26.68.180
[root@lkennagios01 ~]# /usr/local/nagios/libexec/check_em01 <HOST_ADDRESS> V 2 9                        9 1 100
-bash: HOST_ADDRESS: No such file or directory
[root@lkennagios01 ~]# /usr/local/nagios/libexec/check_em01 172.22.73.199 V 2 99                         1 100
-bash: /usr/local/nagios/libexec/check_em01: /lib/ld-linux.so.2: bad ELF interpr                        eter: No such file or directory
[root@lkennagios01 ~]#            
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: SNMP problem - No data received from host

Post by scottwilkerson »

This error
bad ELF interpreter
Is usually caused by trying to run 64bit plugins on 32bit machines or vice-versa.

Did you switch architectures? If so you will need to get the plugin in the correct arch
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: SNMP problem - No data received from host

Post by benhank »

yes, we did not realize that we were running centos on a 32 bit machine. so we backed up all of our files on the 32bit and restored them on the 64 bit. and then it all fell apart.
scott could you tell me where the files should reside on the new server?
what files do I have to move all of my cfgs?

or should I just put the devices into the import folder and reimport them?
Last edited by benhank on Thu Aug 16, 2012 1:49 pm, edited 1 time in total.
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
Locked