EM01B Monitoring Issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

EM01B Monitoring Issue

Post by BanditBBS »

Ok, so installed a new EM01B and I can browse to it:

Code: Select all

[nagios@robot-herb ~]$ curl 172.16.250.19/index.html?em345678
<html><head></head><body>/N338037TF: 68.8HU:52.5%IL:75.49</body></html>
But if I try and use the check_em01.pl plugin I always get "unable to read sensor"
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: EM01B Monitoring Issue

Post by rkennedy »

Could you attempt to run it over the CLI, with --debug appended? It looks like the plugin has a debug mode, so this should help to see where the script goes along the process.
Former Nagios Employee
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: EM01B Monitoring Issue

Post by BanditBBS »

I meant to say I tried that and didn't really give anything useful:

Code: Select all

connected to 172.16.250.19:80
timeout(alarm) during sensor read
Unable to read sensor
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: EM01B Monitoring Issue

Post by rkennedy »

What if you append --timeout=120 ? Just running through the logic in this plugin to try and knock out the obvious.

It looks simple enough as it just sets the variables based on the response -

Code: Select all

            {
                $read->{'temp-unit'} = $1;
                $read->{'temperature'} = $2;
                $read->{'humidity'} = $3;
                $read->{'illumination'} = $4;
}
Former Nagios Employee
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: EM01B Monitoring Issue

Post by BanditBBS »

Doesn't look as though timeout is actually coded to work as it says invalid option!
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: EM01B Monitoring Issue

Post by rkennedy »

Could you post the entire source of the plugin? I was basing that off of one I found online, and may have been slightly different.
Former Nagios Employee
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: EM01B Monitoring Issue

Post by ssax »

Please try using the attached plugin, I updated it for another customer, apparently some of their devices do not work with their plugin.

Thank you
You do not have the required permissions to view the files attached to this post.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: EM01B Monitoring Issue

Post by BanditBBS »

ssax wrote:Please try using the attached plugin, I updated it for another customer, apparently some of their devices do not work with their plugin.

Thank you
You are the second developer for nagios that I have said this to: I love you!

That fixed it! (after installing XML::Simple on the worker)
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: EM01B Monitoring Issue

Post by avandemore »

Glad your issue is resolved. If you have have further problems please open a new thread.
Previous Nagios employee
Locked