Page 1 of 1
You can't report on Solaris caches without Sun::Solaris::Kst
Posted: Wed May 01, 2013 9:44 am
by k42388
Hi All ,
I 'm urgently to fix the issue as following , don't know why not able to run option of "-C " , appericate any one can help me on it? The OS is solaris 10 on sparc server , please help ...
/usr/local/nagios/libexec/check_mem.pl -w 10 -c 5 -f
CRITICAL - 0.0% (1507 kB) free!|TOTAL=100663295KB;;;; USED=100661788KB;;;; FREE=
1507KB;;;; CACHES=0KB;;;;
/usr/local/nagios/libexec/check_mem.pl -w 10 -c 5 -f -C
You can't report on Solaris caches without Sun::Solaris::Kstat available!
/usr/perl5/5.6.1/lib/Sun/Solaris>
thanks
Kenny
Re: You can't report on Solaris caches without Sun::Solaris:
Posted: Wed May 01, 2013 12:14 pm
by slansing
Have you installed Sun::Solaris::Kstat?
It appears as though the plugin polls this for the required information.
Re: You can't report on Solaris caches without Sun::Solaris:
Posted: Wed May 01, 2013 10:04 pm
by k42388
Hi ,
Thanks your reply , then may I know how to installed Sun::Solaris::Kstat ?
but I 'm fine to run with no "-C" option as folowing so I m not sure Sun::Solaris::Kstat whether installed or not.
/usr/local/nagios/libexec/check_mem.pl -w 10 -c 5 -f
CRITICAL - 0.0% (1560 kB) free!|TOTAL=100663295KB;;;; USED=100661735KB;;;; FREE=
1560KB;;;; CACHES=0KB;;;;
appreciate if reply as soon , I require fix it as soon.
Re: You can't report on Solaris caches without Sun::Solaris:
Posted: Thu May 02, 2013 10:20 am
by abrist
Are you running this check through nrpe or another like-agent? Sun::Solaris::Kstat is installed by default on Solaris boxes, but you need to run the plugin script locally from the solaris box, not from the xi server. This will require an agent.
Re: You can't report on Solaris caches without Sun::Solaris:
Posted: Fri May 03, 2013 7:03 am
by k42388
Hi Abrist ,
The plugin is run on local server (Nagios agent installed) not from Nagios server , so no ideal why onnot able to run -C option (Count OS caches as FREE memory\n";) on the server , then it is fine to run -C option on other same OS server with same check_mem.pl plugin, I attach the check_mem.pl for this post .
I really need to fix it as soon.
Thanks in advance
Kenny
Re: You can't report on Solaris caches without Sun::Solaris:
Posted: Fri May 03, 2013 10:16 am
by slansing
Hello K,
You will need to install that package to pull the data you are looking for, please reference this post as it already answered the question:
http://support.nagios.com/forum/viewtop ... 974#p42974