How to monitor inverter

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Ladi
Posts: 46
Joined: Tue Nov 06, 2012 3:27 am

How to monitor inverter

Post 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
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: How to monitor inverter

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Ladi
Posts: 46
Joined: Tue Nov 06, 2012 3:27 am

Re: How to monitor inverter

Post 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.
Ladi
Posts: 46
Joined: Tue Nov 06, 2012 3:27 am

Re: How to monitor inverter

Post 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
Attachments
check_snmp_inverter.sh
(3.26 KiB) Downloaded 213 times
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: How to monitor inverter

Post 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.
Ladi
Posts: 46
Joined: Tue Nov 06, 2012 3:27 am

Re: How to monitor inverter

Post 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.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: How to monitor inverter

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked