Page 1 of 1

problem using the check_os_updates plugin

Posted: Tue Apr 17, 2012 12:35 pm
by wolf29
I am trying to test OS updates required
using the check_os_updates plugin
How would I need to call it to get it to respond?
on the nagios(local) server the command

Code: Select all

check_command                   check_by_ssh!22!/nagios/check_os_updates
works fine.
The example code block for remote Root Partition works fine.
What am I doing wrong?

Code: Select all

   define service{
        use                             local-service
        host_name                       LTS-COMMUNITY-02
        service_description             Check OS Updates
        check_command                   check_by_ssh!22!/nagios/check_os_updates
        notifications_enabled           0
        max_check_attempts              3
        check_interval                  5
        retry_interval                  3
        check_period                    24x7
        notification_interval           15
        notification_period             24x7
        notification_options            w,c,r
        contact_groups                  admins
        }

        define service{
        use                             local-service
        host_name                       LTS-COMMUNITY-02
        service_description             Remote Root Partition
        check_command                   check_by_ssh!22!/nagios/check_diskfree2.sh!/!75!90
        notifications_enabled           1
        max_check_attempts              3
        check_interval                  5
        retry_interval                  3
        check_period                    24x7
        notification_interval           15
        notification_period             24x7
        notification_options            w,c,r
        contact_groups                  admins
        register                        1

Re: problem using the check_os_updates plugin

Posted: Wed Apr 18, 2012 4:36 pm
by agriffin
I'm unsure of what the problem is here, since you said that the check_by_ssh command worked fine. Could you give a little more detail about what's going wrong?