<div dir="ltr">Hey all,<div><br></div><div>I've tried adding a plugin from the exchange for bacula backups. The output is not quite right and I think my definitions may be off. I'd like to try for some advice.</div>
<div><br></div><div>This is the output:</div><div><br></div><div><table border="0" width="100%" class="" style="border:none;margin:0px;font-size:9pt;padding:0px 0px 10px;font-family:arial,verdana,serif"><tbody><tr><td class="" style="border:none;padding:0px 2px;font-size:8pt;background-color:rgb(255,221,170)">
<table border="0" width="100%" cellspacing="0" cellpadding="0" style="border:none;margin:0px"><tbody><tr><td align="left" style="border:none;padding:0px 2px"><table border="0" cellspacing="0" cellpadding="0" style="border:none;margin:0px">
<tbody><tr><td align="left" valign="center" class="" style="border:none;padding:0px 2px;font-size:8pt"><a href="http://nagios.jokefire.com/nagios/cgi-bin/extinfo.cgi?type=2&host=nagios&service=Check+Bacula+Last+Backup" style="text-decoration:none;color:rgb(44,55,99)">Check Bacula Last Backup</a></td>
</tr></tbody></table></td><td align="RIGHT" class="" style="border:none;padding:0px 2px;font-size:8pt"><table border="0" cellspacing="0" cellpadding="0" style="border:none;margin:0px"><tbody><tr></tr></tbody></table></td>
</tr></tbody></table></td><td class="" style="border:1px solid rgb(119,119,119);padding:0px 5px;font-size:8pt;background-color:rgb(255,187,85)">UNKNOWN</td><td class="" nowrap style="border:none;padding:0px 2px;font-size:8pt;background-color:rgb(255,221,170)">
06-23-2013 13:45:49</td><td class="" nowrap style="border:none;padding:0px 2px;font-size:8pt;background-color:rgb(255,221,170)">0d 0h 4m 8s</td><td class="" style="border:none;padding:0px 2px;font-size:8pt;background-color:rgb(255,221,170)">
3/3</td><td class="" valign="center" style="border:none;padding:0px 2px;font-size:8pt;background-color:rgb(255,221,170)"><a href="http://check_bacula_lastbackup.pl">check_bacula_lastbackup.pl</a> 1.0 Nagios Plugin <br></td>
</tr></tbody></table><div><br></div><div style>My command definition is this:</div><div style><br></div><div style><div># A command to check bacula last backup</div><div>define command{</div><div> command_name check_bacula_last_backup</div>
<div> command_line $USER1$/<a href="http://check_bacula_lastbackup.pl">check_bacula_lastbackup.pl</a> -H HOSTADDRESS -client $ARG1$</div><div> }</div><div><br></div><div><div># Define a service to check last bacula backup on the local machine.</div>
<div>define service{</div><div> use generic-service</div><div> host_name nagios</div><div> service_description Check Bacula Last Backup</div>
<div> contact_groups linux-admins</div><div> check_command check_bacula_last_backup!<a href="http://cloud.mydomain.com">cloud.mydomain.com</a></div><div> notifications_enabled 1</div>
<div> }</div></div></div><div><br></div><div><br></div><div style>If I run the check locally the output appears correct:</div><div style><br></div><div style><p style="margin:0px;font-size:12px;font-family:Helvetica">
[root@cloud:~] #/usr/local/nagios/libexec/<a href="http://check_bacula_lastbackup.pl">check_bacula_lastbackup.pl</a> -client <a href="http://cloud.mydomain.com">cloud.mydomain.com</a></p>
<p style="margin:0px;font-size:12px;font-family:Helvetica">OK: Last backup for <a href="http://cloud.mydomain.com">cloud.mydomain.com</a> was 10:43 hours ago.mydomain</p><p style="margin:0px;font-size:12px;font-family:Helvetica">
<br></p><p style="margin:0px;font-size:12px;font-family:Helvetica">And these are the ownership/permissions on the script:</p><p style="margin:0px;font-size:12px;font-family:Helvetica"><br></p><p style="margin:0px;font-size:12px;font-family:Helvetica">
</p><p style="margin:0px">[root@cloud:~] #ls -l /usr/local/nagios/libexec/<a href="http://check_bacula_lastbackup.pl">check_bacula_lastbackup.pl</a></p><p style="margin:0px">-rwxrwxr-x 1 nagios nagios 4335 Jun 23 12:32 /usr/local/nagios/libexec/<a href="http://check_bacula_lastbackup.pl">check_bacula_lastbackup.pl</a></p>
<p style="margin:0px"><br></p><p style="margin:0px">It'd be great if I could get an opinion on this and much appreciated. </p><p style="margin:0px"><br></p><p style="margin:0px">Thanks </p><p style="margin:0px">Tim</p>
<p></p></div>-- <br>GPG me!!<br><br>gpg --keyserver <a href="http://pool.sks-keyservers.net" target="_blank">pool.sks-keyservers.net</a> --recv-keys F186197B<br><br>
</div></div>