Quantcast
Channel: Zenoss Community: Message List
Viewing all articles
Browse latest Browse all 1118

Re: FTP monitor

$
0
0

srikanth,

Sorry, but have never used this template/zenpack before and it doesn't seem to be as straight forward as I thought.  Can't seem to do anything with the -s, since the plugin doesn't seem to authenticate to the remote ftp server.  So what it actually does is check the banner of the ftp site for a string. 

Example:

I brought up a ftp server on my desktop and here is the response:

ftp 10.73.32.130

Connected to 10.73.32.130 (10.73.32.130).

220-This site is running the BisonWare BisonFTP server product V3.5

220-

220-This product is not registered.

220-

220-Please encourage the operator of this site to register immediately

220-

220-You can contact BisonWare at 100416.3553@compuserve.com for information

220 about our software products and services

Name (10.73.32.130:zenoss):

 

Now for the check_ftp:

/usr/lib64/nagios/plugins/check_ftp -v -H 10.73.32.130 -p 21 -s -e "Bison" -q "bye"

Using service FTP

Port: 21

flags: 0x6

Send string: -e

Quit string: QUIT

 

server_expect_count: 1

        0: 220

received 69 bytes from host

#-raw-recv-------#

220-This site is running the BisonWare BisonFTP server product V3.5

 

#-raw-recv-------#

looking for [220] in beginning of [220-This site is running the BisonWare BisonFTP server product V3.5]

found it

FTP OK - 0.037 second response time on port 21 [220-This site is running the BisonWare BisonFTP server product V3.5]|time=0.036547s;;;0.000000;10.000000

 

This final response (FTP OK....) is giving zenoss some data to map for the graphs.

 

If you are just testing that you get the banner of the ftp site, just use the expect string in your configuration of the datapoint and don't use the send string.

Don't think this template will allow you to login to the server.

You can test your site by using a similar command on your zenoss server, but replace Bison with something in your banner and verify you get the FTP OK:

/usr/lib64/nagios/plugins/check_ftp -v -H 10.73.32.130 -p 21 -s -e "Bison" -q "bye"

 

I am going to do some research in this, there has got to be a better way of testing the ftp server.

--Rob


Viewing all articles
Browse latest Browse all 1118

Trending Articles