Page 1 of 1

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

Posted: Thu Feb 11, 2021 9:11 am
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!

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

Posted: Thu Feb 11, 2021 7:21 pm
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.

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

Posted: Fri Feb 12, 2021 7:21 am
by btayl
Sent you the files.

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

Posted: Fri Feb 12, 2021 7:34 am
by btayl
Missed a step will resend files

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

Posted: Fri Feb 12, 2021 7:38 am
by btayl
Removing the .pl from the end fixed it thanks.
you can close the tickets

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

Posted: Fri Feb 12, 2021 7:57 am
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

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

Posted: Fri Feb 12, 2021 8:44 pm
by ssax
What does the Status Information column show for the failing checks?

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

Posted: Sat Feb 13, 2021 12:07 pm
by btayl
I figured it out the slashes where going the wronh way you can close the post

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

Posted: Mon Feb 15, 2021 9:34 am
by scottwilkerson
btayl wrote:I figured it out the slashes where going the wronh way you can close the post
Great!

Locking thread