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.
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Tue Jan 06, 2015 1:28 pm
Ok, you cannot define a service without defining the host first, you need to add something like:
Code: Select all
define host {
host_name XYZ
use generic-host
address 192.168.1.1
max_check_attempts 5
check_interval 5
retry_interval 1
contacts nagiosadmin
notification_interval 60
register 1
}
This is just an example, you would need to define the host to YOUR specifications.
rlinux57
Posts: 324 Joined: Mon Dec 08, 2014 12:03 am
Post
by rlinux57 » Wed Jan 07, 2015 12:14 am
Host is already added. There's no problem in host.
i've run this command on host.
/usr/local/nagios/libexec/./check_ddos.pl -w 50 -c 60
[Output]
No DDOS attack detected (0/50).
Now its commands are accepted by nagios server. But getting error on nagstamon "no output returned from plugin"
sreinhardt
-fno-stack-protector
Posts: 4366 Joined: Mon Nov 19, 2012 12:10 pm
Post
by sreinhardt » Wed Jan 07, 2015 5:59 pm
Can you post the following config please?
Code: Select all
/etc/nagios/servers/webs-services.cfg
Also if you could run the following:
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
rlinux57
Posts: 324 Joined: Mon Dec 08, 2014 12:03 am
Post
by rlinux57 » Thu Jan 08, 2015 7:08 am
Now it seems to be okay, do you have ddos generating script for counter check ddos nagios plugin.?
tmcdonald
Posts: 9117 Joined: Mon Sep 23, 2013 8:40 am
Post
by tmcdonald » Thu Jan 08, 2015 12:55 pm
A DDoS script is not something we are going to post on this forum, but a Google search will undoubtedly come up with something.
Former Nagios employee
rlinux57
Posts: 324 Joined: Mon Dec 08, 2014 12:03 am
Post
by rlinux57 » Thu Jan 08, 2015 10:17 pm
Now you can mark up this post and closed.
Thanks for your coperation.