Re: [Nagios-users] Problem with check_disk_smb

2011-07-03 Thread Rob Hillis

On 03/07/11 21:08, radu.p...@technomatic.de wrote:

Please check the typo error in the command definition:

Maybe you should replace %ARG1%with $ARG1$


Thanks greatly - that was it.  I guess I'm not familiar enough with 
Nagios yet that the wrong wrapper around the argument failed to trigger 
recognition of the problem.
--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

[Nagios-users] Problem with check_disk_smb

2011-07-03 Thread Rob Hillis
I'm having a problem getting check_disk_smb going on my Nagios setup.

When I run check_disk_smb from the command line on my Nagios server, I 
get the following:-

#./check_disk_smb -H 10.10.1.8 -s shared -u  -p  -W 
 -w 90% -c 95%
Disk ok - 13.19G (26%) free on \\10.10.1.8\

However, when I configure check_disk_smb as a monitor, I get the 
following status:-

**ePN /usr/lib/nagios/plugins/check_disk_smb: "Invalid conversion in 
sprintf: "%A" at /usr/lib/nagios3/p1.pl line 81,".

The service is configured as followed in services.cfg:-

define service {
 service_description   check_disk_smb
 check_command 
check_disk_smb!90!95
 host_name HSVFIL001S
 check_period  24x7
 notification_period   24x7
 contact_groupsadmins
 notification_interval 15
 notification_options  w,u,c,r
 max_check_attempts3
 check_interval5
 retry_interval1
 active_checks_enabled 1
 passive_checks_enabled0
 notifications_enabled 1
 check_freshness   0
 freshness_threshold   86400
 use   
Default_collector_server,Default_monitor_server,Default_timeperiod_interval_10
}

check_disk_smb is defined in checkcommands.cfg as follows:-

define command {
 command_name  check_disk_smb
 command_line  
$USER1$/check_disk_smb -H $HOSTADDRESS$ -s %ARG1% -W $ARG2$ -u $ARG3$ -p 
$ARG4$ -w $ARG5$ -c $ARG6$
}

I'm running Nagios 3.2.0 on Ubuntu 10.04 LTS installed via apt-get.  The 
config files are generated by NConf 1.2.6-1.  I've defined several other 
services with arguments (admittedly not six of them) without problems.  
I've tried defining the command with all the arguments hard-coded and it 
hasn't made a difference.

Googling has only revealed someone asking a very similar question to me 
(http://osdir.com/ml/network.nagios.devel/2006-11/msg7.html) but 
no-one appears to have answered this question.

Can anyone point me in the direction of a solution to this issue?  I do 
have check_smb running fine, which is a start, however I'm trying to be 
sure that network authentication is working properly since I'm running a 
Samba 4 DC (the target for this check is running Samba 3) and 
occasionally Samba 4 stops authenticating properly - it's this situation 
I'm trying to catch.

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null