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.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Why installed nagios plugins doesnt work?

Post by jdalrymple »

Jessuzz94 wrote:Error: Could not bind socket to interface eth0. Check your privileges
This is weird. Nagios by itself doesn't open any sockets to listen on. What command are you running that generates this error? Furthermore, are you running that command as root?
Jessuzz94
Posts: 162
Joined: Thu Jun 04, 2015 12:08 pm

Re: Why installed nagios plugins doesnt work?

Post by Jessuzz94 »

just the check_dhcp, i run it as root and normal user
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Why installed nagios plugins doesnt work?

Post by jdalrymple »

Lots of confusion:
Jessuzz94 wrote:check_dhcp
has nothing to do with the originally stated problem:
Jessuzz94 wrote:When i put the command "systemctl status nagios.service it trhows me:

Code: Select all

    Failed to start LSB: Starts and stops the Nagios monitoring server.
Is it possible you're trying to install nagios and also plugins on your dhcp server? This is not the right approach. You shouldn't have to install anything on the remotely monitored dhcp server.
Jessuzz94
Posts: 162
Joined: Thu Jun 04, 2015 12:08 pm

Re: Why installed nagios plugins doesnt work?

Post by Jessuzz94 »

The issue is that i only want to test plugins in the linux server, its not a dhcp server, but if its not, it should be show CRITICAL or something in the check_dhcp plugin, the problem is that some plugins doesnt work, i only testing plugins if in one future i could use they.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Why installed nagios plugins doesnt work?

Post by tgriep »

So all you want to do is test the plugins and not setup Nagios for monitoring?

Can you show us which plugins you are running, how you ran them and the output from running the plugins?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Jessuzz94
Posts: 162
Joined: Thu Jun 04, 2015 12:08 pm

Re: Why installed nagios plugins doesnt work?

Post by Jessuzz94 »

i only change to the plugins diretory ( cd /usr/local/nagios/libexec ) and run the ./check_dhcp command to test and shows me the thing of privileges, i have seen some issue with two plugins, i do a "ls" in the ibexec directory and it shows me all the plugins but the check_dhcp and check_icmp are shading in red, most of plugins are writted in green, and few in blue, what means?
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:i only change to the plugins diretory ( cd /usr/local/nagios/libexec ) and run the ./check_dhcp command to test and shows me the thing of privileges, i have seen some issue with two plugins, i do a "ls" in the ibexec directory and it shows me all the plugins but the check_dhcp and check_icmp are shading in red, most of plugins are writted in green, and few in blue, what means?
The colors are normal, that is what you should be seeing. Green for example is an executable file. Blue is a directory. The red may look alarming but it is normal, can you still run it?

Code: Select all

/usr/local/nagios/libexec/./check_icmp -h
Can you please include some output of the errors you are getting?
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 »

It work in nagios with ubuntu server, not work 100% it basically says that i need to put more arguments, but in my actual centOS its throws me the same thing, the privileges
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Why installed nagios plugins doesnt work?

Post by Box293 »

hsmith wrote:Can you please include some output of the errors you are getting?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Jessuzz94
Posts: 162
Joined: Thu Jun 04, 2015 12:08 pm

Re: Why installed nagios plugins doesnt work?

Post by Jessuzz94 »

Is the only out put that it trhows me, like i said up
Locked