Why installed nagios plugins doesnt work?

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.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Why installed nagios plugins doesnt work?

Post 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?
Former Nagios Employee.
me.
Jessuzz94
Posts: 162
Joined: Thu Jun 04, 2015 12:08 pm

Re: Why installed nagios plugins doesnt work?

Post by Jessuzz94 »

When i run the command ./check_dhcp, yes
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Why installed nagios plugins doesnt work?

Post 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.
Former Nagios Employee.
me.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Why installed nagios plugins doesnt work?

Post 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.
Former Nagios Employee.
me.
Jessuzz94
Posts: 162
Joined: Thu Jun 04, 2015 12:08 pm

Re: Why installed nagios plugins doesnt work?

Post 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?
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Why installed nagios plugins doesnt work?

Post 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:

Code: Select all

service iptables stop
Former Nagios Employee.
me.
Jessuzz94
Posts: 162
Joined: Thu Jun 04, 2015 12:08 pm

Re: Why installed nagios plugins doesnt work?

Post by Jessuzz94 »

Yeah was only for testing nagios plugins in my nagios server, if in one future ever need.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Why installed nagios plugins doesnt work?

Post 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?
Former Nagios Employee.
me.
Jessuzz94
Posts: 162
Joined: Thu Jun 04, 2015 12:08 pm

Re: Why installed nagios plugins doesnt work?

Post by Jessuzz94 »

Its all right, Very thanks.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Why installed nagios plugins doesnt work?

Post 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!
Former Nagios Employee.
me.
Locked