solaris check_swap Error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ganeshanrs1983
Posts: 55
Joined: Wed Jun 18, 2014 10:16 am

solaris check_swap Error

Post by ganeshanrs1983 »

Hello,

Getting the below error from locally and as well as from remote server ( nagios server ).

./check_nrpe -H SERVERNAME -c check_swap -a '-w 10% -c 5%'
UNKNOWN: Unknown output from '/usr/local/bin/top -n | /usr/bin/grep "^Memory"': 'Memory: 8192M real, 3967M free, 3036M swap in use, 15G swap free
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: solaris check_swap Error

Post by jolson »

Hello,

There should be no '%' signs in your command. Can you try running it without them please?

./check_nrpe -H SERVERNAME -c check_swap -a '-w 10 -c 5'

Best,


Jesse
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
ganeshanrs1983
Posts: 55
Joined: Wed Jun 18, 2014 10:16 am

Re: solaris check_swap Error

Post by ganeshanrs1983 »

Still getting the same error.

nagios$ ./check_swap.pl -w 10 -c 5
UNKNOWN: Unknown output from '/usr/local/bin/top -n | /usr/bin/grep "^Memory"': 'Memory: 64G real, 29G free, 24G swap in use, 56G swap free'
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: solaris check_swap Error

Post by jolson »

It's possible that the check_swap.pl plugin will not work on Solaris. Can you try the following plugin please?
http://exchange.nagios.org/directory/Pl ... ap/details
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
ganeshanrs1983
Posts: 55
Joined: Wed Jun 18, 2014 10:16 am

Re: solaris check_swap Error

Post by ganeshanrs1983 »

Getting this below error while extracing solaris swap plugin

bash-2.05$ sudo tar -xf check_solaris_swap_1.2.tar
tar: tape blocksize error
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: solaris check_swap Error

Post by jolson »

After downloading the file, please run the following command against it:

Code: Select all

tar xfzv check_solaris_swap_1_2.tar.gz
The above should extract it properly.
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
ganeshanrs1983
Posts: 55
Joined: Wed Jun 18, 2014 10:16 am

Re: solaris check_swap Error

Post by ganeshanrs1983 »

Issue is resolved. Please close this thread.
Locked