From: Andre Ferreira <andreocferre...@gmail.com>
Date: Wed, 27 Apr 2011 05:14:42 -0700 (PDT)
Local: Wed, Apr 27 2011 5:14 am
Subject: import to nagios via command line
Hello,
How can I import to nagios by the command line? Basically, I want to
know which file is executed when the 'commit' button is clicked.
Thanks in advance.
Page 1 of 1
import to nagios via command line
#2
Posted 15 June 2011 - 01:21 PM
From: Andre Ferreira <andreocferre...@gmail.com>
Date: Wed, 27 Apr 2011 07:29:26 -0700 (PDT)
Local: Wed, Apr 27 2011 7:29 am
Subject: Re: import to nagios via command line
The idea is to add make a script that add an host to monarch database
and then commit and update automatically so we can see it in nagios
status map
Date: Wed, 27 Apr 2011 07:29:26 -0700 (PDT)
Local: Wed, Apr 27 2011 7:29 am
Subject: Re: import to nagios via command line
The idea is to add make a script that add an host to monarch database
and then commit and update automatically so we can see it in nagios
status map
#3
Posted 15 June 2011 - 01:21 PM
From: Joao Amaro <joao.am...@gmail.com>
Date: Wed, 27 Apr 2011 15:42:29 +0100
Local: Wed, Apr 27 2011 7:42 am
Subject: Re: import to nagios via command line
Hi
Take a look at *monarch.cgi* (in
/usr/local/groundwork/core/monarch/cgi-bin/monarch.cgi)
Doesn't seems very simple.
Regards
*João Amaro *
Date: Wed, 27 Apr 2011 15:42:29 +0100
Local: Wed, Apr 27 2011 7:42 am
Subject: Re: import to nagios via command line
Hi
Take a look at *monarch.cgi* (in
/usr/local/groundwork/core/monarch/cgi-bin/monarch.cgi)
Doesn't seems very simple.
Regards
*João Amaro *
#4
Posted 15 June 2011 - 01:21 PM
From: Andre Ferreira <andreocferre...@gmail.com>
Date: Wed, 27 Apr 2011 08:01:38 -0700 (PDT)
Local: Wed, Apr 27 2011 8:01 am
Subject: Re: import to nagios via command line
Joao,
Are you sure that that is the file responsible for that? I thought it
were the files at /usr/local/groundwork/core/monarch/lib ..
Date: Wed, 27 Apr 2011 08:01:38 -0700 (PDT)
Local: Wed, Apr 27 2011 8:01 am
Subject: Re: import to nagios via command line
Joao,
Are you sure that that is the file responsible for that? I thought it
were the files at /usr/local/groundwork/core/monarch/lib ..
#5
Posted 15 June 2011 - 01:22 PM
From: Joao Amaro <joao.am...@gmail.com>
Date: Wed, 27 Apr 2011 16:11:54 +0100
Local: Wed, Apr 27 2011 8:11 am
Subject: Re: import to nagios via command line
Quick checking ....
Aren't those files responsible to merge Monarch into nagios cfg files ?
The question is ... when are they called ? When you add a host to monarch,
or when you do a commit ?
Sds
Date: Wed, 27 Apr 2011 16:11:54 +0100
Local: Wed, Apr 27 2011 8:11 am
Subject: Re: import to nagios via command line
Quick checking ....
Aren't those files responsible to merge Monarch into nagios cfg files ?
The question is ... when are they called ? When you add a host to monarch,
or when you do a commit ?
Sds
#6
Posted 15 June 2011 - 01:22 PM
From: Andre Ferreira <andreocferre...@gmail.com>
Date: Wed, 27 Apr 2011 08:16:43 -0700 (PDT)
Local: Wed, Apr 27 2011 8:16 am
Subject: Re: import to nagios via command line
I was asking, I really dont know.
The idea is to add an host manually (in the SQL database) and then
import those settings to see them in nagios status map. That means, I
want to know what do I have to execute to make the same thing as
'import' button in GW interface. U know what I mean?
Date: Wed, 27 Apr 2011 08:16:43 -0700 (PDT)
Local: Wed, Apr 27 2011 8:16 am
Subject: Re: import to nagios via command line
I was asking, I really dont know.
The idea is to add an host manually (in the SQL database) and then
import those settings to see them in nagios status map. That means, I
want to know what do I have to execute to make the same thing as
'import' button in GW interface. U know what I mean?
#7
Posted 05 July 2011 - 01:38 AM
Did anyone find out if it was possible to call the correct cgi to run a commit from the command line? I too could really do with this option as I want to provide a user with the option to commit but I don't want them to see the other commands and configuration settings that are also available on that page.
Thanks
Andy
Thanks
Andy
Share this topic:
Page 1 of 1

Help










