How to add a new service on a host in command line

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
srikanth.kallu
Posts: 243
Joined: Thu Jul 26, 2012 10:48 am

How to add a new service on a host in command line

Post by srikanth.kallu »

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.
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

Post by sreinhardt »

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.
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.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: How to add a new service on a host in command line

Post by mguthrie »

If you're comfortable with scripting, this is another solution for this as well.
http://library.nagios.com/library/produ ... -nagios-xi
Locked