How do I setup a plugin that I have uploaded
How do I setup a plugin that I have uploaded
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
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
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
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.
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
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.
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.