Hi guys ,
This my situation:
I have the following plugin check_smb_file.pl that i downloaded from nagios exchange to check if the file exist in windows file server.
But when i execute on nagios xi i get this error " CRITICAL: No such file or directory (smb://X.X.X.X/nagios$/Compartilhamento.txt$) "
And when i execute on linux terminal i get this error " OK: File/Directory found. (nagios$/Compartilhamento.txt)|'lastModified'=3.16;;;; "
Nagios xi puts " $ " ( i dont know why ) in the final of the line and he does not found the file.
Plugin SMB Error on Nagios XI
Plugin SMB Error on Nagios XI
You do not have the required permissions to view the files attached to this post.
Re: Plugin SMB Error on Nagios XI
Have you tried wrapping the $ARG2$ value in single quotes?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Plugin SMB Error on Nagios XI
yeap! same error...
Re: Plugin SMB Error on Nagios XI
Are you clicking the button "Test Check Command"?
Don't do that, it has problems escaping characters.
Save the check settings, go back to Home, services and schedule an immediate check and see if that works.
Don't do that, it has problems escaping characters.
Save the check settings, go back to Home, services and schedule an immediate check and see if that works.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Plugin SMB Error on Nagios XI
No, Im not.
Follows the image.
Follows the image.
You do not have the required permissions to view the files attached to this post.
Re: Plugin SMB Error on Nagios XI
Try changing $ARG2$ to
Code: Select all
'nagios\\$$\\Compartilhamento.txt'Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Plugin SMB Error on Nagios XI
tgriep,
now it works! the tip of double $$ was good.
'nagios$\Compartilhamento.txt'
Change to:
'nagios$$\Compartilhamento.txt'
thks.
now it works! the tip of double $$ was good.
'nagios$\Compartilhamento.txt'
Change to:
'nagios$$\Compartilhamento.txt'
thks.
Re: Plugin SMB Error on Nagios XI
Glad it worked for you.
Be sure to check out our Knowledgebase for helpful articles and solutions!