slauger / check_netscaler

A Nagios Plugin written in Perl for the Citrix ADC (formerly Citrix NetScaler). It uses the NetScaler NITRO API.
35 stars 18 forks source link

NTP connectivity #18

Closed slauger closed 7 years ago

slauger commented 7 years ago

Monitoring check for NTP connectivity and time sync status.

slauger commented 7 years ago

The command ntpstatus from the NITRO API only returns the output of ntpq -q. I don't like the idea of reinventing the wheel and parsing the ntpq output.

$VAR1 = {
          'errorcode' => 0,
          'severity' => 'NONE',
          'ntpstatus' => {
                           'response' => '     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*dc01.tmxlab.loc 80.153.195.191   2 u  593 1024  377    0.993   -4.330  11.288
'
                         },
          'message' => 'Done'
        };

NTP synchronization can also be checked trough check_ntp_time, so this has no priority. Maybe Citrix will changed this in the future of the NITRO API.

bb-Ricardo commented 7 years ago

The problem with check_ntp_time is that the default ntp config in NetScaler doesn't allow query. To check NTP you always have to change /nsconfig/ntp.conf manually.

bb-Ricardo commented 7 years ago

curently working on this one. Hopefully done by tomorrow.