How do I setup a plugin that I have uploaded

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mordruu
Posts: 5
Joined: Thu Mar 11, 2010 3:00 pm

How do I setup a plugin that I have uploaded

Post by mordruu »

I have uploaded the plugin and I see it when I click on "manage plugins" I want to use this plugin to monitor the number of files in a folder on one of the host I have added. I have added a command definition and added it as a check command. How do I add it to a existing host?
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: How do I setup a plugin that I have uploaded

Post by tonyyarusso »

Since this is something that a wizard does not exist for, you would use the Core Config Manager to define a new service, and in the settings of that service there is a field for the check command to use.
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
mordruu
Posts: 5
Joined: Thu Mar 11, 2010 3:00 pm

Re: How do I setup a plugin that I have uploaded

Post by mordruu »

I have added the plugin as a service but at this point how do I configure it to go to a specific folder on that host and keep a count of the file inside if the folder? What are the service arguments?
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: How do I setup a plugin that I have uploaded

Post by mmestnik »

After that you will just need to follow a few more steps.

1. Get into the Nagios Core Config Manager.
Configure -> Nagios Core Config Manager
Logging in here requires some setup under Admin -> Reset Security Credentials -> Config Manager Backend Password
2. Commands -> Commands -> Add New

Then you can use this newly created Command in your host and service checks.
perius
Posts: 13
Joined: Wed Mar 03, 2010 4:10 am

Re: How do I setup a plugin that I have uploaded

Post by perius »

If you dont know wich arguments you can use in the command. And if the webbpage didnt tell you.
Go in to the directory were the check script is. Default for nagiosxi is /usr/local/nagios/libexec/

there you can activate the skript with help prefix---> ./check_diskorwhatever -h

Usually you get a manual for how the script works.

Then its easy to set up the command and then the service.
Locked