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.
hsmith
Agent Smith
Posts: 3539 Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:
Post
by hsmith » Thu Aug 13, 2015 11:54 am
Jessuzz94 wrote: Is the only out put that it trhows me, like i said up
Error: Could not bind socket to interface eth0. Check your privileges
Is this the only error you have? The only output that it is giving you?
Former Nagios Employee.
me.
Jessuzz94
Posts: 162 Joined: Thu Jun 04, 2015 12:08 pm
Post
by Jessuzz94 » Thu Aug 13, 2015 1:23 pm
When i run the command ./check_dhcp, yes
hsmith
Agent Smith
Posts: 3539 Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:
Post
by hsmith » Thu Aug 13, 2015 1:42 pm
Jessuzz94 wrote: When i run the command ./check_dhcp, yes
I
think this may be a compatibility issue between this version of CentOS and the check_dhcp plugin. Can you please try another plugin and see if you get similar results? I was able to replicate this on my properly configured CentOS 7.1 VM.
Former Nagios Employee.
me.
hsmith
Agent Smith
Posts: 3539 Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:
Post
by hsmith » Thu Aug 13, 2015 1:50 pm
hsmith wrote: Jessuzz94 wrote: When i run the command ./check_dhcp, yes
I
think this may be a compatibility issue between this version of CentOS and the check_dhcp plugin. Can you please try another plugin and see if you get similar results? I was able to replicate this on my properly configured CentOS 7.1 VM.
I was wrong. You need to use the -i flag to specify what interface you want to use.
Code: Select all
/usr/local/nagios/libexec/check_dhcp -i ens32
In this example you can see mine is named
ens32
To find this, just issue the
ip addr command.
Former Nagios Employee.
me.
Jessuzz94
Posts: 162 Joined: Thu Jun 04, 2015 12:08 pm
Post
by Jessuzz94 » Thu Aug 13, 2015 2:09 pm
OOh, i think it works!, it says now :
"CRITICAL: No DHCPOFFERs were received."
well i dont have a dhcp server and its correct dont you?,
very thanks men, to work it in the nagios web interface i need to put the -i enp0s25 (its my interface) in the check_command?
hsmith
Agent Smith
Posts: 3539 Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:
Post
by hsmith » Thu Aug 13, 2015 2:38 pm
Jessuzz94 wrote: OOh, i think it works!, it says now :
"CRITICAL: No DHCPOFFERs were received."
well i dont have a dhcp server and its correct dont you?,
very thanks men, to work it in the nagios web interface i need to put the -i enp0s25 (its my interface) in the check_command?
That should work.
To clarify, you don't have a DHCP server, but you want to set the check up anyway?
If you DO have a DHCP server, and the check is failing, it is probably firewall related. In which case:
Former Nagios Employee.
me.
Jessuzz94
Posts: 162 Joined: Thu Jun 04, 2015 12:08 pm
Post
by Jessuzz94 » Thu Aug 13, 2015 2:44 pm
Yeah was only for testing nagios plugins in my nagios server, if in one future ever need.
hsmith
Agent Smith
Posts: 3539 Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:
Post
by hsmith » Thu Aug 13, 2015 3:15 pm
Jessuzz94 wrote: Yeah was only for testing nagios plugins in my nagios server, if in one future ever need.
All right, makes sense.
Is there anything else we can do to help you, or am I all right to close this one out?
Former Nagios Employee.
me.
Jessuzz94
Posts: 162 Joined: Thu Jun 04, 2015 12:08 pm
Post
by Jessuzz94 » Thu Aug 13, 2015 4:02 pm
Its all right, Very thanks.
hsmith
Agent Smith
Posts: 3539 Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:
Post
by hsmith » Thu Aug 13, 2015 4:04 pm
Jessuzz94 wrote: Its all right, Very thanks.
Thank you. Feel free to post if you have any more questions, we're always more than happy to help!
Former Nagios Employee.
me.