Plugin not showing up in online dashboard

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.
Locked
bostonangus
Posts: 10
Joined: Tue Jun 30, 2015 2:17 pm

Plugin not showing up in online dashboard

Post 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!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Plugin not showing up in online dashboard

Post by tmcdonald »

Did you make sure to restart nagios after altering the configs?
Former Nagios employee
bostonangus
Posts: 10
Joined: Tue Jun 30, 2015 2:17 pm

Re: Plugin not showing up in online dashboard

Post by bostonangus »

Yes, I've been restarting steadily thinking that might be the issue.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Plugin not showing up in online dashboard

Post 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
bostonangus
Posts: 10
Joined: Tue Jun 30, 2015 2:17 pm

Re: Plugin not showing up in online dashboard

Post by bostonangus »

Everything looks good in there, strange...
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Plugin not showing up in online dashboard

Post by lmiltchev »

Does clearing browser's cache/refreshing the page help?
Be sure to check out our Knowledgebase for helpful articles and solutions!
bostonangus
Posts: 10
Joined: Tue Jun 30, 2015 2:17 pm

Re: Plugin not showing up in online dashboard

Post 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.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Plugin not showing up in online dashboard

Post by ssax »

You should use this command to restart Nagios:

Code: Select all

service nagios restart
Locked