monitoring hp procurve

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jtintegration
Posts: 56
Joined: Tue Nov 19, 2013 5:01 pm

Re: monitoring hp procurve

Post 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.
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: monitoring hp procurve

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jtintegration
Posts: 56
Joined: Tue Nov 19, 2013 5:01 pm

Re: monitoring hp procurve

Post by jtintegration »

it looks like same message, please confirm if my command is correct?
You do not have the required permissions to view the files attached to this post.
jtintegration
Posts: 56
Joined: Tue Nov 19, 2013 5:01 pm

Re: monitoring hp procurve

Post by jtintegration »

it looks like same message, please confirm if my command is correct?
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: monitoring hp procurve

Post by scottwilkerson »

run the following

Code: Select all

dos2unix /usr/local/nagios/libexec/check_snmp_hp-procurve-counters.sh
Then try again
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jtintegration
Posts: 56
Joined: Tue Nov 19, 2013 5:01 pm

Re: monitoring hp procurve

Post by jtintegration »

This is what I got for running the command you suggest, no difference???
You do not have the required permissions to view the files attached to this post.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: monitoring hp procurve

Post 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.
jtintegration
Posts: 56
Joined: Tue Nov 19, 2013 5:01 pm

Re: monitoring hp procurve

Post 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.
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: monitoring hp procurve

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
jtintegration
Posts: 56
Joined: Tue Nov 19, 2013 5:01 pm

Re: monitoring hp procurve

Post 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
You do not have the required permissions to view the files attached to this post.
Locked