Page 1 of 1

Plugin not showing up in online dashboard

Posted: Wed Jul 01, 2015 2:05 pm
by bostonangus
I'm attempting to configure a plugin that tests the response status of a particular webpage every n minutes.

In
/usr/lib/nagios/plugins
I've added the plugin:
nameof-test.sh
.

In
/etc/nagios-plugins/config/nameof-test.cfg
I've put the command definition:

Code: Select all

define command {
	   command_name    check_specific
	   command_line      /usr/lib/nagios/plugins/nameof-test.sh -u 'website.com' -w 600 -c 1500
}
In
/etc/nagios3/conf.d/servers.cfg
I've defined the service:

Code: Select all

define service {
           hostgroup_name                  main-group
           service_description              Check_Response
           check_command                  check_specific
           use                                      generic-service
           notification_interval            0 ; set > 0 if you want to be renotified
}
And in the
/etc/nagios3/objects/desired-server
I've added the service:

Code: Select all

define service{
           use                                generic-remote-service         ; Name of server
           host_name                     server-name
           service_description        Check-Response
           check_command            check_specific
        }
The plugin isn't showing up in the dashboard with the others:
Screen Shot 2015-07-01 at 2.43.20 PM.png
Any help or guidance would be greatly appreciated, thanks!

Re: Plugin not showing up in online dashboard

Posted: Wed Jul 01, 2015 2:07 pm
by tmcdonald
Did you make sure to restart nagios after altering the configs?

Re: Plugin not showing up in online dashboard

Posted: Wed Jul 01, 2015 2:14 pm
by bostonangus
Yes, I've been restarting steadily thinking that might be the issue.

Re: Plugin not showing up in online dashboard

Posted: Wed Jul 01, 2015 2:31 pm
by ssax
Are all the files/dirs included in your nagios.cfg?

Code: Select all

cfg_file=/etc/nagios3/objects/desired-server
cfg_dir=/etc/nagios3/conf.d

Re: Plugin not showing up in online dashboard

Posted: Wed Jul 01, 2015 4:17 pm
by bostonangus
Everything looks good in there, strange...

Re: Plugin not showing up in online dashboard

Posted: Thu Jul 02, 2015 9:49 am
by lmiltchev
Does clearing browser's cache/refreshing the page help?

Re: Plugin not showing up in online dashboard

Posted: Tue Jul 07, 2015 12:08 pm
by bostonangus
Fixed this finally.

For some reason the 'service nagios-nrpe-server restart' wasn't sufficient in refreshing the online dashboard & showing new plugins. To fix this I had to restart nagios form within the dashboard. Click on process info in the left menu, then choose to restart nagios process.

This updated successfully with new plugins.

Re: Plugin not showing up in online dashboard

Posted: Tue Jul 07, 2015 1:21 pm
by ssax
You should use this command to restart Nagios:

Code: Select all

service nagios restart