Page 2 of 3

Re: monitoring hp procurve

Posted: Tue Aug 22, 2017 4:38 pm
by jtintegration
This is the output of what I got when I run the command, I want to run the "check_snmp_hp-procurve-counters.sh against 10.4.0.100, not sure what the complete command should be.

Re: monitoring hp procurve

Posted: Tue Aug 22, 2017 4:58 pm
by scottwilkerson
Ok, the script has windows line endings.

You should be able to fix this by running

Code: Select all

dos2unix /usr/local/nagios/libexec/check_snmp_hp-procurve-counters.sh
If you get an error

Code: Select all

-bash: dos2unix: command not found
run the following:

Code: Select all

yum install dos2unix -y
and then run the command again.

Once completed, you can proceed in trying to run the command

Re: monitoring hp procurve

Posted: Tue Aug 22, 2017 5:13 pm
by jtintegration
it looks like same message, please confirm if my command is correct?

Re: monitoring hp procurve

Posted: Tue Aug 22, 2017 5:15 pm
by jtintegration
it looks like same message, please confirm if my command is correct?

Re: monitoring hp procurve

Posted: Wed Aug 23, 2017 9:20 am
by scottwilkerson
run the following

Code: Select all

dos2unix /usr/local/nagios/libexec/check_snmp_hp-procurve-counters.sh
Then try again

Re: monitoring hp procurve

Posted: Wed Aug 23, 2017 12:46 pm
by jtintegration
This is what I got for running the command you suggest, no difference???

Re: monitoring hp procurve

Posted: Wed Aug 23, 2017 1:22 pm
by dwhitfield
Now that the file has been converted, you can run:
/usr/local/nagios/libexec/check_snmp_hp-procurve-counters.sh 10.4.0.100

Did you already define the command in XI? If so, can you send us a screenshot of what you have?

Also, ***only if you attempted to set this up in XI***, can you PM me your Profile? You can download it by going to Admin > System Config > System Profile and click the ***Download Profile*** button towards the top. If for whatever reason you *cannot* download the profile, please put the output of View System Info (5.3.4+, Show Profile if older) in the thread (that will at least get us some info). This will give us access to many of the logs we would otherwise ask for individually. If security is a concern, you can unzip the profile take out what you like, and then zip it up again. We may end up needing something you remove, but we can ask for that specifically.

After you PM the profile, please update this thread. Updating this thread is the only way for it to show back up on our dashboard.

Re: monitoring hp procurve

Posted: Wed Aug 23, 2017 1:36 pm
by jtintegration
Here is the profile and screen shoot results, it looks like I will need oiu.txt but not sure how to copy to Nagios.

Re: monitoring hp procurve

Posted: Wed Aug 23, 2017 2:22 pm
by tgriep
I found these instructions on the Exchange site where the plugin was downloaded from

Download MAC vendors file from:
http://standards-oui.ieee.org/oui.txt
Place it in the same directory of the plugin and give execution rights to all for it.
Put the file in the following folder

Code: Select all

/usr/local/nagios/libexec
and run the following to set the permissions.

Code: Select all

chown nagios.nagios /usr/local/nagios/libexec/out.txt
chmod 777 /usr/local/nagios/libexec/out.txt
Then edit the plugin check_snmp_hp-procurve-counters.sh and change the following line from

Code: Select all

OUIDIR=/usr/lib/nagios/plugins
to

Code: Select all

OUIDIR=/usr/local/nagios/libexec
Save the file and test the plugin to see if it works.

Re: monitoring hp procurve

Posted: Thu Aug 24, 2017 2:08 pm
by jtintegration
i think I made better progress, i was able to manually run the plugin, please see the screen shoot. How do i go about to define Command and Add service, I don't understand the help argument from the documentation. Thanx in advance