host 'uhcvisappcprafs.umhs.med.umich.edu' not defined anywhe

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
btayl
Posts: 131
Joined: Mon Aug 24, 2020 8:51 am

host 'uhcvisappcprafs.umhs.med.umich.edu' not defined anywhe

Post by btayl »

I get the following error when trying to save a service
Error: Service check command 'check_smb_file.pl !-H uhcvisappcprafs.umhs.med.umich.edu -U umhs/scopemonitor -P **** -f apollo_Prod/Data/DMHltImp.LOG --property size -c 1024MB!!!!!!!' specified in service 'CVIS: Delmar Holter LOG greater than 1GB--please run maintenance' for host 'uhcvisappcprafs.umhs.med.umich.edu' not defined anywhere!
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: host 'uhcvisappcprafs.umhs.med.umich.edu' not defined an

Post by ssax »

Do you have a command in Configure > Core Config Manager > Commands with a Command Name of check_smb_file.pl !-H XXXXXXX -U XXXXX -P **** -f apollo_Prod/Data/DMHltImp.LOG --property size -c 1024MB!!!!!!!? If so, change the command name to check_smb_file and put that stuff in the Command Line section.

If that's not it, please go to Configure > Core Config Manager > Tools > Config File Management:
- Click the Delete Files button (don't worry, it's safe, they will be rewritten from the DB)
- Then click the Write Configs button
- Once they are done being written (don't do anything in between, don't apply config or anything), run this command and PM me the resulting /tmp/NAGIOSBADFILES.zip file:

Code: Select all

zip -r /tmp/NAGIOSBADFILES.zip /usr/local/nagios/etc
Then apply configuration so it fails (which will revert the backend files back to the last known good as usual which is what we want because of the steps above).

Then PM me a copy of your profile.zip, you can download it from Admin > System Profile by clicking the Download Profile button.
btayl
Posts: 131
Joined: Mon Aug 24, 2020 8:51 am

Re: host 'uhcvisappcprafs.umhs.med.umich.edu' not defined an

Post by btayl »

Sent you the files.
btayl
Posts: 131
Joined: Mon Aug 24, 2020 8:51 am

Re: host 'uhcvisappcprafs.umhs.med.umich.edu' not defined an

Post by btayl »

Missed a step will resend files
btayl
Posts: 131
Joined: Mon Aug 24, 2020 8:51 am

Re: host 'uhcvisappcprafs.umhs.med.umich.edu' not defined an

Post by btayl »

Removing the .pl from the end fixed it thanks.
you can close the tickets
btayl
Posts: 131
Joined: Mon Aug 24, 2020 8:51 am

Re: host 'uhcvisappcprafs.umhs.med.umich.edu' not defined an

Post by btayl »

Do not close do not get the error. the work when I run them from ccm but not when I look at them from the dashboard the show in error. I will resend the files
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: host 'uhcvisappcprafs.umhs.med.umich.edu' not defined an

Post by ssax »

What does the Status Information column show for the failing checks?
btayl
Posts: 131
Joined: Mon Aug 24, 2020 8:51 am

Re: host 'uhcvisappcprafs.umhs.med.umich.edu' not defined an

Post by btayl »

I figured it out the slashes where going the wronh way you can close the post
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: host 'uhcvisappcprafs.umhs.med.umich.edu' not defined an

Post by scottwilkerson »

btayl wrote:I figured it out the slashes where going the wronh way you can close the post
Great!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked