does nagiosql_delete_host.php still work?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
SteveBeauchemin
Posts: 524
Joined: Mon Oct 14, 2013 7:19 pm

does nagiosql_delete_host.php still work?

Post by SteveBeauchemin »

is it just me...

Code: Select all

cd /usr/local/nagiosxi/scripts
./nagiosql_delete_host.php --host aws-ec2-gov-prod-pdm-appserver-3dspace-6
URL: https://localhost/nagiosxi/includes/components/ccm/
PHP Fatal error:  Call to undefined function db_connect_nagiosql() in /usr/local/nagiosxi/scripts/nagiosql_delete_host.php on line 31
Please advise.

Thanks

Steve B
XI 5.7.3 / Core 4.4.6 / NagVis 1.9.8 / LiveStatus 1.5.0p11 / RRDCached 1.7.0 / Redis 3.2.8 /
SNMPTT / Gearman 0.33-7 / Mod_Gearman 3.0.7 / NLS 2.0.8 / NNA 2.3.1 /
NSClient 0.5.0 / NRPE Solaris 3.2.1 Linux 3.2.1 HPUX 3.2.1
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: does nagiosql_delete_host.php still work?

Post by scottwilkerson »

This has been replaced with

Code: Select all

./ccm_delete_object.php --type host --name aws-ec2-gov-prod-pdm-appserver-3dspace-6
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
SteveBeauchemin
Posts: 524
Joined: Mon Oct 14, 2013 7:19 pm

Re: does nagiosql_delete_host.php still work?

Post by SteveBeauchemin »

Modified my AWS automation scripts to use the syntax you provided.

Thanks for the solution Scott.

Steve B
XI 5.7.3 / Core 4.4.6 / NagVis 1.9.8 / LiveStatus 1.5.0p11 / RRDCached 1.7.0 / Redis 3.2.8 /
SNMPTT / Gearman 0.33-7 / Mod_Gearman 3.0.7 / NLS 2.0.8 / NNA 2.3.1 /
NSClient 0.5.0 / NRPE Solaris 3.2.1 Linux 3.2.1 HPUX 3.2.1
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: does nagiosql_delete_host.php still work?

Post by scottwilkerson »

SteveBeauchemin wrote:Modified my AWS automation scripts to use the syntax you provided.

Thanks for the solution Scott.

Steve B
great! Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked