GroundWork Forums: import to nagios via command line - GroundWork Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

import to nagios via command line

#1 User is offline   Google Groups 

  • Import Bot
  • PipPipPip
  • Group: Bots
  • Posts: 47
  • Joined: 14-June 11

Posted 15 June 2011 - 01:20 PM

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

#2 User is offline   Google Groups 

  • Import Bot
  • PipPipPip
  • Group: Bots
  • Posts: 47
  • Joined: 14-June 11

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
0

#3 User is offline   Google Groups 

  • Import Bot
  • PipPipPip
  • Group: Bots
  • Posts: 47
  • Joined: 14-June 11

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 *
0

#4 User is offline   Google Groups 

  • Import Bot
  • PipPipPip
  • Group: Bots
  • Posts: 47
  • Joined: 14-June 11

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

#5 User is offline   Google Groups 

  • Import Bot
  • PipPipPip
  • Group: Bots
  • Posts: 47
  • Joined: 14-June 11

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
0

#6 User is offline   Google Groups 

  • Import Bot
  • PipPipPip
  • Group: Bots
  • Posts: 47
  • Joined: 14-June 11

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?
0

#7 User is offline   Partners in IT 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 05-July 11
  • GW Edition:Community Edition

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
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users