Not able to Delete scheduled downtime

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
manimurugesan
Posts: 145
Joined: Wed Oct 03, 2018 9:15 am

Not able to Delete scheduled downtime

Post by manimurugesan »

Hello ,

One of my nagios console i have tried to delete scheduled downtime but it's re-appearing again ,can you please help us to fix this issue ASAP
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Not able to Delete scheduled downtime

Post by ssax »

Try deleting it again to replicate the issue, then right after please send me a copy of your profile, you can download it from Admin > System Profile by clicking the Download Profile button.

What is the output of these commands?

Code: Select all

ls -l /usr/local/nagios/var
ls -l /usr/local/nagios/var/rw
manimurugesan
Posts: 145
Joined: Wed Oct 03, 2018 9:15 am

Re: Not able to Delete scheduled downtime

Post by manimurugesan »

PFB Commands output .

########ls -l /usr/local/nagios/var ###############



drwxrwxr-x 2 nagios nagios 20480 Sep 20 23:59 archives
-rw-r--r-- 1 nagios nagios 0 Aug 25 2020 host-perfdata
-rw-r--r-- 1 nagios nagios 2197694 Sep 21 04:21 nagios.log
-rw------- 1 nagios nagios 0 Apr 6 01:39 nagios.tmpJqIPms
-rw------- 1 nagios nagios 3464700 Jun 20 15:14 nagios.tmplpOHMB
-rw-r--r-- 1 nagios nagios 6 Sep 20 04:50 ndo2db.lock
-rw-r--r-- 1 nagios nagios 0 Sep 20 21:37 ndomod.tmp
srwxr-xr-x 1 nagios nagios 0 Sep 20 04:50 ndo.sock
-rw-r--r-- 1 nagios nagios 1683450 Sep 20 03:26 npcd.log
-rw-r--r-- 1 nagios nagios 32848 Aug 25 2020 objects.cache
-rw-rw-r-- 1 nagios nagios 3764788 Sep 20 03:26 perfdata.log
-rw------- 1 nagios nagios 38839090 Sep 21 03:37 retention.dat
drwsr-xr-x 2 nagios nagios 4096 Sep 20 21:37 rw
-rw-r--r-- 1 nagios nagios 429 Aug 25 2020 service-perfdata
drwxrwxr-x 5 nagios nagios 4096 Aug 25 2020 spool
drwxrwxr-x 2 nagios nagios 4096 Sep 21 04:22 stats

######### ls -l /usr/local/nagios/var/rw###########
total 0
prw-rw---- 1 nagios nagios 0 Sep 21 04:08 nagios.cmd
srw-rw---- 1 nagios nagios 0 Sep 20 21:37 nagios.qh
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: Not able to Delete scheduled downtime

Post by pbroste »

Hello @manimurugesan

Want to have you list the downtime, and then delete the downtime and then report the results:

Code: Select all

curl -k -XGET "https://yourhostnameoripaddresshere/nagiosxi/api/v1/objects/downtime?apikey=yourapikeyhere&pretty=1"
From this list, get the id # to delete and place that where the XX is in following command:

Code: Select all

curl -k -vv -XDELETE "https://yourhostnameoripaddresshere/nagiosxi/api/v1/system/scheduleddowntime/XX?apikey=yourapikeyhere&pretty=1"
Please follow up with the results,
Perry
Locked