Page 1 of 1

How to monitor inverter

Posted: Thu Jul 10, 2014 6:01 am
by Ladi
Hi All,

Please i want to know how to monitor inverter using nagios. I read that nagios can monitor any device that has smnp. Please can anyone put me through on how to achieve this.


Regards,
Ladi

Re: How to monitor inverter

Posted: Thu Jul 10, 2014 4:41 pm
by sreinhardt
I can't say I have ever hear of inverter, however for snmp checks I would suggest check_snmp. You can specify string or integer warning and critical thresholds, and check any oid that your device supports. Then you will need to find what oids and thresholds for your device you would like to monitor. You might also check exchange.nagios.com for already built plugins, if you have not already.

Re: How to monitor inverter

Posted: Fri Jul 11, 2014 5:57 am
by Ladi
Hi Sreinhardt,

Thanks for your quick response. Have checked the nagios site and i found out that there is new plugin for inverter check_snmp _inverter. have download the pluging but have not run.

How do i run this plugin on ubuntu where my nagios server was installed?. Please i need a guide.



Regards.

Re: How to monitor inverter

Posted: Fri Jul 11, 2014 8:29 am
by Ladi
Hi Sreinhardt,
Have download the plugin check_smnp_inverter and have extracted it , is now check_snmp_inverter.sh. i opened the file and i added the plugin directory to it, i changed the mode (chmod +x check_snmo_inverter and i run it

./check_snmp_inverter

i got the below message after running the .sh file.

Usage: ./check_snmp_inverter.sh -H <remote_host_IP> -C <comunity_string> -o <OID> -w <warning value> -c <critical value> -u <measure block> -l <label>

The critical value is the real value that one needs to set for example 0 and the warning value is greater then the critical - ex: 240.

Have recompiled the nagios-plugin and install it and i restarted the nagios service. I check the plugin folder there is nothing like check_snmp_inverter. At the moment , i dont knw if am doing the right thing.

Kindly find the attached check_snmp_inverter.sh .


I awaiting your resoponse.


Regards.
LADI

Re: How to monitor inverter

Posted: Fri Jul 11, 2014 1:33 pm
by slansing
You don't need to re-compile anything, the plugin will be wherever you extracted it to, did you put it in your plugins directory? The help output is to help you construct a command to pass through that script, so you are almost there.

You need to give it the host address, comunity string, OID, and your thresholds / any additional flags required, as it showed you.

Re: How to monitor inverter

Posted: Sat Jul 12, 2014 1:59 am
by Ladi
Hi Slansing,

Thanks for your response. Well I specified my plugin directory in the .sh script. /usr/local/nagios/libexe before I ran It, cos it prompt me for that. Have checked the folder I couldn't see it any plugin like check-snmp_inverter there..

For the output you said I need to define the Oid, etc. Is it not my configuration file that I will need to define that or I need pass it into the script before I run it?

Moreover, I think I will need to create a configuration template for inverter. Pls what else do I need to in the configuration aspect that will make it work?

Your swift rwsponse will be more appreciated.


Regards.

Re: How to monitor inverter

Posted: Mon Jul 14, 2014 11:39 am
by sreinhardt
First things first, you do not absolutely need to put the new plugin in /usr/local/nagios/libexec, but it is highly suggested. This should be as easy as downloading the file to your nagios system, copying it to your plugin directory, giving it proper nagios user and group permissions including execute rights.

Then you need to try running the plugin from the command line and see how you will need to craft your command definition to get your check running the way you would like. A very quick glance at the plugin shows it expects and IP, oid, community string, and warning\critical values at the least.

Once you have figured out if and how the command will work to check your devices, post the command line command that you ran, and we can help craft into a command and template from there. The steps above are things that while we can direct you towards what might work, we cannot tell you what metrics are important for you to monitor, so some experimentation with the plugin will be needed.