Search code examples
perlformatnagios

What file format is this? ( Used for a perl script status )


I am trying to find out what format status file in nagios is, it has a .dat extention but is not the standard .dat ( at least not the windows .dat )

Here is an example of the format

contactstatus {
        contact_name=noc
        modified_attributes=0
        modified_host_attributes=0
        modified_service_attributes=0
        host_notification_period=24x7
        service_notification_period=24x7
        last_host_notification=0
        last_service_notification=1545078717
        host_notifications_enabled=1
        service_notifications_enabled=1
        }

contactstatus {
        contact_name=slack
        modified_attributes=0
        modified_host_attributes=0
        modified_service_attributes=0
        host_notification_period=24x7
        service_notification_period=24x7
        last_host_notification=0
        last_service_notification=1545078717
        host_notifications_enabled=1
        service_notifications_enabled=1
        }

Solution

  • Found that it is not a standard, but a nagios custom format