Hi,
On my AIX server i have a new file system and want to add that to nagios alerts i know i run the monitoring wizard once again with that file system.
Is there any way to do it through the command line.
Thanks.
How to add a new service on a host in command line
-
srikanth.kallu
- Posts: 243
- Joined: Thu Jul 26, 2012 10:48 am
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: How to add a new service on a host in command line
You should be able to do this a couple of different ways.
Run the wizard again, which should overwrite current checks with themselves and add the additional check that you want.
Add a single check to the host or other object through Core Config Manager, without overwriting any other checks. You can also do this by copying a current check that exists for the machine and altering it to your new needs. Be sure to check and apply configuration and handle any errors that may occur. This would be the suggested route to use.
Create and modify a configuration within the static directory, so that it will not get overwritten by nagios. This is would not be an ideal solution based on what was mentioned.
Also, if you just wish to test a plugin or command before adding it to the nagios configs, you can execute them from the plugins directory with your expected variables and directly view the results without effecting nagios as it is now.
Run the wizard again, which should overwrite current checks with themselves and add the additional check that you want.
Add a single check to the host or other object through Core Config Manager, without overwriting any other checks. You can also do this by copying a current check that exists for the machine and altering it to your new needs. Be sure to check and apply configuration and handle any errors that may occur. This would be the suggested route to use.
Create and modify a configuration within the static directory, so that it will not get overwritten by nagios. This is would not be an ideal solution based on what was mentioned.
Also, if you just wish to test a plugin or command before adding it to the nagios configs, you can execute them from the plugins directory with your expected variables and directly view the results without effecting nagios as it is now.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: How to add a new service on a host in command line
If you're comfortable with scripting, this is another solution for this as well.
http://library.nagios.com/library/produ ... -nagios-xi
http://library.nagios.com/library/produ ... -nagios-xi