Changing monitored service name/config

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
mpones
Posts: 2
Joined: Wed Aug 28, 2013 5:44 pm

Changing monitored service name/config

Post by mpones »

I've been thrown (as I'm sure many people on this forum have) into the mix of a network, which utilizes Nagios to monitor everything. I'm not even sure which version of Nagios it is, I'm thinking it's Core, but I couldn't know for sure.

There are three VMware ESXi host boxes running 14 VMs, one of which is Ubuntu server housing Nagios.

I upgraded Veeam Enterprise from version 6.5 to 7 the other day on one of our VMs, and it looks like the upgrade renamed one of Veeam's service names (from "Veeam Backup Catalog Service" to "Veeam Backup Catalog Data Service"), and now nagios is throwing me the following:

Code: Select all

Service: All Services
Host: RLM-BACKUP
Address: 192.168.111.105
State: CRITICAL

Date/Time: Sun Oct 5 16:28:41 PDT 2014

Additional Info:

Veeam Backup Catalog Service: Not found - Veeam Backup Enterprise Manager: Started - Veeam Backup Proxy Service: Started - Veeam Backup Service: Started - Veeam Installer Service: Started - Veeam vPower NFS Service: Started
I'm assuming based on the additional info, that it's because the service name has changed, which is why it can't find the Veeam Backup Catalog Service. I need to find where to change this name, so I did some digging, and edited the windows.cfg file located in /usr/local/nagios/etc/objects/

I edited the service name under "define service" for RLM backup, adding the word "Data" to the changed service name. I'm still getting hit with emails warning me about the above service not being found.

Is there a different file, in a different location I should be editing?

Thanks in advance for any guidance!
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Changing monitored service name/config

Post by sreinhardt »

This would probably be easier if we had a copy of the configurations. Could you pm me a tared copy of your /usr/local/nagios/etc please.(wouldnt want sensitive info on google or anything) You are almost definitely correct that it is a simple change to the service name. You can also look at the services.msc page and make sure that the service name is the full name with data included and not shortened in any way, nagios needs the service name not display name, as an fyi.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
mpones
Posts: 2
Joined: Wed Aug 28, 2013 5:44 pm

Re: Changing monitored service name/config

Post by mpones »

I'm not a linux master, unfortunately, but I can do some of the basics. I've created a tar.gz of the folder you've specified, but I can't seem to find a way to get the archive externally, whether fetching or copying from. I've tried various mount commands trying to get an smb share mounted with no luck (both smbfs and cifs), and sometimes I would be told the app/command doens't exist. So I would sudo apt-get, but the installer would fail every time. I'm almost at a loss for words, but don't want to dive too far into this box, as all it does is house nagios, I don't want to screw it up further...

I can continue to try to get this stupid targz i created off of the box, but is there any file you would recommend I try to find/edit first for the service name before going nuts like this? I understand if not.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Changing monitored service name/config

Post by sreinhardt »

Fair enough, let's do it the easiest way I know, WinSCP. It will use your ssh credentials and the ip of the nagios server, and allow you to copy files between your windows system and the linux system just like on an ftp server. http://winscp.net/
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked