Page 3 of 3
Re: Why installed nagios plugins doesnt work?
Posted: Thu Aug 13, 2015 11:54 am
by hsmith
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?
Re: Why installed nagios plugins doesnt work?
Posted: Thu Aug 13, 2015 1:23 pm
by Jessuzz94
When i run the command ./check_dhcp, yes
Re: Why installed nagios plugins doesnt work?
Posted: Thu Aug 13, 2015 1:42 pm
by hsmith
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.
Re: Why installed nagios plugins doesnt work?
Posted: Thu Aug 13, 2015 1:50 pm
by hsmith
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.
Re: Why installed nagios plugins doesnt work?
Posted: Thu Aug 13, 2015 2:09 pm
by Jessuzz94
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?
Re: Why installed nagios plugins doesnt work?
Posted: Thu Aug 13, 2015 2:38 pm
by hsmith
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:
Re: Why installed nagios plugins doesnt work?
Posted: Thu Aug 13, 2015 2:44 pm
by Jessuzz94
Yeah was only for testing nagios plugins in my nagios server, if in one future ever need.
Re: Why installed nagios plugins doesnt work?
Posted: Thu Aug 13, 2015 3:15 pm
by hsmith
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?
Re: Why installed nagios plugins doesnt work?
Posted: Thu Aug 13, 2015 4:02 pm
by Jessuzz94
Its all right, Very thanks.
Re: Why installed nagios plugins doesnt work?
Posted: Thu Aug 13, 2015 4:04 pm
by hsmith
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!