Page 2 of 3
Re: Why installed nagios plugins doesnt work?
Posted: Sat Aug 08, 2015 5:07 pm
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?
Re: Why installed nagios plugins doesnt work?
Posted: Mon Aug 10, 2015 11:53 am
by Jessuzz94
just the check_dhcp, i run it as root and normal user
Re: Why installed nagios plugins doesnt work?
Posted: Mon Aug 10, 2015 12:00 pm
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.
Re: Why installed nagios plugins doesnt work?
Posted: Mon Aug 10, 2015 3:34 pm
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.
Re: Why installed nagios plugins doesnt work?
Posted: Tue Aug 11, 2015 10:38 am
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?
Re: Why installed nagios plugins doesnt work?
Posted: Tue Aug 11, 2015 3:37 pm
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?
Re: Why installed nagios plugins doesnt work?
Posted: Tue Aug 11, 2015 3:44 pm
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?
Re: Why installed nagios plugins doesnt work?
Posted: Wed Aug 12, 2015 3:56 pm
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
Re: Why installed nagios plugins doesnt work?
Posted: Wed Aug 12, 2015 8:09 pm
by Box293
hsmith wrote:Can you please include some output of the errors you are getting?
Re: Why installed nagios plugins doesnt work?
Posted: Thu Aug 13, 2015 11:14 am
by Jessuzz94
Is the only out put that it trhows me, like i said up