Page 1 of 2

SNMP problem - No data received from host

Posted: Wed Aug 08, 2012 1:22 pm
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


Re: SNMP problem - No data received from host

Posted: Wed Aug 08, 2012 2:57 pm
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.

Re: SNMP problem - No data received from host

Posted: Fri Aug 10, 2012 1:25 pm
by benhank
sorry for the delay here it is:

Re: SNMP problem - No data received from host

Posted: Fri Aug 10, 2012 1:27 pm
by benhank
and here is the host template

Re: SNMP problem - No data received from host

Posted: Fri Aug 10, 2012 2:20 pm
by scottwilkerson
Can you run the check_em01 command from the commandline?

Re: SNMP problem - No data received from host

Posted: Fri Aug 10, 2012 2:32 pm
by benhank
how? just wanna make sure I do it right

Re: SNMP problem - No data received from host

Posted: Fri Aug 10, 2012 2:36 pm
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...

Re: SNMP problem - No data received from host

Posted: Fri Aug 10, 2012 3:12 pm
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 ~]#            

Re: SNMP problem - No data received from host

Posted: Fri Aug 10, 2012 4:50 pm
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

Re: SNMP problem - No data received from host

Posted: Thu Aug 16, 2012 12:51 pm
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?