monitoring hp procurve
-
jtintegration
- Posts: 56
- Joined: Tue Nov 19, 2013 5:01 pm
Re: monitoring hp procurve
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
Ok, the script has windows line endings.
You should be able to fix this by running
If you get an error
run the following:
and then run the command again.
Once completed, you can proceed in trying to run the command
You should be able to fix this by running
Code: Select all
dos2unix /usr/local/nagios/libexec/check_snmp_hp-procurve-counters.shCode: Select all
-bash: dos2unix: command not foundCode: Select all
yum install dos2unix -yOnce completed, you can proceed in trying to run the command
-
jtintegration
- Posts: 56
- Joined: Tue Nov 19, 2013 5:01 pm
Re: monitoring hp procurve
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
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
run the following
Then try again
Code: Select all
dos2unix /usr/local/nagios/libexec/check_snmp_hp-procurve-counters.sh-
jtintegration
- Posts: 56
- Joined: Tue Nov 19, 2013 5:01 pm
Re: monitoring hp procurve
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
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.
/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
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.
Re: monitoring hp procurve
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
and run the following to set the permissions.
Then edit the plugin check_snmp_hp-procurve-counters.sh and change the following line from
to
Save the file and test the plugin to see if it works.
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/libexecCode: Select all
chown nagios.nagios /usr/local/nagios/libexec/out.txt
chmod 777 /usr/local/nagios/libexec/out.txt
Code: Select all
OUIDIR=/usr/lib/nagios/pluginsCode: Select all
OUIDIR=/usr/local/nagios/libexecBe 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
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.