We did a backup using the instructions provided here:
http://assets.nagios.com/downloads/nagi ... ing_XI.pdf
And restored in a newly installed server. Since the passive checks, by default, don't warn if state doesn't change, some passive checks were being ignored by the server, and we only found out about the issue when a link went down and NAGIOS never reported. At this point we found out that the files /etc/xinetd.d/nsca and /usr/local/nagios/etc/nsca.cfg are not part of the backup/restore procedure. So:
1) Is this a normal behavior?
2) Are there any other relevand files/folders which are not part of this backup?
Passive monitoring files not being backed up
Re: Passive monitoring files not being backed up
Have you tried looking in your Unconfigured Objects for the passive checks?
Former Nagios employee
Re: Passive monitoring files not being backed up
The passive checks were working perfectly in the old server, and the item corresponding to the monitoring was still existant when configuration was restored in the new server. These 2 files I mentioned, however, where not included in the backup script and prevent the passive checks from working. So my question is: wouldn't it be a bug in the backup script? Or is there a possible reason for this files to be excluded from the backup?
Re: Passive monitoring files not being backed up
That is very odd, at least concerning the config file as all files in:
*should* be backed up by the backup script. What version of XI are you running?
Code: Select all
/usr/local/nagios/etc/Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: Passive monitoring files not being backed up
Andy,abrist wrote:That is very odd, at least concerning the config file as all files in:*should* be backed up by the backup script. What version of XI are you running?Code: Select all
/usr/local/nagios/etc/
I see what he is saying. It isn't any files under /usr/local/nagios/etc, it is the two specific files he listed in his opening post. I agree with him, I would hope those two files would be grabbed by the backup script so you don't have to manually back them up.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
Re: Passive monitoring files not being backed up
The nsca config should have been backed up. The following lines from the backup script should have covered it:
I am unsure how the xinetd nsca config is generated though. It may only get created on XI install . . .
Code: Select all
echo "Backing up Nagios Core..."
#cp -rp /usr/local/nagios $mydir
tar czfps $mydir/nagios.tar.gz /usr/local/nagiosFormer Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.