Page 1 of 1
Not able to Delete scheduled downtime
Posted: Sun Sep 19, 2021 3:40 pm
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
Re: Not able to Delete scheduled downtime
Posted: Mon Sep 20, 2021 10:54 am
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
Re: Not able to Delete scheduled downtime
Posted: Mon Sep 20, 2021 3:24 pm
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
Re: Not able to Delete scheduled downtime
Posted: Tue Sep 21, 2021 3:38 pm
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