Apply configuration from tools

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
chrtap
Posts: 35
Joined: Wed Dec 28, 2011 6:31 am

Apply configuration from tools

Post by chrtap »

Hello,

We use a "Common Tools" that run a script how modify SMS phone number for a special contact.
To avoid this modification to be removed by a snapshot rollback, I search a way to "Apply Configuration" from the "Common Tools".

I tried to add "reconfigure_nagios.sh" to my script but it doesn't work because the script is running as apache's user and don't have right to do that.

What can I do ?

Regards.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Apply configuration from tools

Post by scottwilkerson »

You should be able to make a call to the following URL in the page that loads in the Common Tools and it will complete an Apply Configuration

Code: Select all

/nagiosxi/includes/components/nagioscorecfg/applyconfig.php?cmd=&continue=
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
chrtap
Posts: 35
Joined: Wed Dec 28, 2011 6:31 am

Re: Apply configuration from tools

Post by chrtap »

Hello Scott,

Big thanks to you.

I have had some difficulties to find the correct syntax. The originals script is a shell script who generates an HTML page.

Finlay, I make an ifram :

Code: Select all

echo '<iframe title="Snapshot" width=500 height=200 src="/nagiosxi/includes/components/nagioscorecfg/applyconfig.php?cmd=confirm"></iframe>'
Regards
Christian
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Apply configuration from tools

Post by scottwilkerson »

chrtap wrote:Hello Scott,

Big thanks to you.

I have had some difficulties to find the correct syntax. The originals script is a shell script who generates an HTML page.

Finlay, I make an ifram :

Code: Select all

echo '<iframe title="Snapshot" width=500 height=200 src="/nagiosxi/includes/components/nagioscorecfg/applyconfig.php?cmd=confirm"></iframe>'
Regards
Christian
Great

May we mark this resolved?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked