Page 1 of 1
How do I setup a plugin that I have uploaded
Posted: Tue Apr 13, 2010 1:09 pm
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?
Re: How do I setup a plugin that I have uploaded
Posted: Tue Apr 13, 2010 1:57 pm
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.
Re: How do I setup a plugin that I have uploaded
Posted: Tue Apr 13, 2010 2:35 pm
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?
Re: How do I setup a plugin that I have uploaded
Posted: Tue Apr 13, 2010 4:57 pm
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.
Re: How do I setup a plugin that I have uploaded
Posted: Wed Apr 14, 2010 8:19 am
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.