import to nagios via command line

85 views
Skip to first unread message

Andre Ferreira

unread,
Apr 27, 2011, 8:14:42 AM4/27/11
to GroundWork Monitor CE 6.0
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.

Andre Ferreira

unread,
Apr 27, 2011, 10:29:26 AM4/27/11
to GroundWork Monitor CE 6.0
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

Joao Amaro

unread,
Apr 27, 2011, 10:42:29 AM4/27/11
to groundwork-m...@googlegroups.com
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

Andre Ferreira

unread,
Apr 27, 2011, 11:01:38 AM4/27/11
to GroundWork Monitor CE 6.0
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 ..


On Apr 27, 3:42 pm, Joao Amaro <joao.am...@gmail.com> wrote:
> 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 *
>
> On Wed, Apr 27, 2011 at 3:29 PM, Andre Ferreira
> <andreocferre...@gmail.com>wrote:

Joao Amaro

unread,
Apr 27, 2011, 11:11:54 AM4/27/11
to groundwork-m...@googlegroups.com
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

Andre Ferreira

unread,
Apr 27, 2011, 11:16:43 AM4/27/11
to GroundWork Monitor CE 6.0
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?

On Apr 27, 4:11 pm, Joao Amaro <joao.am...@gmail.com> wrote:
> 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
>
> On Wed, Apr 27, 2011 at 4:01 PM, Andre Ferreira
> <andreocferre...@gmail.com>wrote:
Reply all
Reply to author
Forward
0 new messages